You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by sj...@apache.org on 2021/09/02 16:09:11 UTC
[flink] branch master updated: [FLINK-24121][flink-python] There
are spelling mistakes in the notes.
This is an automated email from the ASF dual-hosted git repository.
sjwiesman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 78108fb [FLINK-24121][flink-python] There are spelling mistakes in the notes.
78108fb is described below
commit 78108fb8b77f0c3e0f45a88f3e1bc3ab94ab4541
Author: lixiaobao14 <li...@gmail.com>
AuthorDate: Thu Sep 2 11:14:44 2021 +0800
[FLINK-24121][flink-python] There are spelling mistakes in the notes.
This closes #17110
---
flink-python/dev/lint-python.sh | 8 ++++----
flink-python/pyflink/datastream/connectors.py | 2 +-
flink-python/pyflink/datastream/data_stream.py | 2 +-
flink-python/pyflink/datastream/state.py | 2 +-
flink-python/pyflink/table/table_environment.py | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/flink-python/dev/lint-python.sh b/flink-python/dev/lint-python.sh
index 7ccf4ac..36e71ff 100755
--- a/flink-python/dev/lint-python.sh
+++ b/flink-python/dev/lint-python.sh
@@ -396,7 +396,7 @@ function install_environment() {
fi
print_function "STEP" "install miniconda... [SUCCESS]"
- # step-3 install python environment whcih includes
+ # step-3 install python environment which includes
# 3.6 3.7 3.8
if [ $STEP -lt 3 ] && [ `need_install_component "py_env"` = true ]; then
print_function "STEP" "installing python environment..."
@@ -460,7 +460,7 @@ function create_dir() {
# Set created py-env in $PATH for tox's creating virtual env
function activate () {
if [ ! -d $CURRENT_DIR/.conda/envs ]; then
- echo "For some unkown reasons,missing the directory $CURRENT_DIR/.conda/envs,\
+ echo "For some unknown reasons,missing the directory $CURRENT_DIR/.conda/envs,\
you should exec the script with the option: -f"
exit 1
fi
@@ -471,7 +471,7 @@ function activate () {
done
export PATH 2>/dev/null
if [ $? -ne 0 ]; then
- echo "For some unkown reasons, the py package is not complete,\
+ echo "For some unknown reasons, the py package is not complete,\
you should exec the script with the option: -f"
exit 1
fi
@@ -613,7 +613,7 @@ function flake8_check() {
print_function "STAGE" "flake8 checks"
if [ ! -f "$FLAKE8_PATH" ]; then
- echo "For some unkown reasons, the flake8 package is not complete,\
+ echo "For some unknown reasons, the flake8 package is not complete,\
you should exec the script with the parameter: -f"
fi
diff --git a/flink-python/pyflink/datastream/connectors.py b/flink-python/pyflink/datastream/connectors.py
index 4e68b2e..b4b3335 100644
--- a/flink-python/pyflink/datastream/connectors.py
+++ b/flink-python/pyflink/datastream/connectors.py
@@ -155,7 +155,7 @@ class FlinkKafkaConsumer(FlinkKafkaConsumerBase):
pull data from one or more Kafka partitions.
The Flink Kafka Consumer participates in checkpointing and guarantees that no data is lost
- during a failure, and taht the computation processes elements 'exactly once. (These guarantees
+ during a failure, and that the computation processes elements 'exactly once. (These guarantees
naturally assume that Kafka itself does not lose any data.)
Please note that Flink snapshots the offsets internally as part of its distributed checkpoints.
diff --git a/flink-python/pyflink/datastream/data_stream.py b/flink-python/pyflink/datastream/data_stream.py
index 0acd52c..227b398 100644
--- a/flink-python/pyflink/datastream/data_stream.py
+++ b/flink-python/pyflink/datastream/data_stream.py
@@ -750,7 +750,7 @@ class DataStream(object):
def print(self, sink_identifier: str = None) -> 'DataStreamSink':
"""
Writes a DataStream to the standard output stream (stdout).
- For each element of the DataStream the object string is writen.
+ For each element of the DataStream the object string is written.
NOTE: This will print to stdout on the machine where the code is executed, i.e. the Flink
worker, and is not fault tolerant.
diff --git a/flink-python/pyflink/datastream/state.py b/flink-python/pyflink/datastream/state.py
index bd1c263..05594df 100644
--- a/flink-python/pyflink/datastream/state.py
+++ b/flink-python/pyflink/datastream/state.py
@@ -89,7 +89,7 @@ class ValueState(State, Generic[T]):
class AppendingState(State, Generic[IN, OUT]):
"""
- Base interface for partitioned state taht supports adding elements and inspecting the current
+ Base interface for partitioned state that supports adding elements and inspecting the current
state. Elements can either be kept in a buffer (list-like) or aggregated into one value.
This state is accessed and modified by user functions, and checkpointed consistently by the
diff --git a/flink-python/pyflink/table/table_environment.py b/flink-python/pyflink/table/table_environment.py
index 2a039b7..98a1f7b 100644
--- a/flink-python/pyflink/table/table_environment.py
+++ b/flink-python/pyflink/table/table_environment.py
@@ -1503,7 +1503,7 @@ class TableEnvironment(object):
>>> table_env.from_elements([(1, 'Hi'), (2, 'Hello')],
... DataTypes.ROW([DataTypes.FIELD("a", DataTypes.INT()),
... DataTypes.FIELD("b", DataTypes.STRING())]))
- # use the thrid parameter to switch whether to verify the elements against the schema
+ # use the third parameter to switch whether to verify the elements against the schema
>>> table_env.from_elements([(1, 'Hi'), (2, 'Hello')],
... DataTypes.ROW([DataTypes.FIELD("a", DataTypes.INT()),
... DataTypes.FIELD("b", DataTypes.STRING())]),