diff --git a/docs/content.zh/docs/connectors/datastream/formats/text_files.md b/docs/content.zh/docs/connectors/datastream/formats/text_files.md index 2c1a4fd8ff7f91..a9d4909617ef6b 100644 --- a/docs/content.zh/docs/connectors/datastream/formats/text_files.md +++ b/docs/content.zh/docs/connectors/datastream/formats/text_files.md @@ -73,7 +73,7 @@ stream = env.from_source(source, WatermarkStrategy.no_watermarks(), "file-source 在此示例中,我们创建了一个 DataStream,随着新文件被添加到目录中,其中包含的文本文件行的字符串流将无限增长。我们每秒会进行新文件监控。 此处不需要水印策略,因为记录不包含事件时间戳。 -{{< tabs "continous" >}} +{{< tabs "continuous" >}} {{< tab "Java" >}} ```java final FileSource source = diff --git a/docs/content.zh/docs/connectors/table/formats/protobuf.md b/docs/content.zh/docs/connectors/table/formats/protobuf.md index 1e09de5772bfd8..12b69dddc487eb 100644 --- a/docs/content.zh/docs/connectors/table/formats/protobuf.md +++ b/docs/content.zh/docs/connectors/table/formats/protobuf.md @@ -132,7 +132,7 @@ Format Options no (none) String - The full name of a Protobuf generated class. The name must match the message name in the proto definition file. $ is supported for inner class names, like 'com.exmample.OuterClass$MessageClass' + The full name of a Protobuf generated class. The name must match the message name in the proto definition file. $ is supported for inner class names, like 'com.example.OuterClass$MessageClass'
protobuf.ignore-parse-errors
diff --git a/docs/content.zh/docs/deployment/filesystems/azure.md b/docs/content.zh/docs/deployment/filesystems/azure.md index a88952590f55cc..d51ccd3b608f85 100644 --- a/docs/content.zh/docs/deployment/filesystems/azure.md +++ b/docs/content.zh/docs/deployment/filesystems/azure.md @@ -47,7 +47,7 @@ wasb://@$.blob.core.windows.net/@$.blob.core.windows.net/ -// ABFS unecrypted access +// ABFS unencrypted access abfs://@$.dfs.core.windows.net/ // ABFS SSL encrypted access diff --git a/docs/content.zh/docs/deployment/metric_reporters.md b/docs/content.zh/docs/deployment/metric_reporters.md index 4696a58278aefd..7083ee33a57b52 100644 --- a/docs/content.zh/docs/deployment/metric_reporters.md +++ b/docs/content.zh/docs/deployment/metric_reporters.md @@ -186,7 +186,7 @@ InfluxDB 发送器会使用 http 协议按照将指标发送到 InfluxDB 服务 参数: - `port` - (可选的)Prometheus 发送器监听的端口,默认为 [9249](https://github.com/prometheus/prometheus/wiki/Default-port-allocations)。如果需要在一台机器上运行多个发送器示例进行监控时(比如 TaskManger 与 JobManager 在一台机器上运行时),建议将端口号配置为 `9250-9260` 这样的区间。 -- `filterLabelValueCharacters` -(可选的)指定是否过滤 label 中的非法字符。如果设置过滤,所有没有按照 \[a-zA-Z0-9:_\] 匹配的字符都会被过滤掉,如果设置不过滤,则不会有字符被过滤掉。设置不过滤前,请确保你的 label 符合 [Prometheus 的 lable 命名规范](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels)。 +- `filterLabelValueCharacters` -(可选的)指定是否过滤 label 中的非法字符。如果设置过滤,所有没有按照 \[a-zA-Z0-9:_\] 匹配的字符都会被过滤掉,如果设置不过滤,则不会有字符被过滤掉。设置不过滤前,请确保你的 label 符合 [Prometheus 的 label 命名规范](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels)。 配置示例: diff --git a/docs/content.zh/docs/deployment/resource-providers/standalone/kubernetes.md b/docs/content.zh/docs/deployment/resource-providers/standalone/kubernetes.md index 9a4d9dd37c7dec..52e6378025a698 100644 --- a/docs/content.zh/docs/deployment/resource-providers/standalone/kubernetes.md +++ b/docs/content.zh/docs/deployment/resource-providers/standalone/kubernetes.md @@ -45,7 +45,7 @@ under the License. ### 准备 -本指南假设存在一个 Kubernets 的运行环境。你可以通过运行 `kubectl get nodes` 命令来确保 Kubernetes 环境运行正常,该命令展示所有连接到 Kubernets 集群的 node 节点信息。 +本指南假设存在一个 Kubernetes 的运行环境。你可以通过运行 `kubectl get nodes` 命令来确保 Kubernetes 环境运行正常,该命令展示所有连接到 Kubernetes 集群的 node 节点信息。 如果你想在本地运行 Kubernetes,建议使用 [MiniKube](https://minikube.sigs.k8s.io/docs/start/)。 @@ -156,7 +156,7 @@ $ ./bin/flink run -m localhost:8081 ./examples/streaming/TopSpeedWindowing.jar -### 在 Kubernets 上访问 Flink +### 在 Kubernetes 上访问 Flink 接下来可以访问 Flink UI 页面并通过不同的方式提交作业: @@ -207,7 +207,7 @@ flink-taskmanager-64847444ff-nnd6m 1/1 Running 3 3m28s ### 高可用的 Standalone Kubernetes -对于在 Kubernetes 上实现HA,可以参考当前的 [Kubernets 高可用服务]({{< ref "docs/deployment/ha/overview" >}})。 +对于在 Kubernetes 上实现HA,可以参考当前的 [Kubernetes 高可用服务]({{< ref "docs/deployment/ha/overview" >}})。 diff --git a/docs/content.zh/docs/deployment/security/security-ssl.md b/docs/content.zh/docs/deployment/security/security-ssl.md index c988d2b244bda5..6e4a4d537ac79e 100644 --- a/docs/content.zh/docs/deployment/security/security-ssl.md +++ b/docs/content.zh/docs/deployment/security/security-ssl.md @@ -61,7 +61,7 @@ added to the container images, or attached to the YARN deployment. - In an environment where operators are constrained to use firm-wide Internal CA (cannot generated self-signed certificates), the recommendation is to still have a dedicated key pair / certificate for the Flink deployment, signed by that CA. - However, the TrustStore must then also contain the CA's public certificate tho accept the deployment's certificate + However, the TrustStore must then also contain the CA's public certificate to accept the deployment's certificate during the SSL handshake (requirement in JDK TrustStore implementation). **NOTE:** Because of that, it is critical that you specify the fingerprint of the deployment certificate diff --git a/docs/content.zh/docs/getting-started/flink-operations-playground.md b/docs/content.zh/docs/getting-started/flink-operations-playground.md index 86716b77307016..31e56bb29289e5 100644 --- a/docs/content.zh/docs/getting-started/flink-operations-playground.md +++ b/docs/content.zh/docs/getting-started/flink-operations-playground.md @@ -575,7 +575,7 @@ docker compose scale taskmanager=2 **请求** ```bash -curl "localhost:8081/jobs//metrics?get=lastCheckpointSize" +curl "localhost:8081/jobs//metrics?get=lastCheckpointSize" ``` **预期响应 (结果已格式化且去除了占位符)** ```json @@ -592,7 +592,7 @@ REST API 不仅可以用于查询指标,还可以用于获取正在运行中 **请求** ```bash # 可以从结果中获取感兴趣的 vertex-id -curl localhost:8081/jobs/ +curl localhost:8081/jobs/ ``` **预期响应 (结果已格式化)** diff --git a/docs/content.zh/docs/sql/hive-compatibility/hive-dialect/alter.md b/docs/content.zh/docs/sql/hive-compatibility/hive-dialect/alter.md index 5c32af26d506a2..d457dfdcfd4721 100644 --- a/docs/content.zh/docs/sql/hive-compatibility/hive-dialect/alter.md +++ b/docs/content.zh/docs/sql/hive-compatibility/hive-dialect/alter.md @@ -250,7 +250,7 @@ ALTER TABLE table_name [PARTITION partition_spec] CHANGE [COLUMN] col_old_name c ```sql ALTER TABLE t1 CHANGE COLUMN c1 new_c1 STRING FIRST; -ALTER TABLE t1 CHANGE COLUMN c1 new_c1 STRING AFRER c2; +ALTER TABLE t1 CHANGE COLUMN c1 new_c1 STRING AFTER c2; ``` #### Add/Replace Columns diff --git a/docs/content.zh/docs/sql/interfaces/jdbc-driver.md b/docs/content.zh/docs/sql/interfaces/jdbc-driver.md index b2dc74b2cc1072..c99a504f2350fd 100644 --- a/docs/content.zh/docs/sql/interfaces/jdbc-driver.md +++ b/docs/content.zh/docs/sql/interfaces/jdbc-driver.md @@ -231,6 +231,6 @@ public class Sample { ### Use with Others -In addition to java, Flink JDBC driver can be used by any JVM language such as scala, kotlin and ect, you can add the dependency of Flink JDBC driver in your project and use it directly. +In addition to java, Flink JDBC driver can be used by any JVM language such as scala, kotlin, etc., you can add the dependency of Flink JDBC driver in your project and use it directly. Most applications may use data access frameworks to access data, for example, JOOQ, MyBatis and Spring Data. You can config Flink JDBC driver in them to perform Flink queries on an exist Flink cluster, just like a regular database. diff --git a/docs/content.zh/docs/sql/reference/queries/joins.md b/docs/content.zh/docs/sql/reference/queries/joins.md index d855f1fd2328ee..8f58f754279068 100644 --- a/docs/content.zh/docs/sql/reference/queries/joins.md +++ b/docs/content.zh/docs/sql/reference/queries/joins.md @@ -472,7 +472,7 @@ Because every probe-side row is joined against the final, complete build side, t Lookup Join -------------- -lookup join 通常用于使用从外部系统查询的数据来丰富表。join 要求一个表具有处理时间属性,另一个表由查找源连接器(lookup source connnector)支持。 +lookup join 通常用于使用从外部系统查询的数据来丰富表。join 要求一个表具有处理时间属性,另一个表由查找源连接器(lookup source connector)支持。 lookup join 和上面的 [处理时间 Temporal Join](#processing-time-temporal-join) 语法相同,右表使用查找源连接器支持。 diff --git a/docs/content.zh/docs/sql/reference/queries/window-agg.md b/docs/content.zh/docs/sql/reference/queries/window-agg.md index 2ebc7d1af1d051..3de58a4c7cce0c 100644 --- a/docs/content.zh/docs/sql/reference/queries/window-agg.md +++ b/docs/content.zh/docs/sql/reference/queries/window-agg.md @@ -307,7 +307,7 @@ SELECT window_start, window_end, SUM(partial_price) AS total_price SESSION_END(time_attr, interval)

返回相应滚动窗口,跳跃窗口或会话窗口的上限的时间戳(exclusive),即窗口结束时间。

-

注意: 上限时间戳(exlusive)不能作为 }}">rowtime attribute 用于后续基于时间的操作,例如:}}#interval-joins">interval joins 和 }}">group window 或 }}">over window aggregations。

+

注意: 上限时间戳(exclusive)不能作为 }}">rowtime attribute 用于后续基于时间的操作,例如:}}#interval-joins">interval joins 和 }}">group window 或 }}">over window aggregations。

diff --git a/docs/content/docs/connectors/datastream/formats/text_files.md b/docs/content/docs/connectors/datastream/formats/text_files.md index e194e2924234db..e3e19d95d37308 100644 --- a/docs/content/docs/connectors/datastream/formats/text_files.md +++ b/docs/content/docs/connectors/datastream/formats/text_files.md @@ -74,7 +74,7 @@ In this example, we create a DataStream containing the lines of text files as St as new files are added to the directory. We monitor for new files each second. There is no need for a watermark strategy as records do not contain event timestamps. -{{< tabs "continous" >}} +{{< tabs "continuous" >}} {{< tab "Java" >}} ```java final FileSource source = diff --git a/docs/content/docs/connectors/table/formats/protobuf.md b/docs/content/docs/connectors/table/formats/protobuf.md index 3651452aec25d5..49899994aa537e 100644 --- a/docs/content/docs/connectors/table/formats/protobuf.md +++ b/docs/content/docs/connectors/table/formats/protobuf.md @@ -132,7 +132,7 @@ Format Options no (none) String - The full name of a Protobuf generated class. The name must match the message name in the proto definition file. $ is supported for inner class names, like 'com.exmample.OuterClass$MessageClass' + The full name of a Protobuf generated class. The name must match the message name in the proto definition file. $ is supported for inner class names, like 'com.example.OuterClass$MessageClass'
protobuf.ignore-parse-errors
diff --git a/docs/content/docs/deployment/filesystems/azure.md b/docs/content/docs/deployment/filesystems/azure.md index 69fb019db10026..03cf318444ecd0 100644 --- a/docs/content/docs/deployment/filesystems/azure.md +++ b/docs/content/docs/deployment/filesystems/azure.md @@ -50,7 +50,7 @@ wasb://@$.blob.core.windows.net/@$.blob.core.windows.net/ -// ABFS unecrypted access +// ABFS unencrypted access abfs://@$.dfs.core.windows.net/ // ABFS SSL encrypted access diff --git a/docs/content/docs/deployment/security/security-ssl.md b/docs/content/docs/deployment/security/security-ssl.md index 648888793968fe..4f5c5856bf6935 100644 --- a/docs/content/docs/deployment/security/security-ssl.md +++ b/docs/content/docs/deployment/security/security-ssl.md @@ -61,7 +61,7 @@ added to the container images, or attached to the YARN deployment. - In an environment where operators are constrained to use firm-wide Internal CA (cannot generated self-signed certificates), the recommendation is to still have a dedicated key pair / certificate for the Flink deployment, signed by that CA. - However, the TrustStore must then also contain the CA's public certificate tho accept the deployment's certificate + However, the TrustStore must then also contain the CA's public certificate to accept the deployment's certificate during the SSL handshake (requirement in JDK TrustStore implementation). **NOTE:** Because of that, it is critical that you specify the fingerprint of the deployment certificate diff --git a/docs/content/docs/dev/datastream/java_lambdas.md b/docs/content/docs/dev/datastream/java_lambdas.md index 6e871e2a42d145..931573d7eb18d8 100644 --- a/docs/content/docs/dev/datastream/java_lambdas.md +++ b/docs/content/docs/dev/datastream/java_lambdas.md @@ -64,7 +64,7 @@ org.apache.flink.api.common.functions.InvalidTypesException: The generic type pa Otherwise the type has to be specified explicitly using type information. ``` -In this case, the type information needs to be *specified explicitly*, otherwise the output will be treated as type `Object` which leads to unefficient serialization. +In this case, the type information needs to be *specified explicitly*, otherwise the output will be treated as type `Object` which leads to inefficient serialization. ```java DataStream input = env.fromData(1, 2, 3); diff --git a/docs/content/docs/getting-started/flink-operations-playground.md b/docs/content/docs/getting-started/flink-operations-playground.md index 5fbfc3106c9a43..b319dd673d39f6 100644 --- a/docs/content/docs/getting-started/flink-operations-playground.md +++ b/docs/content/docs/getting-started/flink-operations-playground.md @@ -546,7 +546,7 @@ The endpoint depends on the scope of these metrics. Metrics scoped to a Job can **Request** ```bash -curl "localhost:8081/jobs//metrics?get=lastCheckpointSize" +curl "localhost:8081/jobs//metrics?get=lastCheckpointSize" ``` **Expected Response (pretty-printed; no placeholders)** ```json @@ -564,7 +564,7 @@ about the status of a running Job. **Request** ```bash # find the vertex-id of the vertex of interest -curl localhost:8081/jobs/ +curl localhost:8081/jobs/ ``` **Expected Response (pretty-printed)** diff --git a/docs/content/docs/sql/hive-compatibility/hive-dialect/alter.md b/docs/content/docs/sql/hive-compatibility/hive-dialect/alter.md index 5c32af26d506a2..d457dfdcfd4721 100644 --- a/docs/content/docs/sql/hive-compatibility/hive-dialect/alter.md +++ b/docs/content/docs/sql/hive-compatibility/hive-dialect/alter.md @@ -250,7 +250,7 @@ ALTER TABLE table_name [PARTITION partition_spec] CHANGE [COLUMN] col_old_name c ```sql ALTER TABLE t1 CHANGE COLUMN c1 new_c1 STRING FIRST; -ALTER TABLE t1 CHANGE COLUMN c1 new_c1 STRING AFRER c2; +ALTER TABLE t1 CHANGE COLUMN c1 new_c1 STRING AFTER c2; ``` #### Add/Replace Columns diff --git a/docs/content/docs/sql/reference/queries/vector-search.md b/docs/content/docs/sql/reference/queries/vector-search.md index 18d4160b39b5ce..92267dcb66991a 100644 --- a/docs/content/docs/sql/reference/queries/vector-search.md +++ b/docs/content/docs/sql/reference/queries/vector-search.md @@ -93,7 +93,7 @@ input_table, LATERAL VECTOR_SEARCH( CONFIG => MAP['async', 'true', 'timeout', '100s'] ); --- Searching with contant value +-- Searching with constant value SELECT * FROM TABLE(VECTOR_SEARCH( TABLE vector_table, diff --git a/docs/content/docs/sql/reference/utility/explain.md b/docs/content/docs/sql/reference/utility/explain.md index 168b9b1240a1cf..f162a804dc841e 100644 --- a/docs/content/docs/sql/reference/utility/explain.md +++ b/docs/content/docs/sql/reference/utility/explain.md @@ -340,7 +340,7 @@ TableSourceScan(..., cumulative cost ={1.0E8 rows, 1.0E8 cpu, 2.4E9 io, 0.0 netw **CHANGELOG_MODE** -Specify `CHANGELOG_MODE` will inform the optimizer to attach the changelog mode (see more details at [Dynamic Tables]({{< ref "docs/concepts/sql-table-concepts/dynamic_tables" >}}#table-to-stream-conversion)) of each physical rel node to the ouptput. +Specify `CHANGELOG_MODE` will inform the optimizer to attach the changelog mode (see more details at [Dynamic Tables]({{< ref "docs/concepts/sql-table-concepts/dynamic_tables" >}}#table-to-stream-conversion)) of each physical rel node to the output. ```text == Optimized Physical Plan == diff --git a/docs/data/sql_connectors.yml b/docs/data/sql_connectors.yml index e98a1a64811c91..fd71aaeffa0d8b 100644 --- a/docs/data/sql_connectors.yml +++ b/docs/data/sql_connectors.yml @@ -95,7 +95,7 @@ maxwell: ogg-json: name: Ogg maven: flink-json - catagory: format + category: format builtin: true csv: diff --git a/docs/data/sql_functions_zh.yml b/docs/data/sql_functions_zh.yml index 47bb9e7b1fe6bd..5fcd68eb841a71 100644 --- a/docs/data/sql_functions_zh.yml +++ b/docs/data/sql_functions_zh.yml @@ -18,7 +18,7 @@ comparison: - sql: value1 = value2 table: value1 === value2 - description: 如果 value1 等于 value2 返回 `TRUE`;如果 value1 或者 value2 为 `NULL` 返回 `UNKNOW`。 + description: 如果 value1 等于 value2 返回 `TRUE`;如果 value1 或者 value2 为 `NULL` 返回 `UNKNOWN`。 - sql: value1 <> value2 table: value1 !== value2 description: 如果 value1 不等于 value2 返回 `TRUE`;如果 value1 或 value2 为 `NULL` 返回 `UNKNOWN`。 @@ -818,7 +818,7 @@ temporal: - sql: FROM_UNIXTIME(numeric[, string]) table: fromUnixtime(NUMERIC[, STRING]) description: | - 以格式 string(默认为 'yyyy-MM-dd HH:mm:ss')表示数字参数 numberic 的值。numeric 是一个内部 + 以格式 string(默认为 'yyyy-MM-dd HH:mm:ss')表示数字参数 numeric 的值。numeric 是一个内部 时间戳值,表示自'1970-01-01 00:00:00' UTC 以来的秒数,由 UNIX_TIMESTAMP() 函数生成。返回值以会话时区表示 (在 TableConfig 中指定)。例如,如果在 UTC 时区,FROM_UNIXTIME(44) 返回 '1970-01-01 00:00:44',如果在 'Asia/Tokyo' 时区,则返回 '1970-01-01 09:00:44'。 diff --git a/docs/layouts/partials/docs/inject/menu-after.html b/docs/layouts/partials/docs/inject/menu-after.html index 7f92938dd837a5..7f53f2d729c061 100644 --- a/docs/layouts/partials/docs/inject/menu-after.html +++ b/docs/layouts/partials/docs/inject/menu-after.html @@ -54,7 +54,7 @@ - + {{ $translations := dict }} {{ range .Site.Home.AllTranslations }} {{ $translations = merge $translations (dict .Language.Lang .) }} diff --git a/docs/layouts/partials/docs/simple-title.html b/docs/layouts/partials/docs/simple-title.html index b324d481841c83..b1a4cd22476a5b 100644 --- a/docs/layouts/partials/docs/simple-title.html +++ b/docs/layouts/partials/docs/simple-title.html @@ -17,7 +17,7 @@ under the License. --> {{ $title := "" }} diff --git a/docs/layouts/shortcodes/beta.html b/docs/layouts/shortcodes/beta.html index ddb7bda0a32da0..e89712f432e2c7 100644 --- a/docs/layouts/shortcodes/beta.html +++ b/docs/layouts/shortcodes/beta.html @@ -20,6 +20,6 @@ */}}
This feature is currency marked as BETA and in an evolving state. - As such, there are no guaruntees made about feature stability + As such, there are no guarantees made about feature stability and breaking changes may occur in future Flink versions.
\ No newline at end of file diff --git a/docs/layouts/shortcodes/center.html b/docs/layouts/shortcodes/center.html index ed9d728dc25f5d..acfba1aabb67c9 100644 --- a/docs/layouts/shortcodes/center.html +++ b/docs/layouts/shortcodes/center.html @@ -18,7 +18,7 @@ */}}{{/* Shortcode for centering text - Parmeters: markdown text + Parameters: markdown text */}}
{{ .Inner | markdownify }} diff --git a/docs/layouts/shortcodes/generated/execution_config_configuration.html b/docs/layouts/shortcodes/generated/execution_config_configuration.html index c511682b472c17..d04c3d3d8e2872 100644 --- a/docs/layouts/shortcodes/generated/execution_config_configuration.html +++ b/docs/layouts/shortcodes/generated/execution_config_configuration.html @@ -42,7 +42,7 @@
table.exec.async-ml-predict.output-mode

Batch Streaming ORDERED

Enum

- Output mode for async ML predict, which describes whether or not the the output should attempt to be ordered or not. The supported options are: ALLOW_UNORDERED means the operator emit the result when execution finishes. The planner will attempt use ALLOW_UNORDERED whn it doesn't affect the correctness of the results. + Output mode for async ML predict, which describes whether or not the output should attempt to be ordered or not. The supported options are: ALLOW_UNORDERED means the operator emits the result when execution finishes. The planner will attempt to use ALLOW_UNORDERED when it doesn't affect the correctness of the results. ORDERED ensures that the operator emits the result in the same order as the data enters it. This is the default.

Possible values:
  • "ORDERED"
  • "ALLOW_UNORDERED"
diff --git a/docs/layouts/shortcodes/gh_link.html b/docs/layouts/shortcodes/gh_link.html index cb9a8e18c3de1d..d3b43428fa8197 100644 --- a/docs/layouts/shortcodes/gh_link.html +++ b/docs/layouts/shortcodes/gh_link.html @@ -19,7 +19,7 @@ Shortcode for linking to a file in github. This shortcode will automatically discover the repo and correct branch. - Parmeters: + Parameters: - file: The absolute path to the image file (required) - name: The rendered link name (required) */}} diff --git a/docs/layouts/shortcodes/github_repo.html b/docs/layouts/shortcodes/github_repo.html index 845316f02e93c5..e81ff7cd254e57 100644 --- a/docs/layouts/shortcodes/github_repo.html +++ b/docs/layouts/shortcodes/github_repo.html @@ -18,5 +18,5 @@ */}}{{/* Shortcode that interpolates the full github repo - Parmeters: None + Parameters: None */}}{{- $.Site.Params.GithubRepo -}} diff --git a/docs/layouts/shortcodes/img.html b/docs/layouts/shortcodes/img.html index e87056aa021094..064df64b72d3b5 100644 --- a/docs/layouts/shortcodes/img.html +++ b/docs/layouts/shortcodes/img.html @@ -21,7 +21,7 @@ because we can configure the HTML image tag properties. - Parmeters: + Parameters: - src: The absolute path to the image file (required) - alt: Image alt text (optional) - width: Image width (optional) diff --git a/docs/layouts/shortcodes/label.html b/docs/layouts/shortcodes/label.html index 2a1f39b159b7ac..0d90ffc77505fb 100644 --- a/docs/layouts/shortcodes/label.html +++ b/docs/layouts/shortcodes/label.html @@ -21,7 +21,7 @@ because we can configure the HTML image tag properties. - Parmeters: + Parameters: - src: The absolute path to the image file (required) - alt: Image alt text (optional) - width: Image width (optional) diff --git a/docs/layouts/shortcodes/scala_version.html b/docs/layouts/shortcodes/scala_version.html index b77c77e7f3725a..dadf5848402f90 100644 --- a/docs/layouts/shortcodes/scala_version.html +++ b/docs/layouts/shortcodes/scala_version.html @@ -18,5 +18,5 @@ */}}{{/* Shortcode for interpolating the scala version set in conf.toml - Parmeters: None + Parameters: None */}}{{- $.Site.Params.ScalaVersion -}} \ No newline at end of file diff --git a/docs/layouts/shortcodes/stable.html b/docs/layouts/shortcodes/stable.html index 1a395d679f018e..c4015e4fd75900 100644 --- a/docs/layouts/shortcodes/stable.html +++ b/docs/layouts/shortcodes/stable.html @@ -19,5 +19,5 @@ Shortcode that only renders its contents if the site is marked as stable. - Parmeters: Markdown text + Parameters: Markdown text */}}{{ if $.Site.Params.IsStable }}{{ .Inner | markdownify }}{{ end }} \ No newline at end of file diff --git a/docs/layouts/shortcodes/top.html b/docs/layouts/shortcodes/top.html index 11d6808bd58e6b..93da68e0e51559 100644 --- a/docs/layouts/shortcodes/top.html +++ b/docs/layouts/shortcodes/top.html @@ -18,7 +18,7 @@ */}}{{/* Shortcode that adds a "Back to Top" link. - Parmeters: None + Parameters: None */}}

Back to top

diff --git a/docs/layouts/shortcodes/training_link.html b/docs/layouts/shortcodes/training_link.html index 2f0e3cb5d8a72e..05212371848405 100644 --- a/docs/layouts/shortcodes/training_link.html +++ b/docs/layouts/shortcodes/training_link.html @@ -19,7 +19,7 @@ Shortcode for linking to a file in the training repo github. This shortcode will automatically discover the repo and correct branch. - Parmeters: + Parameters: - file: The absolute path to the image file (required) - name: The rendered link name (required) */}} diff --git a/docs/layouts/shortcodes/training_repo.html b/docs/layouts/shortcodes/training_repo.html index 939f334facc546..90ed3addb69e7a 100644 --- a/docs/layouts/shortcodes/training_repo.html +++ b/docs/layouts/shortcodes/training_repo.html @@ -19,7 +19,7 @@ Shortcode for linking to a file in the training repo github. This shortcode will automatically discover the repo and correct branch. - Parmeters: + Parameters: - file: The absolute path to the image file (required) - name: The rendered link name (required) */}} diff --git a/docs/layouts/shortcodes/unstable.html b/docs/layouts/shortcodes/unstable.html index 6ad4c173b6b6c9..324f15282423e4 100644 --- a/docs/layouts/shortcodes/unstable.html +++ b/docs/layouts/shortcodes/unstable.html @@ -19,5 +19,5 @@ Shortcode that only renders its contents if the site is not marked as stable. - Parmeters: Markdown text + Parameters: Markdown text */}}{{ if (not $.Site.Params.IsStable) }}{{ .Inner | markdownify }}{{ end }} \ No newline at end of file diff --git a/docs/layouts/shortcodes/version.html b/docs/layouts/shortcodes/version.html index 7360ee5c3dbe0d..ac543278e244d2 100644 --- a/docs/layouts/shortcodes/version.html +++ b/docs/layouts/shortcodes/version.html @@ -18,5 +18,5 @@ */}}{{/* Shortcode that interpolates the full maven version (x.y.z) - Parmeters: None + Parameters: None */}}{{- $.Site.Params.Version -}} diff --git a/docs/static/js/flink.js b/docs/static/js/flink.js index bd981b99ecd6b9..6a7ffb48458baa 100644 --- a/docs/static/js/flink.js +++ b/docs/static/js/flink.js @@ -21,7 +21,7 @@ * Function to synchronize all tabs on a page to a given user selection. * * The selection of a tab group should only change if it contains an - * input with the given tabId. Otherwise, its current seletion should + * input with the given tabId. Otherwise, its current selection should * remain unchanged. * * See layouts/shortcodes/tabs.html diff --git a/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java b/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java index d023b4985ef6fd..23476fb9da3ae8 100644 --- a/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java +++ b/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java @@ -60,10 +60,10 @@ * or results in an empty queue (takes the last element). * *

Note that this model generally assumes that false positives are okay, meaning that the - * availability future completes despite there being no data availabile in the queue. The consumer - * is responsible for polling data and obtaining another future to wait on. This is similar to the - * way that Java's Monitors and Conditions can have the spurious wakeup of the waiting - * threads and commonly need to be used in loop with the waiting condition. + * availability future completes despite there being no data available in the queue. The consumer is + * responsible for polling data and obtaining another future to wait on. This is similar to the way + * that Java's Monitors and Conditions can have the spurious wakeup of the waiting threads + * and commonly need to be used in loop with the waiting condition. * *

Producer Wakeup

* diff --git a/flink-connectors/flink-connector-base/src/test/java/org/apache/flink/connector/base/source/reader/fetcher/SplitFetcherManagerTest.java b/flink-connectors/flink-connector-base/src/test/java/org/apache/flink/connector/base/source/reader/fetcher/SplitFetcherManagerTest.java index 4a603dd041166e..8b9ec4e23d662e 100644 --- a/flink-connectors/flink-connector-base/src/test/java/org/apache/flink/connector/base/source/reader/fetcher/SplitFetcherManagerTest.java +++ b/flink-connectors/flink-connector-base/src/test/java/org/apache/flink/connector/base/source/reader/fetcher/SplitFetcherManagerTest.java @@ -307,7 +307,7 @@ void testIdleShutdownSplitFetcherWaitsUntilRecordProcessed() throws Exception { waitUntil( () -> reader.isClosed, Duration.ofSeconds(1), - "The reader should hava been closed."); + "The reader should have been closed."); } finally { fetcherManager.close(30_000); } diff --git a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java index f8bc4c848ae422..90f3f58f31905f 100644 --- a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java +++ b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java @@ -54,7 +54,7 @@ /** * A {@link SinkWriter} implementation for {@link FileSink}. * - *

It writes data to and manages the different active {@link FileWriterBucket buckes} in the + *

It writes data to and manages the different active {@link FileWriterBucket buckets} in the * {@link FileSink}. * * @param The type of input elements. diff --git a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java index 85cafc87fc26dd..7d90e94397964f 100644 --- a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java +++ b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java @@ -29,8 +29,8 @@ /** * Partition commit policy to update metastore. * - *

If this is for file system table, the metastore is a empty implemantation. If this is for hive - * table, the metastore is for connecting to hive metastore. + *

If this is for file system table, the metastore is an empty implementation. If this is for + * hive table, the metastore is for connecting to hive metastore. */ @Internal public class MetastoreCommitPolicy implements PartitionCommitPolicy { diff --git a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java index 323f949f4b2c7b..43f6e6c1c84f0a 100644 --- a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java +++ b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java @@ -67,7 +67,7 @@ interface Context

extends Serializable { * A comparable partition value that can compare order by using its comparator. * * @param

The type of partition value. - * @param The tye of the partition offset, the partition offset is comparable. + * @param The type of the partition offset, the partition offset is comparable. */ interface ComparablePartitionValue> extends Serializable { diff --git a/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java b/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java index b251032cd469c4..c31ada177a5661 100644 --- a/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java +++ b/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java @@ -59,7 +59,7 @@ enum RedistributionMode { REDISTRIBUTABLE, /** - * States are guranteed to be identical in different partitions, thus redistribution is not + * States are guaranteed to be identical in different partitions, thus redistribution is not * a problem. */ IDENTICAL diff --git a/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java b/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java index 1ca1c960359cc7..b25c1f028cb819 100644 --- a/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java +++ b/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java @@ -106,7 +106,7 @@ public static void initDefaultsFromConfiguration(Configuration configuration) { protected transient FSDataOutputStream stream; /** - * The path that is actually written to (may a a file in a the directory defined by {@code + * The path that is actually written to (may be a file in the directory defined by {@code * outputFilePath} ) */ private transient Path actualFilePath; diff --git a/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java b/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java index 648a4ff6280b58..3fdaf94389e3f1 100644 --- a/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java +++ b/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java @@ -33,7 +33,7 @@ public class SinkUtils implements Serializable { /** * Acquire permits on the given semaphore within a given allowed timeout and deal with errors. * - * @param permits the mumber of permits to acquire. + * @param permits the number of permits to acquire. * @param maxConcurrentRequests the maximum number of permits the semaphore was initialized * with. * @param maxConcurrentRequestsTimeout the timeout to acquire the permits. diff --git a/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java b/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java index f1ff017768b800..d61fa1d72ea65e 100644 --- a/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java +++ b/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java @@ -328,7 +328,7 @@ void execute( /** * Return if operator/function should interrupt a longer computation and return from the - * currently processed elemenent/watermark, for example in order to let Flink perform a + * currently processed element/watermark, for example in order to let Flink perform a * checkpoint. * * @return whether operator/function should interrupt its computation. diff --git a/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java b/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java index 77b893549cbfa1..165757c28f9265 100644 --- a/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java +++ b/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java @@ -154,7 +154,7 @@ public boolean supportsCompareAgainstReference() { * * @param first The first record. * @param second The second record. - * @return An integer defining the oder among the objects in the same way as {@link + * @return An integer defining the order among the objects in the same way as {@link * java.util.Comparator#compare(Object, Object)}. * @see java.util.Comparator#compare(Object, Object) */ @@ -169,7 +169,7 @@ public boolean supportsCompareAgainstReference() { * * @param firstSource The input view containing the first record. * @param secondSource The input view containing the second record. - * @return An integer defining the oder among the objects in the same way as {@link + * @return An integer defining the order among the objects in the same way as {@link * java.util.Comparator#compare(Object, Object)}. * @throws IOException Thrown, if any of the input views raised an exception when reading the * records. diff --git a/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java b/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java index cef69e27ed2317..db4d5898cf38bb 100644 --- a/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java +++ b/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java @@ -467,7 +467,7 @@ private static RowKind readKindFromMask(boolean[] mask) { } // -------------------------------------------------------------------------------------------- - // Serializer configuration snapshoting & compatibility + // Serializer configuration snapshotting & compatibility // -------------------------------------------------------------------------------------------- @Override diff --git a/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java b/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java index 878f7304a3ca1c..b714a5115c1993 100644 --- a/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java +++ b/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java @@ -180,7 +180,7 @@ private static void logConfiguration( /** * Flattens a nested configuration map to be only one level deep. * - *

Nested keys are concatinated using the {@code KEY_SEPARATOR} character. So that: + *

Nested keys are concatenated using the {@code KEY_SEPARATOR} character. So that: * *

      * keyA:
diff --git a/flink-core/src/test/java/org/apache/flink/configuration/ConfigOptionTest.java b/flink-core/src/test/java/org/apache/flink/configuration/ConfigOptionTest.java
index 79ea31803bd253..7abb8a9b552249 100644
--- a/flink-core/src/test/java/org/apache/flink/configuration/ConfigOptionTest.java
+++ b/flink-core/src/test/java/org/apache/flink/configuration/ConfigOptionTest.java
@@ -55,7 +55,7 @@ void testDeprecationFlagForFallbackKeys() {
         assertThat(optionWithFallbackKeys.hasFallbackKeys()).isTrue();
         for (final FallbackKey fallbackKey : optionWithFallbackKeys.fallbackKeys()) {
             assertThat(fallbackKey.isDeprecated())
-                    .as("falback key flagged as deprecated")
+                    .as("fallback key flagged as deprecated")
                     .isFalse();
         }
     }
diff --git a/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java b/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java
index 1377c5262c1c11..91b77cf4967781 100644
--- a/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java
+++ b/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java
@@ -50,7 +50,7 @@
  * subset of the whole union state. On restore, each subtask's restored union state should have one
  * entry for each subtask in the previous run.
  *
- * 

All input elements to the operator arre simply passed through a user-provided map function and + *

All input elements to the operator are simply passed through a user-provided map function and * emitted. */ public class ArtificalOperatorStateMapper extends RichMapFunction diff --git a/flink-end-to-end-tests/run-single-test.sh b/flink-end-to-end-tests/run-single-test.sh index a669ec88b99232..ec2430127ddcba 100755 --- a/flink-end-to-end-tests/run-single-test.sh +++ b/flink-end-to-end-tests/run-single-test.sh @@ -17,7 +17,7 @@ # limitations under the License. ################################################################################ -# This can be used to run a single test in the context of a test runnner +# This can be used to run a single test in the context of a test runner # Usage: ./run-single-test.sh [skip] test-scripts/my-test-case.sh # IMPORTANT: diff --git a/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml b/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml index ca3d059da32c50..a2a2f98670d843 100644 --- a/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml +++ b/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml @@ -184,7 +184,7 @@ under the License. file:///hadoop-data/nm-log-dirs diff --git a/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh b/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh index 601733eb1d1e40..d4884b24d744d6 100755 --- a/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh +++ b/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh @@ -134,7 +134,7 @@ function run_resume_externalized_checkpoints() { wait_job_running $DATASTREAM_JOB wait_oper_metric_num_in_records SemanticsCheckMapper.0 200 - # if state is errorneous and the general purpose DataStream job produces alerting messages, + # if state is erroneous and the general purpose DataStream job produces alerting messages, # output would be non-empty and the test will not pass } diff --git a/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh b/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh index 2ea41f6b496b65..efad5ed073e07e 100755 --- a/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh +++ b/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh @@ -123,7 +123,7 @@ run_resume_savepoint_test() { wait_oper_metric_num_in_records SemanticsCheckMapper.0 200 - # if state is errorneous and the state machine job produces alerting state transitions, + # if state is erroneous and the state machine job produces alerting state transitions, # output would be non-empty and the test will not pass } diff --git a/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java b/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java index 01388f9720e150..0930c861b0d7c9 100644 --- a/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java +++ b/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java @@ -35,7 +35,7 @@ /** * A RecoverableFsDataOutputStream to OSS that is based on a recoverable multipart upload. * - *

This class is NOT thread-safe. Concurrent writes tho this stream result in corrupt or lost + *

This class is NOT thread-safe. Concurrent writes to this stream result in corrupt or lost * data. * *

The {@link #close()} method may be called concurrently when cancelling / shutting down. It diff --git a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java index e27fc52689ea3c..b057958821afc3 100644 --- a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java +++ b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java @@ -42,7 +42,7 @@ /** * A RecoverableFsDataOutputStream to S3 that is based on a recoverable multipart upload. * - *

This class is NOT thread-safe. Concurrent writes tho this stream result in corrupt or lost + *

This class is NOT thread-safe. Concurrent writes to this stream result in corrupt or lost * data. * *

The {@link #close()} method may be called concurrently when cancelling / shutting down. It diff --git a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java index 368576b4b8a61b..5bc2f1d7e83a91 100644 --- a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java +++ b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java @@ -33,7 +33,7 @@ import java.util.Optional; import java.util.concurrent.Executor; -/** A factory for creating or recovering {@link RecoverableMultiPartUpload mulitpart uploads}. */ +/** A factory for creating or recovering {@link RecoverableMultiPartUpload multipart uploads}. */ @Internal final class S3RecoverableMultipartUploadFactory { diff --git a/flink-formats/flink-avro/pom.xml b/flink-formats/flink-avro/pom.xml index 635bd7356520a4..88f86ab030acc6 100644 --- a/flink-formats/flink-avro/pom.xml +++ b/flink-formats/flink-avro/pom.xml @@ -208,7 +208,7 @@ under the License. - diff --git a/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java b/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java index 352e74a1ba8611..8d2482a2df915f 100644 --- a/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java +++ b/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java @@ -38,7 +38,7 @@ import java.util.List; /** - * Converter functions that covert Flink's type information to Jackson's {@link CsvSchema}. + * Converter functions that convert Flink's type information to Jackson's {@link CsvSchema}. * *

In {@link CsvSchema}, there are four types (string, number, boolean, and array). In order to * satisfy various Flink types, this class sorts out instances of {@link TypeInformation} and {@link diff --git a/flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/PbFormatOptions.java b/flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/PbFormatOptions.java index 18b8fc9618fe43..2ca37591e9688a 100644 --- a/flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/PbFormatOptions.java +++ b/flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/PbFormatOptions.java @@ -45,7 +45,7 @@ public class PbFormatOptions { .withDescription( "Optional flag to read as default values instead of null when some field does not exist in deserialization; default to false." + "If proto syntax is proto3, users need to set this to true when using protobuf versions lower than 3.15 as older versions " - + "do not support checking for field presence which can cause runtime compilation issues. Additionally, primtive types " + + "do not support checking for field presence which can cause runtime compilation issues. Additionally, primitive types " + "will be set to default values instead of null as field presence cannot be checked for them. Please be aware that setting this" + " to true will cause the deserialization performance to be much slower depending on schema complexity and message size"); public static final ConfigOption WRITE_NULL_STRING_LITERAL = diff --git a/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java b/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java index 721b8a40337902..4c442d4ccd2d99 100644 --- a/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java +++ b/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java @@ -37,7 +37,7 @@ * * *

Each {@link Pattern} can be optional and have a {@link ConsumingStrategy}. Looping and Times - * also hava an additional inner consuming strategy that is applied between accepted events in the + * also have an additional inner consuming strategy that is applied between accepted events in the * pattern. */ public class Quantifier { diff --git a/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java b/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java index c6d477b42dc402..d67d11f39bda78 100644 --- a/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java +++ b/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java @@ -56,7 +56,7 @@ /** * A {@code SavepointWriter} can create new savepoints from bounded data streams. This can allow for - * boostrapping state for new applications or modifying the savepoints of existing jobs. + * bootstrapping state for new applications or modifying the savepoints of existing jobs. */ @PublicEvolving public class SavepointWriter { diff --git a/flink-python/docs/reference/pyflink.datastream/state.rst b/flink-python/docs/reference/pyflink.datastream/state.rst index c43ce740e20c13..e302b7709c76b5 100644 --- a/flink-python/docs/reference/pyflink.datastream/state.rst +++ b/flink-python/docs/reference/pyflink.datastream/state.rst @@ -129,7 +129,7 @@ etc). The :class:`EmbeddedRocksDBStateBackend` stores working state in an embedded `RocksDB `_, instance and is able to scale working state to many -terrabytes in size, only limited by available disk space across all task managers. +terabytes in size, only limited by available disk space across all task managers. **Raw Bytes Storage and Backends** diff --git a/flink-python/pyflink/datastream/checkpoint_storage.py b/flink-python/pyflink/datastream/checkpoint_storage.py index 054d1d05f98305..ae357130374a8e 100644 --- a/flink-python/pyflink/datastream/checkpoint_storage.py +++ b/flink-python/pyflink/datastream/checkpoint_storage.py @@ -237,7 +237,7 @@ class FileSystemCheckpointStorage(CheckpointStorage): many small files. The threshold for that is configurable. When increasing this threshold, the size of the checkpoint metadata increases. The checkpoint metadata of all retained completed checkpoints needs to fit into the JobManager's heap memory. This is typically not a problem, - unless the threashold `get_min_file_size_threshold` is increased significantly. + unless the threshold `get_min_file_size_threshold` is increased significantly. **Persistence Guarantees** @@ -340,7 +340,7 @@ def get_min_file_size_threshold(self) -> int: """ Gets the threshold below which state is stored as part of the metadata, rather than in file. This threshold ensures the backend does not create a large amount of small files, - where potentially the file pointers are larget than the state itself. + where potentially the file pointers are larger than the state itself. """ return self._j_checkpoint_storage.getMinFileSizeThreshold() diff --git a/flink-python/pyflink/datastream/connectors/kafka.py b/flink-python/pyflink/datastream/connectors/kafka.py index f6cf488b3ad1df..1f2eb3b4ace404 100644 --- a/flink-python/pyflink/datastream/connectors/kafka.py +++ b/flink-python/pyflink/datastream/connectors/kafka.py @@ -256,8 +256,8 @@ class FlinkKafkaProducerBase(SinkFunction, ABC): Flink Sink to produce data into a Kafka topic. Please note that this producer provides at-least-once reliability guarantees when checkpoints - are enabled and set_flush_on_checkpoint(True) is set. Otherwise, the producer doesn;t provid any - reliability guarantees. + are enabled and set_flush_on_checkpoint(True) is set. Otherwise, the producer doesn't provide + any reliability guarantees. """ def __init__(self, j_flink_kafka_producer): diff --git a/flink-python/pyflink/datastream/functions.py b/flink-python/pyflink/datastream/functions.py index cc09ab6729fe04..3d6922d70c9418 100644 --- a/flink-python/pyflink/datastream/functions.py +++ b/flink-python/pyflink/datastream/functions.py @@ -91,7 +91,7 @@ def get_list_state(self, state_descriptor: ListStateDescriptor) -> ListState: """ Gets a handle to the system's key/value list state. This state is similar to the value state access, but is optimized for state that holds lists. One can add elements to the list, or - retrieve the list as a whle. + retrieve the list as a whole. This state is only accessible if the function is executed on a KeyedStream. """ @@ -288,7 +288,7 @@ class FlatMapFunction(Function): @abstractmethod def flat_map(self, value): """ - The core mthod of the FlatMapFunction. Takes an element from the input data and transforms + The core method of the FlatMapFunction. Takes an element from the input data and transforms it into zero, one, or more elements. A basic implementation of flat map is as follows: diff --git a/flink-python/pyflink/datastream/state_backend.py b/flink-python/pyflink/datastream/state_backend.py index 6b3c3ddd5a7151..122cc05f95c386 100644 --- a/flink-python/pyflink/datastream/state_backend.py +++ b/flink-python/pyflink/datastream/state_backend.py @@ -71,7 +71,7 @@ class StateBackend(object, metaclass=ABCMeta): The :class:`EmbeddedRocksDBStateBackend` stores working state in an embedded `RocksDB `_, instance and is able to scale working state to many - terrabytes in size, only limited by available disk space across all task managers. + terabytes in size, only limited by available disk space across all task managers. **Raw Bytes Storage and Backends** @@ -244,7 +244,7 @@ def get_db_storage_paths(self) -> List[str]: Gets the configured local DB storage paths, or null, if none were configured. Under these directories on the TaskManager, RocksDB stores its SST files and - metadata files. These directories do not need to be persistent, they can be ephermeral, + metadata files. These directories do not need to be persistent, they can be ephemeral, meaning that they are lost on a machine failure, because state in RocksDB is persisted in checkpoints. diff --git a/flink-python/pyflink/datastream/tests/test_stream_execution_environment.py b/flink-python/pyflink/datastream/tests/test_stream_execution_environment.py index 8a10244a8a3bd3..0508589a2564fa 100644 --- a/flink-python/pyflink/datastream/tests/test_stream_execution_environment.py +++ b/flink-python/pyflink/datastream/tests/test_stream_execution_environment.py @@ -601,7 +601,7 @@ def add_from_file(i): nodes = eval(env.get_execution_plan())['nodes'] - # The StreamGraph should be as bellow: + # The StreamGraph should be as below: # Source: From Collection -> _stream_key_by_map_operator -> # Plus Two Map -> Add From File Map -> Sink: Test Sink. diff --git a/flink-python/pyflink/table/tests/test_typehints.py b/flink-python/pyflink/table/tests/test_typehints.py index deddb03055b35a..5d7bf8885fbf02 100644 --- a/flink-python/pyflink/table/tests/test_typehints.py +++ b/flink-python/pyflink/table/tests/test_typehints.py @@ -48,7 +48,7 @@ class _Partial(TypedDict, total=False): y: int -# typing.TypedDict ignores theese markers when computing optional keys prior to python 3.11 +# typing.TypedDict ignores these markers when computing optional keys prior to python 3.11 class _WithNotRequired(TypedDict): id: int label: typing_extensions.NotRequired[str] diff --git a/flink-python/pyflink/table/types.py b/flink-python/pyflink/table/types.py index f83fad4e0ff1ce..16f1af22f8f6f2 100644 --- a/flink-python/pyflink/table/types.py +++ b/flink-python/pyflink/table/types.py @@ -1405,7 +1405,7 @@ def deserialize(self, datum): # We should be careful here. The size of these types in python depends on C # implementation. We need to make sure that this conversion does not lose any # precision. Also, JVM only support signed types, when converting unsigned types, -# keep in mind that it requires 1 more bit when stored as singed types. +# keep in mind that it requires 1 more bit when stored as signed types. # # Reference for C integer size, see: # ISO/IEC 9899:201x specification, chapter 5.2.4.2.1 Sizes of integer types . diff --git a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java index fef7c28421d924..7d97cc812ee04b 100644 --- a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java +++ b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java @@ -326,7 +326,7 @@ private boolean isWindowLate(W window) { /** * Returns the cleanup time for a window, which is {@code window.maxTimestamp + - * allowedLateness}. In case this leads to a value greated than {@link Long#MAX_VALUE} then a + * allowedLateness}. In case this leads to a value greater than {@link Long#MAX_VALUE} then a * cleanup time of {@link Long#MAX_VALUE} is returned. * * @param window the window whose cleanup time we are computing. diff --git a/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTestBase.java b/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTestBase.java index 7cfab42c39a9ba..bef05e238843d0 100644 --- a/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTestBase.java +++ b/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTestBase.java @@ -39,7 +39,7 @@ /** * Abstract test base for {@link ArrowReader} and {@link ArrowWriter}. * - * @param the elment type. + * @param the element type. */ abstract class ArrowReaderWriterTestBase { diff --git a/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java b/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java index b12b03b4defe4b..ddd3a5220614af 100644 --- a/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java +++ b/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java @@ -492,7 +492,7 @@ public static Config getConfig( * @param externalAddress optional tuple of external address and port to be reachable at. If * null is given, then a Pekko config for local actor system will be returned * @param bindAddress optional tuple of bind address and port to be used locally. If null is - * given, wildcard IP address and the external port wil be used. Takes effect only if + * given, wildcard IP address and the external port will be used. Takes effect only if * externalAddress is not null. * @param executorConfig config defining the used executor by the default dispatcher * @return Pekko config diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java b/flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java index a5b4aa64c619d4..9904d6f81d0687 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java @@ -477,7 +477,7 @@ private static byte[] readFileFully( * Writes to the output stream the error return code, and the given exception in serialized * form. * - * @param out Thr output stream to write to. + * @param out The output stream to write to. * @param t The exception to send. * @throws IOException Thrown, if the output stream could not be written to. */ diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/entrypoint/ClusterEntrypointUtils.java b/flink-runtime/src/main/java/org/apache/flink/runtime/entrypoint/ClusterEntrypointUtils.java index bb1b1cab1ff67d..9ae518bf83d4dc 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/entrypoint/ClusterEntrypointUtils.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/entrypoint/ClusterEntrypointUtils.java @@ -226,7 +226,7 @@ public static File generateWorkingDirectoryFile( /** * Creates the working directory for the JobManager process. This method ensures that the - * working diretory exists. + * working directory exists. * * @param configuration to extract the required settings from * @param envelopedResourceId identifying the TaskManager process diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/BatchShuffleReadBufferPool.java b/flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/BatchShuffleReadBufferPool.java index 6681c1eac4a129..663d856667bb19 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/BatchShuffleReadBufferPool.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/BatchShuffleReadBufferPool.java @@ -61,7 +61,7 @@ public class BatchShuffleReadBufferPool { */ private static final Duration WAITING_TIME = Duration.ofSeconds(2); - /** Total direct memory size in bytes can can be allocated and used by this buffer pool. */ + /** Total direct memory size in bytes that can be allocated and used by this buffer pool. */ private final long totalBytes; /** The number of total buffers in this buffer pool. */ diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/file/ProducerMergedPartitionFileIndex.java b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/file/ProducerMergedPartitionFileIndex.java index eb38d302b6bd5f..d889980539d7c3 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/file/ProducerMergedPartitionFileIndex.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/file/ProducerMergedPartitionFileIndex.java @@ -112,7 +112,7 @@ void addBuffers(List buffers) { * * @param subpartitionId the subpartition id * @param bufferIndex the buffer index - * @return the region containing the buffer index, or return emtpy if the region is not found. + * @return the region containing the buffer index, or return empty if the region is not found. */ Optional getRegion( TieredStorageSubpartitionId subpartitionId, int bufferIndex) { diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/iterative/event/IterationEventWithAggregators.java b/flink-runtime/src/main/java/org/apache/flink/runtime/iterative/event/IterationEventWithAggregators.java index c0deeac181c256..10ced16ad063fb 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/iterative/event/IterationEventWithAggregators.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/iterative/event/IterationEventWithAggregators.java @@ -98,7 +98,7 @@ public Value[] getAggregates(ClassLoader classResolver) { "Could not load user-defined class '" + classNames[i] + "'.", e); } catch (ClassCastException e) { throw new RuntimeException( - "User-defined aggregator class is not a value sublass."); + "User-defined aggregator class is not a value subclass."); } try (DataInputViewStreamWrapper in = diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java index f6a0e85bd1635b..68c8e2b0cde31e 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java @@ -89,7 +89,7 @@ private JobResult( checkArgument(netRuntime >= 0, "netRuntime must be greater than or equals 0"); checkArgument( jobStatus == null || jobStatus.isGloballyTerminalState(), - "jobStatus must be globally terminal or unknow(null)"); + "jobStatus must be globally terminal or unknown(null)"); this.jobId = requireNonNull(jobId); this.jobName = requireNonNull(jobName); diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/DeclarativeSlotPoolBridge.java b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/DeclarativeSlotPoolBridge.java index 3cfeac17226a71..884c0ca6c472ba 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/DeclarativeSlotPoolBridge.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/DeclarativeSlotPoolBridge.java @@ -63,7 +63,7 @@ /** {@link SlotPool} implementation which uses the {@link DeclarativeSlotPool} to allocate slots. */ public class DeclarativeSlotPoolBridge extends DeclarativeSlotPoolService implements SlotPool { - /** Helper class to represent the fulfilled allocation infromation. */ + /** Helper class to represent the fulfilled allocation information. */ private static final class FulfilledAllocation { final AllocationID allocationID; final ResourceID taskExecutorID; @@ -510,7 +510,7 @@ public void notifyNotEnoughResourcesAvailable( private void failPendingRequests(Collection acquiredResources) { // only fails streaming requests because batch jobs do not require all resources - // requirements to be fullfilled at the same time + // requirements to be fulfilled at the same time Predicate predicate = request -> !request.isBatchRequest(); if (pendingRequests.values().stream().anyMatch(predicate)) { log.warn( diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java b/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java index 5a14c8c85daccc..a2162dcaeea91e 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java @@ -339,7 +339,7 @@ public void startQueryService(RpcService rpcService, ResourceID resourceID) { /** * Returns the rpc service that the {@link MetricQueryService} runs in. * - * @return rpc service of hte MetricQueryService + * @return rpc service of the MetricQueryService */ @Nullable public RpcService getMetricQueryServiceRpcService() { diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/coordination/SubtaskAccess.java b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/coordination/SubtaskAccess.java index 1ad69d599c18a2..453ea99a645caa 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/coordination/SubtaskAccess.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/coordination/SubtaskAccess.java @@ -76,7 +76,7 @@ Callable> createEventSendAction( boolean isStillRunning(); /** - * Triggers a failover for the subtaks execution attempt that this access instance is bound to. + * Triggers a failover for the subtask execution attempt that this access instance is bound to. */ void triggerTaskFailover(Throwable cause); diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/HashPartition.java b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/HashPartition.java index 32c605e51f4ab6..3b34592b10706c 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/HashPartition.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/HashPartition.java @@ -607,7 +607,7 @@ MemorySegment[] close() throws IOException { final MemorySegment current = getCurrentSegment(); if (current == null) { throw new IllegalStateException( - "Illegal State in HashPartition: No current buffer when finilizing build side."); + "Illegal State in HashPartition: No current buffer when finalizing build side."); } finalizeSegment(current, getCurrentPositionInSegment()); clear(); diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java index e2e874c06bc50a..69b5ff8aa17fa2 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java @@ -815,7 +815,7 @@ protected void buildInitialTable(final MutableObjectIterator input) throws I final int partitionFanOut = getPartitioningFanOutNoEstimates(this.availableMemory.size()); if (partitionFanOut > MAX_NUM_PARTITIONS) { throw new RuntimeException( - "Hash join partitions estimate exeeds maximum number of partitions."); + "Hash join partitions estimate exceeds maximum number of partitions."); } createPartitions(partitionFanOut, 0); diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/resettable/AbstractBlockResettableIterator.java b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/resettable/AbstractBlockResettableIterator.java index 91caa2450e05a9..d5e48955894d58 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/operators/resettable/AbstractBlockResettableIterator.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/operators/resettable/AbstractBlockResettableIterator.java @@ -75,7 +75,7 @@ protected AbstractBlockResettableIterator( throws MemoryAllocationException { if (numPages < 1) { throw new IllegalArgumentException( - "Block Resettable iterator requires at leat one page of memory"); + "Block Resettable iterator requires at least one page of memory"); } this.memoryManager = memoryManager; diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/SharedSlot.java b/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/SharedSlot.java index d46c6a191cf684..edf29ba087fcf5 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/SharedSlot.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/SharedSlot.java @@ -51,7 +51,7 @@ * slots from the underlying physical slot for {@link Execution executions} which share it. * *

The shared slot becomes a {@link PhysicalSlot.Payload} of its underlying physical slot once - * the physical slot is obtained. If the allcoated physical slot gets released then it calls back + * the physical slot is obtained. If the allocated physical slot gets released then it calls back * the shared slot to release the logical slots which fail their execution payloads. * *

A logical slot request can be cancelled if it is not completed yet or returned by the diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/StopWithSavepoint.java b/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/StopWithSavepoint.java index 691618034daa1b..20dcfff9cc4026 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/StopWithSavepoint.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/StopWithSavepoint.java @@ -53,7 +53,7 @@ * terminal state FINISHED. * *

This state has to cover several failure scenarios, depending on whether the savepoint - * succeeeds/fails and the job succeeds/fails/keeps running. + * succeeds/fails and the job succeeds/fails/keeps running. * *

    *
  • Savepoint succeeds, job succeeds - The happy path we like to see. diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/timeline/TriggerCause.java b/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/timeline/TriggerCause.java index 584bdba88c821e..567093660d29f3 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/timeline/TriggerCause.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/timeline/TriggerCause.java @@ -20,10 +20,10 @@ /** The cause of trigger rescaling. */ public enum TriggerCause { - INITIAL_SCHEDULE("The first schedule of the job starting triggerred the rescale."), - UPDATE_REQUIREMENT("Updating job resource requirements triggerred the rescale."), - NEW_RESOURCE_AVAILABLE("That new resources were available triggerred the rescale."), - RECOVERABLE_FAILOVER("Recoverable failover triggerred the rescale."); + INITIAL_SCHEDULE("The first schedule of the job starting triggered the rescale."), + UPDATE_REQUIREMENT("Updating job resource requirements triggered the rescale."), + NEW_RESOURCE_AVAILABLE("That new resources were available triggered the rescale."), + RECOVERABLE_FAILOVER("Recoverable failover triggered the rescale."); private final String description; diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncKeyedStateBackend.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncKeyedStateBackend.java index c0275314574f52..6115d687947e2d 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncKeyedStateBackend.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncKeyedStateBackend.java @@ -133,7 +133,7 @@ default boolean requiresLegacySynchronousTimerSnapshots(SnapshotType checkpointT * priority queue could be stored on different locations, e.g ForSt state-backend could store * that on JVM heap if configuring HEAP as the time-service factory. * - * @return returns ture if safe to reuse the key-values from the state-backend. + * @return returns true if safe to reuse the key-values from the state-backend. */ default boolean isSafeToReuseKVState() { return false; diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncSnapshotCallable.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncSnapshotCallable.java index 2eae750d9988bd..ebe10a77304037 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncSnapshotCallable.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/AsyncSnapshotCallable.java @@ -142,7 +142,7 @@ protected void done() { } /** - * This method implements the (async) snapshot logic. Resources aquired within this method + * This method implements the (async) snapshot logic. Resources acquired within this method * should be released at the end of the method. */ protected abstract T callInternal() throws Exception; diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageFactory.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageFactory.java index b0ae81b176dbe0..144c5dc5acb261 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageFactory.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageFactory.java @@ -38,7 +38,7 @@ public interface CheckpointStorageFactory { * Creates the checkpoint storage, optionally using the given configuration. * * @param config The Flink configuration (loaded by the TaskManager). - * @param classLoader The clsas loader that should be used to load the checkpoint storage. + * @param classLoader The class loader that should be used to load the checkpoint storage. * @return The created checkpoint storage. * @throws IllegalConfigurationException If the configuration misses critical values, or * specifies invalid values diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/KeyedStateBackend.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/KeyedStateBackend.java index d40d619cd7d8a8..f47e09761e6ebe 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/KeyedStateBackend.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/KeyedStateBackend.java @@ -128,7 +128,7 @@ void applyToAllKeys( /** * @return A stream of all keys for the given state and namespace. Modifications to the state * during iterating over it keys are not supported. Implementations go not make any ordering - * guarantees about the returned tupes. Two records with the same key or namespace may not + * guarantees about the returned tuples. Two records with the same key or namespace may not * be returned near each other in the stream. * @param state State variable for which existing keys will be returned. */ @@ -195,7 +195,7 @@ S getPartitionedState( * priority queue could be stored on different locations, e.g RocksDB state-backend could store * that on JVM heap if configuring HEAP as the time-service factory. * - * @return returns ture if safe to reuse the key-values from the state-backend. + * @return returns true if safe to reuse the key-values from the state-backend. */ default boolean isSafeToReuseKVState() { return false; diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/RetrievableStreamStateHandle.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/RetrievableStreamStateHandle.java index fb5d4697173503..4e126d058191dd 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/RetrievableStreamStateHandle.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/RetrievableStreamStateHandle.java @@ -30,9 +30,9 @@ import java.util.Optional; /** - * Wrapper around a {@link StreamStateHandle} to make the referenced state object retrievable trough - * a simple get call. This implementation expects that the object was serialized through default - * serialization of Java's {@link java.io.ObjectOutputStream}. + * Wrapper around a {@link StreamStateHandle} to make the referenced state object retrievable + * through a simple get call. This implementation expects that the object was serialized through + * default serialization of Java's {@link java.io.ObjectOutputStream}. * * @param type of the retrievable object which is stored under the wrapped stream handle */ diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/TestableKeyedStateBackend.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/TestableKeyedStateBackend.java index d6ec94c14b008d..6762e0ad3c3c52 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/TestableKeyedStateBackend.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/TestableKeyedStateBackend.java @@ -26,8 +26,7 @@ public interface TestableKeyedStateBackend extends KeyedStateBackend { int numKeyValueStateEntries(); /** - * @return delegated {@link KeyedStateBackend} if this backends delegates its - * responisibilities.. + * @return delegated {@link KeyedStateBackend} if this backends delegates its responsibilities. * @param recursive true if the call should be recursive */ default KeyedStateBackend getDelegatedKeyedStateBackend(boolean recursive) { diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/ChangelogStateBackendHandle.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/ChangelogStateBackendHandle.java index ab35aedc756e34..7be6876ad676c2 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/ChangelogStateBackendHandle.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/ChangelogStateBackendHandle.java @@ -50,8 +50,8 @@ /** * A handle to ChangelogStateBackend state. Consists of the base and delta parts. Base part * references materialized state (e.g. SST files), while delta part references state changes that - * were not not materialized at the time of the snapshot. Both are potentially empty lists as there - * can be no state or multiple states (e.g. after rescaling). + * were not materialized at the time of the snapshot. Both are potentially empty lists as there can + * be no state or multiple states (e.g. after rescaling). */ @Internal public interface ChangelogStateBackendHandle diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/LocalChangelogRegistry.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/LocalChangelogRegistry.java index 678667951f32f1..96702a0171dd14 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/LocalChangelogRegistry.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/changelog/LocalChangelogRegistry.java @@ -24,7 +24,7 @@ import java.io.Closeable; import java.io.IOException; -/** This registry is responsible for deleting changlog's local handles which are not in use. */ +/** This registry is responsible for deleting changelog's local handles which are not in use. */ @Internal public interface LocalChangelogRegistry extends Closeable { LocalChangelogRegistry NO_OP = diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/AbstractFsCheckpointStorageAccess.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/AbstractFsCheckpointStorageAccess.java index f1b0b3aac06abd..7d54d39ce17d80 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/AbstractFsCheckpointStorageAccess.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/AbstractFsCheckpointStorageAccess.java @@ -358,7 +358,7 @@ public static Path decodePathFromReference(CheckpointStorageLocationReference re } } - // covert to string and path + // convert to string and path try { return new Path( new String( diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateMap.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateMap.java index 6ad7401be81b50..12c44fb985f85f 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateMap.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateMap.java @@ -164,7 +164,7 @@ public class CopyOnWriteStateMap extends StateMap { */ private StateMapEntry[] incrementalRehashTable; - /** The current number of mappings in the primary talbe. */ + /** The current number of mappings in the primary table. */ private int primaryTableSize; /** The current number of mappings in the rehash table. */ diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/HeapKeyedStateBackend.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/HeapKeyedStateBackend.java index aec63ee7d0effc..c6b90aa9d14e7b 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/HeapKeyedStateBackend.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/HeapKeyedStateBackend.java @@ -266,7 +266,7 @@ private StateTable tryRegisterStateTable( && TtlAwareSerializer.needTtlStateMigration( previousStateSerializer, newStateSerializer)) { // State migration without ttl change will be performed automatically during - // checkpoint, so we only preform state ttl migration here. + // checkpoint, so we only perform state ttl migration here. migrateTtlAwareStateValues(stateDesc, previousStateSerializer, newStateSerializer); } diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/storage/JobManagerCheckpointStorage.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/storage/JobManagerCheckpointStorage.java index 73c5bbd793f3ea..849416b312c75b 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/storage/JobManagerCheckpointStorage.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/storage/JobManagerCheckpointStorage.java @@ -239,7 +239,7 @@ public JobManagerCheckpointStorage configure(ReadableConfig config, ClassLoader * Creates a new {@link JobManagerCheckpointStorage} using the given configuration. * * @param config The Flink configuration (loaded by the TaskManager). - * @param classLoader The clsas loader that should be used to load the checkpoint storage. + * @param classLoader The class loader that should be used to load the checkpoint storage. * @return The created checkpoint storage. * @throws IllegalConfigurationException If the configuration misses critical values, or * specifies invalid values diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/state/v2/AbstractAggregatingState.java b/flink-runtime/src/main/java/org/apache/flink/runtime/state/v2/AbstractAggregatingState.java index f59677aeac1ba6..9f2f1d77f064b3 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/state/v2/AbstractAggregatingState.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/state/v2/AbstractAggregatingState.java @@ -38,7 +38,7 @@ * * @param The type of key the state is associated to. * @param The type of the values that are added into the state. - * @param TThe type of the accumulator (intermediate aggregation state). + * @param The type of the accumulator (intermediate aggregation state). * @param The type of the values that are returned from the state. */ public class AbstractAggregatingState extends AbstractKeyedState diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/util/StateHandleStoreUtils.java b/flink-runtime/src/main/java/org/apache/flink/runtime/util/StateHandleStoreUtils.java index d898900ee6c7a2..3e836c3f5b9fb8 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/util/StateHandleStoreUtils.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/util/StateHandleStoreUtils.java @@ -28,7 +28,7 @@ import java.io.Serializable; /** - * {@code StateHandleStoreUtils} collects utility methods that might be usefule for any {@link + * {@code StateHandleStoreUtils} collects utility methods that might be useful for any {@link * StateHandleStore} implementation. */ public class StateHandleStoreUtils { diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/webmonitor/stats/TaskStatsRequestCoordinator.java b/flink-runtime/src/main/java/org/apache/flink/runtime/webmonitor/stats/TaskStatsRequestCoordinator.java index 727c7a0e9d30fb..f97a67ab290291 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/webmonitor/stats/TaskStatsRequestCoordinator.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/webmonitor/stats/TaskStatsRequestCoordinator.java @@ -208,7 +208,7 @@ public int getNumberOfPendingRequests() { /** * A pending task stats request, which collects samples from individual tasks and completes the - * response future upon gathering all of of them. + * response future upon gathering all of them. * *

    Has to be accessed in lock scope. * diff --git a/flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java b/flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java index 44733abab5475e..995e2cd4b7939a 100644 --- a/flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java +++ b/flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java @@ -208,7 +208,7 @@ public StreamExecutionEnvironment() { this(new Configuration()); // unfortunately, StreamExecutionEnvironment always (implicitly) had a public constructor. // This constructor is not useful because the execution environment cannot be used for - // execution. We're keeping this to appease the binary compatibiliy checks. + // execution. We're keeping this to appease the binary compatibility checks. } /** diff --git a/flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/WindowStagger.java b/flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/WindowStagger.java index bcd25e0efc87e4..a48108f54e1a23 100644 --- a/flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/WindowStagger.java +++ b/flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/WindowStagger.java @@ -47,8 +47,8 @@ public long getStaggerOffset(final long currentProcessingTime, final long size) /** * When the first event is received in the window operator, take the difference between the - * start of the window and current procesing time as the offset. This way, windows are staggered - * based on when each parallel operator receives the first event. + * start of the window and current processing time as the offset. This way, windows are + * staggered based on when each parallel operator receives the first event. */ NATURAL { @Override diff --git a/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/asyncprocessing/AsyncKeyOrderedProcessing.java b/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/asyncprocessing/AsyncKeyOrderedProcessing.java index 9484f851e26805..c2e161ac90d8e1 100644 --- a/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/asyncprocessing/AsyncKeyOrderedProcessing.java +++ b/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/asyncprocessing/AsyncKeyOrderedProcessing.java @@ -30,7 +30,7 @@ public interface AsyncKeyOrderedProcessing { /** * Get if the async state processing is enabled for this input/operator. * - * @return ture if async state processing is enabled. + * @return true if async state processing is enabled. */ boolean isAsyncKeyOrderedProcessingEnabled(); diff --git a/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxMetricsController.java b/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxMetricsController.java index 74c214c21827ce..881ee5a1210775 100644 --- a/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxMetricsController.java +++ b/flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxMetricsController.java @@ -98,7 +98,7 @@ public void startLatencyMeasurement() { } /** - * Indicates if latency mesurement has been started. + * Indicates if latency measurement has been started. * * @return True if latency measurement has been started. */ diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheCorruptionTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheCorruptionTest.java index 1ff5216f296509..3043e50d301274 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheCorruptionTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheCorruptionTest.java @@ -35,7 +35,7 @@ /** * Tests how GET requests react to corrupt files when downloaded via a {@link BlobCacheService}. * - *

    Successful GET requests are tested in conjunction wit the PUT requests. + *

    Successful GET requests are tested in conjunction with the PUT requests. */ class BlobCacheCorruptionTest { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheGetTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheGetTest.java index c336a8264f8359..60db09f2e037fe 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheGetTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobCacheGetTest.java @@ -71,7 +71,7 @@ * from the {@link TransientBlobCache}, and how failing GET requests behave in the presence of * failures when used with a {@link BlobCacheService}. * - *

    Most successful GET requests are tested in conjunction wit the PUT requests by {@link + *

    Most successful GET requests are tested in conjunction with the PUT requests by {@link * BlobCachePutTest}. */ class BlobCacheGetTest { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerCorruptionTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerCorruptionTest.java index 2ab5cf1d65cf02..e32f8860fdbc0f 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerCorruptionTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerCorruptionTest.java @@ -32,7 +32,7 @@ /** * Tests how GET requests react to corrupt files when downloaded via a {@link BlobServer}. * - *

    Successful GET requests are tested in conjunction wit the PUT requests. + *

    Successful GET requests are tested in conjunction with the PUT requests. */ class BlobServerCorruptionTest { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerGetTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerGetTest.java index fc6e69415f8b19..21e615961b4bb2 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerGetTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerGetTest.java @@ -70,7 +70,7 @@ * Tests how failing GET requests behave in the presence of failures when used with a {@link * BlobServer}. * - *

    Successful GET requests are tested in conjunction wit the PUT requests by {@link + *

    Successful GET requests are tested in conjunction with the PUT requests by {@link * BlobServerPutTest}. */ class BlobServerGetTest { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/CheckpointOptionsTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/CheckpointOptionsTest.java index b92b23e54947b6..9a7d70688596f4 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/CheckpointOptionsTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/CheckpointOptionsTest.java @@ -186,7 +186,7 @@ private void assertReversable(CheckpointOptions options, boolean forceHasEffect) .isEqualTo(options); } assertThat(unalignedUnsupported.withUnalignedSupported()) - .as("expected fully reversable options") + .as("expected fully reversible options") .isEqualTo(options); } diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/PrioritizedOperatorSubtaskStateTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/PrioritizedOperatorSubtaskStateTest.java index fa892cea9daae5..fdb5807c66ab3e 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/PrioritizedOperatorSubtaskStateTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/PrioritizedOperatorSubtaskStateTest.java @@ -458,7 +458,7 @@ public boolean checkContainedObjectsReferentialEquality( /** * Creates a deep copy of the first state object in the given collection, or null if the - * collection is empy. + * collection is empty. */ private static StateObjectCollection deepCopyFirstElement( StateObjectCollection original) { @@ -470,7 +470,7 @@ private static StateObjectCollection deepCopyFirstEle /** * Creates a deep copy of the first state object in the given collection, or null if the - * collection is empy. + * collection is empty. */ private static StateObjectCollection deepCopy( StateObjectCollection original) { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/NoOpExecutionPlanListener.java b/flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/NoOpExecutionPlanListener.java index fc1579547b7d64..8e0d4dc4852028 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/NoOpExecutionPlanListener.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/dispatcher/NoOpExecutionPlanListener.java @@ -22,7 +22,8 @@ import org.apache.flink.runtime.jobmanager.ExecutionPlanStore; /** - * No operation {@link ExecutionPlanStore.ExecutionPlanListener} implemetation for testing purposes. + * No operation {@link ExecutionPlanStore.ExecutionPlanListener} implementation for testing + * purposes. */ public enum NoOpExecutionPlanListener implements ExecutionPlanStore.ExecutionPlanListener { INSTANCE; diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/BroadcastRecordWriterTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/BroadcastRecordWriterTest.java index da30b68747bc56..0235c6e12e8f4b 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/BroadcastRecordWriterTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/BroadcastRecordWriterTest.java @@ -98,7 +98,7 @@ void testBroadcastMixedRandomEmitRecord(@TempDir Path tempPath) throws Exception assertThat(2 * numberOfRecords).isEqualTo(numberOfCreatedBuffers); for (int i = 0; i < numberOfSubpartitions; i++) { - // every subpartition would queue the number of above crated buffers + // every subpartition would queue the number of above created buffers assertThat(partition.getNumberOfQueuedBuffers(i)).isEqualTo(numberOfRecords + 1); final int excessRandomRecords = i < numberOfRecords % numberOfSubpartitions ? 1 : 0; diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java index 22903144e8d0a9..320afba9fdb3c2 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/api/writer/RecordWriterTest.java @@ -306,7 +306,7 @@ void testBroadcastEmitRecord(@TempDir Path tempPath) throws Exception { } /** - * Tests that the RecordWriter is available iif the respective LocalBufferPool has at-least one + * Tests that the RecordWriter is available iff the respective LocalBufferPool has at-least one * available buffer. */ @TestTemplate diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/PartialConsumePipelinedResultTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/PartialConsumePipelinedResultTest.java index 40fde1f80bad12..0a459d36616bd1 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/PartialConsumePipelinedResultTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/PartialConsumePipelinedResultTest.java @@ -71,7 +71,7 @@ private static Configuration getFlinkConfiguration() { /** * Tests a fix for FLINK-1930. * - *

    When consuming a pipelined result only partially, is is possible that local channels + *

    When consuming a pipelined result only partially, it is possible that local channels * release the buffer pool, which is associated with the result partition, too early. If the * producer is still producing data when this happens, it runs into an IllegalStateException, * because of the destroyed buffer pool. diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/memory/MemoryManagerTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/memory/MemoryManagerTest.java index 578f7e9ef1844e..240d2e96a4dfff 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/memory/MemoryManagerTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/memory/MemoryManagerTest.java @@ -135,7 +135,7 @@ void allocateMultipleOwners() throws Exception { // check that the owner owners were not affected for (int k = i + 1; k < numOwners; k++) { assertThat(allMemorySegmentsValid(mems[k])) - .as("Non-released memory segments are accidentaly destroyed.") + .as("Non-released memory segments are accidentally destroyed.") .isTrue(); } } diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/metrics/MetricRegistryImplTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/metrics/MetricRegistryImplTest.java index d83af16b6a8c97..d66639d5a22bd9 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/metrics/MetricRegistryImplTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/metrics/MetricRegistryImplTest.java @@ -157,8 +157,8 @@ void testReporterScheduling() throws Exception { long curT = System.currentTimeMillis(); /** * Within a given time-frame T only T/500 reports may be triggered due to the interval - * between reports. This value however does not not take the first triggered report into - * account (=> +1). Furthermore we have to account for the mis-alignment between reports + * between reports. This value however does not take the first triggered report into + * account (=> +1). Furthermore we have to account for the misalignment between reports * being triggered and our time measurement (=> +1); for T=200 a total of 4-6 reports * may have been triggered depending on whether the end of the interval for the first * reports ends before or after T=50. diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/CombineTaskExternalITCase.java b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/CombineTaskExternalITCase.java index 5a90152e2c93fd..7b0ff42a5ee259 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/CombineTaskExternalITCase.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/CombineTaskExternalITCase.java @@ -84,7 +84,7 @@ void testSingleLevelMergeCombineTask() { expSum += i; } - // wee need to do the final aggregation manually in the test, because the + // we need to do the final aggregation manually in the test, because the // combiner is not guaranteed to do that final HashMap aggMap = new HashMap<>(); for (Record record : this.outList) { @@ -139,7 +139,7 @@ void testMultiLevelMergeCombineTask() { expSum += i; } - // wee need to do the final aggregation manually in the test, because the + // we need to do the final aggregation manually in the test, because the // combiner is not guaranteed to do that final HashMap aggMap = new HashMap<>(); for (Record record : this.outList) { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/DataSourceTaskTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/DataSourceTaskTest.java index bd7c84c97e7ad9..27f41760656f2e 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/DataSourceTaskTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/DataSourceTaskTest.java @@ -321,7 +321,7 @@ public static class MockFailingInputFormat extends DelimitedInputFormat public Record readRecord(Record target, byte[] record, int offset, int numBytes) { if (this.cnt == 10) { - throw new RuntimeException("Excpected Test Exception."); + throw new RuntimeException("Expected Test Exception."); } this.cnt++; diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/coordination/CoordinatorEventsExactlyOnceITCase.java b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/coordination/CoordinatorEventsExactlyOnceITCase.java index e26c3123af4703..9fc3dcbc143f46 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/coordination/CoordinatorEventsExactlyOnceITCase.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/coordination/CoordinatorEventsExactlyOnceITCase.java @@ -278,7 +278,7 @@ private IntegerResponse(int value) { *

    All consistency guaranteed for the coordinator apply to order or method invocations (like * {@link #executionAttemptFailed(int, int, Throwable)}}, {@link #subtaskReset(int, long)} or * {@link #checkpointCoordinator(long, CompletableFuture)}) and the order in which actions are - * done (sending events and completing checkpoints). Tho consistently evaluate this, but with + * done (sending events and completing checkpoints). To consistently evaluate this, but with * concurrency against the scheduler thread that calls this coordinator implements a simple * mailbox that moves the method handling into a separate thread, but keeps the order. * diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/testutils/TaskCancelThread.java b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/testutils/TaskCancelThread.java index 9a15258841078b..a0002a4c571416 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/operators/testutils/TaskCancelThread.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/operators/testutils/TaskCancelThread.java @@ -52,7 +52,7 @@ public void run() { try { Thread.sleep(this.cancelTimeout * 1000); } catch (InterruptedException e) { - fail("CancelThread interruped while waiting for cancel timeout"); + fail("CancelThread interrupted while waiting for cancel timeout"); } try { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadExtension.java b/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadExtension.java index 431b1a0fd5168e..6f7d0b339c16fb 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadExtension.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/rest/MultipartUploadExtension.java @@ -136,7 +136,7 @@ public void before(ExtensionContext context) throws Exception { this.setFileUploadVerifier( (request, restfulGateway) -> { - // the default verifier checks for identiy (i.e. same name and content) of all + // the default verifier checks for identity (i.e. same name and content) of all // uploaded files assertUploadedFilesEqual(request, getFilesToUpload()); }); diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java b/flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java index 32ab5396c43d6c..ebd95fe3682783 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java @@ -5018,7 +5018,7 @@ void testAsyncSnapshot() throws Exception { } /** - * Since {@link AbstractKeyedStateBackend#getKeys(String, Object)} does't support concurrent + * Since {@link AbstractKeyedStateBackend#getKeys(String, Object)} doesn't support concurrent * modification and {@link AbstractKeyedStateBackend#applyToAllKeys(Object, TypeSerializer, * StateDescriptor, KeyedStateFunction)} rely on it to get keys from backend. So we need this * unit test to verify the concurrent modification with {@link diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/state/filesystem/AbstractFileCheckpointStorageAccessTestBase.java b/flink-runtime/src/test/java/org/apache/flink/runtime/state/filesystem/AbstractFileCheckpointStorageAccessTestBase.java index 5cf17727d7bff9..23374e37856c9b 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/state/filesystem/AbstractFileCheckpointStorageAccessTestBase.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/state/filesystem/AbstractFileCheckpointStorageAccessTestBase.java @@ -49,7 +49,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy; /** - * Test base for file-system-based checkoint storage, such as the {@link + * Test base for file-system-based checkpoint storage, such as the {@link * MemoryBackendCheckpointStorageAccess} and the {@link FsCheckpointStorageAccess}. */ public abstract class AbstractFileCheckpointStorageAccessTestBase { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/StartStopNotifyingLeaderRetrievalService.java b/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/StartStopNotifyingLeaderRetrievalService.java index b4bc1f23dd061d..1f027a306ca3d3 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/StartStopNotifyingLeaderRetrievalService.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/StartStopNotifyingLeaderRetrievalService.java @@ -23,7 +23,7 @@ import java.util.concurrent.CompletableFuture; -/** {@link LeaderRetrievalService} that captures thes {@link LeaderRetrievalListener}. */ +/** {@link LeaderRetrievalService} that captures the {@link LeaderRetrievalListener}. */ final class StartStopNotifyingLeaderRetrievalService implements LeaderRetrievalService { private final CompletableFuture startFuture; diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorPartitionLifecycleTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorPartitionLifecycleTest.java index a06b85edb0ed59..a57d44ab745627 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorPartitionLifecycleTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorPartitionLifecycleTest.java @@ -642,7 +642,7 @@ private void internalTestPartitionRelease( TestingInvokable.sync.awaitBlocker(); - // the task is still running => the partition is in in-progress and should be tracked + // the task is still running => the partition is in progress and should be tracked assertThatFuture(startTrackingFuture) .eventuallySucceeds() .isEqualTo( diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java index 11dc2e2c5321e4..1ae3dbb607b59f 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/taskexecutor/TaskExecutorTest.java @@ -1722,7 +1722,7 @@ void testRemoveJobFromJobLeaderService() throws Exception { .freeSlot(allocationId, new FlinkException("Test exception"), timeout) .get(); - // wait that the job leader retrieval service for jobId stopped becaue it should get + // wait that the job leader retrieval service for jobId stopped because it should get // removed stopFuture.get(); assertThat(jobLeaderService.containsJob(jobId)).isFalse(); diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/recordutils/RecordComparatorFactory.java b/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/recordutils/RecordComparatorFactory.java index dfa187736a9187..921b5339b333b0 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/recordutils/RecordComparatorFactory.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/recordutils/RecordComparatorFactory.java @@ -95,7 +95,7 @@ public void writeParametersToConfig(Configuration config) { throw new IllegalArgumentException( "The key type " + i - + " is null or not implenting the interface " + + " is null or not implementing the interface " + Value.class.getName() + "."); } diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/statemigration/TestType.java b/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/statemigration/TestType.java index aa2a4148c6ab0f..3173cfee70d4d7 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/statemigration/TestType.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/testutils/statemigration/TestType.java @@ -144,7 +144,7 @@ public TypeSerializerSnapshot snapshotConfiguration() { } /** - * A serializer that is meant to be compatible with any of the serializers only ofter being + * A serializer that is meant to be compatible with any of the serializers only after being * reconfigured as a new instance. */ public static class ReconfigurationRequiringTestTypeSerializer extends TestTypeSerializerBase { diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/zookeeper/ZooKeeperStateHandleStoreTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/zookeeper/ZooKeeperStateHandleStoreTest.java index 52794ac2c817ed..0675b40c651901 100644 --- a/flink-runtime/src/test/java/org/apache/flink/runtime/zookeeper/ZooKeeperStateHandleStoreTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/runtime/zookeeper/ZooKeeperStateHandleStoreTest.java @@ -1223,7 +1223,7 @@ void testReleaseAll() throws Exception { Stat stat = getZooKeeperClient().checkExists().forPath(zkStore.getInstanceLockPath(path)); - assertThat(stat).as("Expecte and existing lock.").isNotNull(); + assertThat(stat).as("Expected an existing lock.").isNotNull(); } zkStore.releaseAll(); diff --git a/flink-runtime/src/test/java/org/apache/flink/streaming/api/operators/SourceOperatorSplitWatermarkAlignmentTest.java b/flink-runtime/src/test/java/org/apache/flink/streaming/api/operators/SourceOperatorSplitWatermarkAlignmentTest.java index 36fda4eee681d3..75d07cb8460826 100644 --- a/flink-runtime/src/test/java/org/apache/flink/streaming/api/operators/SourceOperatorSplitWatermarkAlignmentTest.java +++ b/flink-runtime/src/test/java/org/apache/flink/streaming/api/operators/SourceOperatorSplitWatermarkAlignmentTest.java @@ -611,7 +611,7 @@ void testPausedIdleSplitsCanBeResumedByAlignmentCheck() throws Exception { assertThat(sourceReader.getPausedSplits()).containsExactly("0"); assertOutput(actualOutput, Arrays.asList(5)); - // Triggerring the next idleness periodic check + // Triggering the next idleness periodic check // which marks the split idle while paused. processingTimeService.advance(autoWatermarkIntervalMillis + marginMillis); // t=1400 assertThat(operator.getSplitMetricGroup(split0.splitId()).isIdle()).isTrue(); diff --git a/flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/restore/ChangelogBackendLogApplier.java b/flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/restore/ChangelogBackendLogApplier.java index 52a005ff0677f8..310b42d700531c 100644 --- a/flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/restore/ChangelogBackendLogApplier.java +++ b/flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/restore/ChangelogBackendLogApplier.java @@ -117,7 +117,7 @@ private static void applyMetaDataChange( throw new RuntimeException( "Unsupported state type: " + snapshot.getBackendStateType() - + ", sate: " + + ", state: " + snapshot.getName()); } stateIds.put( diff --git a/flink-state-backends/flink-statebackend-changelog/src/test/java/org/apache/flink/state/changelog/ChangelogStateBackendTestUtils.java b/flink-state-backends/flink-statebackend-changelog/src/test/java/org/apache/flink/state/changelog/ChangelogStateBackendTestUtils.java index 15b53ef3d9c685..6da4995476b93a 100644 --- a/flink-state-backends/flink-statebackend-changelog/src/test/java/org/apache/flink/state/changelog/ChangelogStateBackendTestUtils.java +++ b/flink-state-backends/flink-statebackend-changelog/src/test/java/org/apache/flink/state/changelog/ChangelogStateBackendTestUtils.java @@ -269,7 +269,7 @@ public static void testMaterializedRestore( IOUtils.closeQuietly(keyedBackend); keyedBackend.dispose(); - // make sure the asycn phase completes successfully + // make sure the async phase completes successfully if (asyncComplete.isCompletedExceptionally()) { asyncComplete.get(); } @@ -357,7 +357,7 @@ public static void testMaterializedRestoreForPriorityQueue( IOUtils.closeQuietly(keyedBackend); keyedBackend.dispose(); - // make sure the asycn phase completes successfully + // make sure the async phase completes successfully if (asyncComplete.isCompletedExceptionally()) { asyncComplete.get(); } diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java index 3f16081ede54f2..b8859981a41e3a 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java @@ -316,7 +316,7 @@ public static int findTheBestStateHandleForInitial( return bestHandlePos; } - /** Helper class tha defines a key-range in RocksDB as byte arrays for min and max key. */ + /** Helper class that defines a key-range in RocksDB as byte arrays for min and max key. */ private static final class KeyRange { static final KeyRange EMPTY = KeyRange.of(new byte[0], new byte[0]); diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java index 8160252fb73c1a..6b4a1a635f4eb5 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java @@ -585,7 +585,7 @@ public void dispose() { if (db != null) { // Metric collection occurs on a background thread. When this method returns - // it is guaranteed that thr ForSt reference has been invalidated + // it is guaranteed that the ForSt reference has been invalidated // and no more metric collection will be attempted against the database. if (nativeMetricMonitor != null) { nativeMetricMonitor.close(); diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java index 4f73785608a2aa..3ad1a1257a6ecd 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java @@ -206,8 +206,8 @@ public ForStDBPutRequest buildDBPutRequest(StateRequest st } /** - * Build a request for bunch put. Maily used for {@link StateRequestType#MAP_PUT_ALL} and {@link - * StateRequestType#CLEAR}. + * Build a request for bunch put. Mainly used for {@link StateRequestType#MAP_PUT_ALL} and + * {@link StateRequestType#CLEAR}. * * @param stateRequest The state request. * @return The {@code ForStDBBunchPutRequest}. diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java index e8f51c0c631687..56698020042186 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java @@ -723,7 +723,7 @@ public void setLocalDbStoragePaths(String... paths) { * Gets the configured local DB storage paths, or null, if none were configured. * *

    Under these directories on the TaskManager, ForSt stores some metadata files. These - * directories do not need to be persistent, they can be ephermeral, meaning that they are lost + * directories do not need to be persistent, they can be ephemeral, meaning that they are lost * on a machine failure, because state in ForSt is persisted in checkpoints. * *

    If nothing is configured, these directories default to the TaskManager's local temporary diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java index a634c36d5a4972..7e008171417749 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java @@ -691,7 +691,7 @@ public void mergeStateHandlesWithClipAndIngest( notImportableHandles); if (exportedColumnFamilyMetaData.isEmpty()) { - // Nothing coule be exported, so we fall back to + // Nothing could be exported, so we fall back to // #mergeStateHandlesWithCopyFromTemporaryInstance int bestStateHandleForInit = findTheBestStateHandleForInitial( diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java index 48e4ec447d1c7f..34e9d773c9f6b3 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java @@ -557,7 +557,7 @@ public void dispose() { IOUtils.closeQuietly(writeBatchWrapper); // Metric collection occurs on a background thread. When this method returns - // it is guaranteed that thr ForSt reference has been invalidated + // it is guaranteed that the ForSt reference has been invalidated // and no more metric collection will be attempted against the database. if (nativeMetricMonitor != null) { nativeMetricMonitor.close(); diff --git a/flink-state-backends/flink-statebackend-forst/src/test/java/org/apache/flink/state/forst/ForStStateBackendConfigTest.java b/flink-state-backends/flink-statebackend-forst/src/test/java/org/apache/flink/state/forst/ForStStateBackendConfigTest.java index 7287e7edc8505a..40dcb459fd7cc3 100644 --- a/flink-state-backends/flink-statebackend-forst/src/test/java/org/apache/flink/state/forst/ForStStateBackendConfigTest.java +++ b/flink-state-backends/flink-statebackend-forst/src/test/java/org/apache/flink/state/forst/ForStStateBackendConfigTest.java @@ -406,7 +406,7 @@ void testFailWhenNoLocalStorageDir() throws Exception { hasFailure = true; } assertThat(hasFailure) - .as("We must see a failure because no storaged directory is feasible.") + .as("We must see a failure because no storage directory is feasible.") .isTrue(); } finally { //noinspection ResultOfMethodCallIgnored diff --git a/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java b/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java index 318d205a50f722..8ca11dbe1542d1 100644 --- a/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java +++ b/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java @@ -690,7 +690,7 @@ private long doPhysicalRemoveAndGetValue(long node, long prevNode, long nextNode } /** - * Physically delte the meta of the node, including the node level index, the node key, and + * Physically delete the meta of the node, including the node level index, the node key, and * reduce the total size of the skip list. * * @param node node to remove. diff --git a/flink-state-backends/flink-statebackend-heap-spillable/src/test/java/org/apache/flink/runtime/state/heap/TestAllocator.java b/flink-state-backends/flink-statebackend-heap-spillable/src/test/java/org/apache/flink/runtime/state/heap/TestAllocator.java index a2a4b3b52da8a2..21f4d48927128e 100644 --- a/flink-state-backends/flink-statebackend-heap-spillable/src/test/java/org/apache/flink/runtime/state/heap/TestAllocator.java +++ b/flink-state-backends/flink-statebackend-heap-spillable/src/test/java/org/apache/flink/runtime/state/heap/TestAllocator.java @@ -84,7 +84,7 @@ public synchronized void free(long address) { @Override public synchronized Chunk getChunkById(int chunkId) { TestChunk chunk = chunkMap.get(chunkId); - Preconditions.checkNotNull(chunk, "chunk " + chunkId + " doest not exist."); + Preconditions.checkNotNull(chunk, "chunk " + chunkId + " does not exist."); return chunk; } diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java index 386b845ee7c757..0d695a8dc6398e 100644 --- a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java +++ b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java @@ -696,7 +696,7 @@ public void setDbStoragePaths(String... paths) { * Gets the configured local DB storage paths, or null, if none were configured. * *

    Under these directories on the TaskManager, RocksDB stores its SST files and metadata - * files. These directories do not need to be persistent, they can be ephermeral, meaning that + * files. These directories do not need to be persistent, they can be ephemeral, meaning that * they are lost on a machine failure, because state in RocksDB is persisted in checkpoints. * *

    If nothing is configured, these directories default to the TaskManager's local temporary diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java index 014ef9ef05025c..aca8ce013ab289 100644 --- a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java +++ b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java @@ -504,7 +504,7 @@ public static int findTheBestStateHandleForInitial( return bestHandlePos; } - /** Helper class tha defines a key-range in RocksDB as byte arrays for min and max key. */ + /** Helper class that defines a key-range in RocksDB as byte arrays for min and max key. */ private static final class KeyRange { static final KeyRange EMPTY = KeyRange.of(new byte[0], new byte[0]); diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java index d9958b7566e06a..ca302508297ba1 100644 --- a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java +++ b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java @@ -593,7 +593,7 @@ public void dispose() { IOUtils.closeQuietly(writeBatchWrapper); // Metric collection occurs on a background thread. When this method returns - // it is guaranteed that thr RocksDB reference has been invalidated + // it is guaranteed that the RocksDB reference has been invalidated // and no more metric collection will be attempted against the database. if (nativeMetricMonitor != null) { nativeMetricMonitor.close(); diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/state/rocksdb/RocksDBStateBackendConfigTest.java b/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/state/rocksdb/RocksDBStateBackendConfigTest.java index f49a277387abbd..03ad001f531e3b 100644 --- a/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/state/rocksdb/RocksDBStateBackendConfigTest.java +++ b/flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/state/rocksdb/RocksDBStateBackendConfigTest.java @@ -486,7 +486,7 @@ void testFailWhenNoLocalStorageDir() throws Exception { (MetricGroup) new UnregisteredMetricsGroup(), Collections.emptyList(), cancelStreamRegistry)), - "We must see a failure because no storaged directory is feasible.") + "We must see a failure because no storage directory is feasible.") .hasMessageContaining("No local storage directories available") .hasMessageContaining(targetDir.getAbsolutePath()); } finally { diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java index 3e43949d4a6d71..ebca734aca0756 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java @@ -153,7 +153,7 @@ private void restoreInProgressFile(final BucketState state) throws IOE private void commitRecoveredPendingFiles(final BucketState state) throws IOException { - // we commit pending files for checkpoints that precess the last successful one, from which + // we commit pending files for checkpoints that precede the last successful one, from which // we are recovering for (List pendingFileRecoverables : state.getPendingFileRecoverablesPerCheckpoint().values()) { diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java index 7c2972d8ee8198..b50fcf8801c3e7 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java @@ -651,7 +651,7 @@ private class ResultHandler implements ResultFuture { private final ResultFuture resultFuture; /** - * A guard against ill-written AsyncFunction. Additional (parallel) invokations of {@link + * A guard against ill-written AsyncFunction. Additional (parallel) invocations of {@link * #complete(Collection)} or {@link #completeExceptionally(Throwable)} will be ignored. This * guard also helps for cases where proper results and timeouts happen at the same time. */ diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java index ea602cb172fc34..a876e7aed5f68d 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java @@ -38,7 +38,7 @@ *

    On the first arriving element a configurable processing-time timeout will be set. Using {@link * #of(AsyncTrigger, Duration, boolean, boolean)}, you can also re-new the timer for each arriving * element by specifying {@code resetTimerOnNewRecord} and you can specify whether {@link - * AsyncTrigger#clear(Window, AsyncTrigger.TriggerContext)} should be called on timout via {@code + * AsyncTrigger#clear(Window, AsyncTrigger.TriggerContext)} should be called on timeout via {@code * shouldClearOnTimeout}. * * @param The type of elements on which this trigger can operate. diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java index 7d972e8864374a..387ff89d40ab9c 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java @@ -35,7 +35,7 @@ *

    On the first arriving element a configurable processing-time timeout will be set. Using {@link * #of(Trigger, Duration, boolean, boolean)}, you can also re-new the timer for each arriving * element by specifying {@code resetTimerOnNewRecord} and you can specify whether {@link - * Trigger#clear(Window, TriggerContext)} should be called on timout via {@code + * Trigger#clear(Window, TriggerContext)} should be called on timeout via {@code * shouldClearOnTimeout}. * * @param The type of elements on which this trigger can operate. diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/GenericWriteAheadSink.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/GenericWriteAheadSink.java index 352c7977211b80..c99bfb6b1ef444 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/GenericWriteAheadSink.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/GenericWriteAheadSink.java @@ -187,7 +187,7 @@ public void snapshotState(StateSnapshotContext context) throws Exception { checkpointedState.clear(); throw new Exception( - "Could not add panding checkpoints to operator state " + "Could not add pending checkpoints to operator state " + "backend of operator " + getOperatorName() + '.', diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializerTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializerTest.java index e15b92a5da7d91..be9a142b4074e6 100644 --- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializerTest.java +++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializerTest.java @@ -203,7 +203,7 @@ private void testDeserializationFull(final boolean withInProgress, final String .map(file -> file.getFileName().toString()) .collect(Collectors.toSet()); - // after restoring all pending files are comitted. + // after restoring all pending files are committed. // there is no "inporgress" in file name for the committed files. for (int i = 0; i < noOfPendingCheckpoints; i++) { final String part = "part-0-" + i; diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/sink/SinkV2CommitterOperatorTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/sink/SinkV2CommitterOperatorTest.java index 0025acdf2f369d..b5650c499d0b9d 100644 --- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/sink/SinkV2CommitterOperatorTest.java +++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/sink/SinkV2CommitterOperatorTest.java @@ -224,7 +224,7 @@ void testStateRestoreWithScaling( originalSubtaskId); testHarness.open(); - // We cannot test a different checkpoint thant 0 because when using the OperatorTestHarness + // We cannot test a different checkpoint than 0 because when using the OperatorTestHarness // for recovery the lastCompleted checkpoint is always reset to 0. long checkpointId = 0L; diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/MultipleInputStreamTaskTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/MultipleInputStreamTaskTest.java index 80aae91973ea01..5b2bbf87ece9c0 100644 --- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/MultipleInputStreamTaskTest.java +++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/MultipleInputStreamTaskTest.java @@ -135,7 +135,7 @@ import static org.assertj.core.api.Assertions.assertThat; /** - * Tests for {@link MultipleInputStreamTask}. Theses tests implicitly also test the {@link + * Tests for {@link MultipleInputStreamTask}. These tests implicitly also test the {@link * StreamMultipleInputProcessor}. */ @SuppressWarnings("serial") diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskCancellationBarrierTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskCancellationBarrierTest.java index 1f446c4541d9e4..592e3938777dcc 100644 --- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskCancellationBarrierTest.java +++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskCancellationBarrierTest.java @@ -48,7 +48,7 @@ class StreamTaskCancellationBarrierTest { /** - * This test verifies (for onw input tasks) that the Stream tasks react the following way to + * This test verifies (for one input tasks) that the Stream tasks react the following way to * receiving a checkpoint cancellation barrier: - send a "decline checkpoint" notification out * (to the JobManager) - emit a cancellation barrier downstream. */ diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java index 8ca889c033ab58..633f4a69548686 100644 --- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java +++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java @@ -1124,7 +1124,7 @@ private void testFailToConfirmCheckpointMessage(Consumer> consu } /** - * Tests exeptions is thrown by triggering checkpoint if operators are closed. This was + * Tests exceptions are thrown by triggering checkpoint if operators are closed. This was * initially implemented for FLINK-16383. However after FLINK-2491 operators lifecycle has * changed and now we: (1) redefined close() to dispose(). After closing operators, there should * be no opportunity to invoke anything on the task. close() mentioned in FLINK-16383 is now diff --git a/flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/utils/SqlParserHelper.java b/flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/utils/SqlParserHelper.java index bae434a5dbbf83..f68994159b7a5b 100644 --- a/flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/utils/SqlParserHelper.java +++ b/flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/cli/utils/SqlParserHelper.java @@ -25,7 +25,7 @@ /** A utility class that provides pre-prepared tables and sql parser. */ public class SqlParserHelper { - // return the sql parser instance hold by this table evn. + // return the sql parser instance hold by this table env. private final TableEnvironment tableEnv; public SqlParserHelper() { diff --git a/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationManager.java b/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationManager.java index df0757a494757a..95959b850f24ff 100644 --- a/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationManager.java +++ b/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationManager.java @@ -107,9 +107,9 @@ public OperationHandle submitOperation(Callable executor) { } /** - * Submit the operation to the {@link OperationManager}. The {@link OperationManager} manges the - * lifecycle of the {@link Operation}, including register resources, fire the execution and so - * on. + * Submit the operation to the {@link OperationManager}. The {@link OperationManager} manages + * the lifecycle of the {@link Operation}, including register resources, fire the execution and + * so on. * * @param fetcherSupplier offer the fetcher to get the results. * @return OperationHandle to fetch the results or check the status. diff --git a/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/session/SessionManager.java b/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/session/SessionManager.java index c37caeb7db2d15..b875ba3e988be6 100644 --- a/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/session/SessionManager.java +++ b/flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/session/SessionManager.java @@ -23,7 +23,7 @@ import org.apache.flink.table.gateway.api.utils.SqlGatewayException; import org.apache.flink.table.gateway.service.context.DefaultContext; -/** Mange the lifecycle of the {@link Session}. */ +/** Manage the lifecycle of the {@link Session}. */ public interface SessionManager { /** Create the {@link SessionManager} with the default configuration. */ diff --git a/flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl b/flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl index 2b8250ea98ed9e..89418b9c0a2b67 100644 --- a/flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl +++ b/flink-table/flink-sql-parser/src/main/codegen/includes/parserImpls.ftl @@ -2669,7 +2669,7 @@ SqlTypeNameSpec SqlBitmapTypeName() : /** * Parse a "name1 type1 [ NULL | NOT NULL] [ comment ] * [, name2 type2 [ NULL | NOT NULL] [ comment ] ]* ..." list. -* The comment and NULL syntax doest not belong to standard SQL. +* The comment and NULL syntax does not belong to standard SQL. */ void ExtendedFieldNameTypeCommaList( List fieldNames, diff --git a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowCatalogs.java b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowCatalogs.java index 5241a1621e964c..18c2298479eed8 100644 --- a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowCatalogs.java +++ b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowCatalogs.java @@ -28,7 +28,7 @@ import org.apache.calcite.sql.parser.SqlParserPos; /** - * SHOW Catalogs sql call. The full syntax for show catalogs is as followings: + * SHOW Catalogs sql call. The full syntax for show catalogs is as follows: * *

    {@code
      * SHOW CATALOGS [ [NOT] (LIKE | ILIKE)  ]
    diff --git a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowDatabases.java b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowDatabases.java
    index 781b7d238f8074..c9a794e96cc78a 100644
    --- a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowDatabases.java
    +++ b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowDatabases.java
    @@ -31,7 +31,7 @@
     import org.apache.calcite.sql.parser.SqlParserPos;
     
     /**
    - * SHOW Databases sql call. The full syntax for show databases is as followings:
    + * SHOW Databases sql call. The full syntax for show databases is as follows:
      *
      * 
    {@code
      * SHOW DATABASES [ ( FROM | IN ) catalog_name] [ [NOT] (LIKE | ILIKE)
    diff --git a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowFunctions.java b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowFunctions.java
    index 26d2be55b6fff4..4225702289282e 100644
    --- a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowFunctions.java
    +++ b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowFunctions.java
    @@ -32,7 +32,7 @@
     import java.util.List;
     
     /**
    - * Show Functions sql call. The full syntax for show functions is as followings:
    + * Show Functions sql call. The full syntax for show functions is as follows:
      *
      * 
    {@code
      * SHOW [USER] FUNCTIONS [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] (LIKE | ILIKE)
    diff --git a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowProcedures.java b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowProcedures.java
    index b093089c739445..f370bcf98d3dfa 100644
    --- a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowProcedures.java
    +++ b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowProcedures.java
    @@ -31,7 +31,7 @@
     import javax.annotation.Nullable;
     
     /**
    - * SHOW PROCEDURES sql call. The full syntax for show procedures is as followings:
    + * SHOW PROCEDURES sql call. The full syntax for show procedures is as follows:
      *
      * 
    {@code
      * SHOW PROCEDURES [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] (LIKE | ILIKE)
    diff --git a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowTables.java b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowTables.java
    index be9ab2404224d9..0b051a38eee31a 100644
    --- a/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowTables.java
    +++ b/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dql/SqlShowTables.java
    @@ -29,7 +29,7 @@
     import org.apache.calcite.sql.parser.SqlParserPos;
     
     /**
    - * SHOW TABLES sql call. The full syntax for show functions is as followings:
    + * SHOW TABLES sql call. The full syntax for show functions is as follows:
      *
      * 
    {@code
      * SHOW ( VIEWS | [ MATERIALIZED ]TABLES ) [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] LIKE
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/config/ExecutionConfigOptions.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/config/ExecutionConfigOptions.java
    index 63ca68e220617e..eb234b0a297da8 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/config/ExecutionConfigOptions.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/config/ExecutionConfigOptions.java
    @@ -615,8 +615,8 @@ public class ExecutionConfigOptions {
                         .enumType(AsyncOutputMode.class)
                         .defaultValue(AsyncOutputMode.ORDERED)
                         .withDescription(
    -                            "Output mode for async ML predict, which describes whether or not the the output should attempt to be ordered or not. The supported options are: "
    -                                    + "ALLOW_UNORDERED means the operator emit the result when execution finishes. The planner will attempt use ALLOW_UNORDERED whn it doesn't affect "
    +                            "Output mode for async ML predict, which describes whether or not the output should attempt to be ordered or not. The supported options are: "
    +                                    + "ALLOW_UNORDERED means the operator emits the result when execution finishes. The planner will attempt to use ALLOW_UNORDERED when it doesn't affect "
                                         + "the correctness of the results.\n"
                                         + "ORDERED ensures that the operator emits the result in the same order as the data enters it. This is the default.");
     
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/legacy/sources/tsextractors/ExistingField.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/legacy/sources/tsextractors/ExistingField.java
    index 44bbb7a3d6960e..02422752474a12 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/legacy/sources/tsextractors/ExistingField.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/legacy/sources/tsextractors/ExistingField.java
    @@ -107,7 +107,7 @@ public Expression getExpression(ResolvedFieldReference[] fieldAccesses) {
                             Arrays.asList(fieldReferenceExpr, typeLiteral(outputType)),
                             outputType);
                 default:
    -                throw new RuntimeException("Unsupport type: " + type);
    +                throw new RuntimeException("Unsupported type: " + type);
             }
         }
     
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowCatalogsOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowCatalogsOperation.java
    index c43f9b9ed64af2..355fa553e3471d 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowCatalogsOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowCatalogsOperation.java
    @@ -27,8 +27,7 @@
     import java.util.Collection;
     
     /**
    - * Operation to describe a SHOW CATALOGS statement. The full syntax for SHOW CATALOGS is as
    - * followings:
    + * Operation to describe a SHOW CATALOGS statement. The full syntax for SHOW CATALOGS is as follows:
      *
      * 
    {@code
      * SHOW CATALOGS [ [NOT] (LIKE | ILIKE)  ]
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowColumnsOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowColumnsOperation.java
    index 979a2c00de3e19..e3acde0edda093 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowColumnsOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowColumnsOperation.java
    @@ -46,8 +46,7 @@
     import static org.apache.flink.table.api.internal.TableResultUtils.buildTableResult;
     
     /**
    - * Operation to describe a SHOW COLUMNS statement. The full syntax for SHOW COLUMNS is as
    - * followings:
    + * Operation to describe a SHOW COLUMNS statement. The full syntax for SHOW COLUMNS is as follows:
      *
      * 
    {@code
      * SHOW COLUMNS [ ( FROM | IN ) [catalog_name.]database_name.]table [ [NOT] (LIKE | ILIKE)
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowDatabasesOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowDatabasesOperation.java
    index 55b878abfdfb99..15e37433bb02c5 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowDatabasesOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowDatabasesOperation.java
    @@ -28,7 +28,7 @@
     
     /**
      * Operation to describe a SHOW DATABASES statement. The full syntax for SHOW DATABASES is as
    - * followings:
    + * follows:
      *
      * 
    {@code
      * SHOW DATABASES [ ( FROM | IN ) catalog_name] [ [NOT] (LIKE | ILIKE) <sql_like_pattern> ]
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowFunctionsOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowFunctionsOperation.java
    index 9b0ca33be006b0..6b94cf1be562eb 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowFunctionsOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowFunctionsOperation.java
    @@ -30,7 +30,7 @@
     
     /**
      * Operation to describe a SHOW FUNCTIONS statement. The full syntax for SHOW FUNCTIONS is as
    - * followings:
    + * follows:
      *
      * 
    {@code
      * SHOW [USER] FUNCTIONS [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] (LIKE | ILIKE)
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowMaterializedTablesOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowMaterializedTablesOperation.java
    index d800b9228b8fbb..10052715435895 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowMaterializedTablesOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowMaterializedTablesOperation.java
    @@ -30,7 +30,7 @@
     
     /**
      * Operation to describe a SHOW MATERIALIZED TABLES statement. The full syntax for SHOW MATERIALIZED
    - * TABLES is as followings:
    + * TABLES is as follows:
      *
      * 
    {@code
      * SHOW MATERIALIZED TABLES [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] LIKE
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowModelsOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowModelsOperation.java
    index 9d7a795d66c5a5..a0391cf3ca75c9 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowModelsOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowModelsOperation.java
    @@ -27,7 +27,7 @@
     import java.util.Set;
     
     /**
    - * Operation to describe a SHOW MODELS statement. The full syntax for SHOW MODELS is as followings:
    + * Operation to describe a SHOW MODELS statement. The full syntax for SHOW MODELS is as follows:
      *
      * 
    {@code
      * SHOW MODELS [ ( FROM | IN ) [catalog_name.]database_name ] [[NOT] LIKE
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowProceduresOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowProceduresOperation.java
    index 6a5a50c8cc5675..39977cfbd4540f 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowProceduresOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowProceduresOperation.java
    @@ -31,7 +31,7 @@
     
     /**
      * Operation to describe a SHOW PROCEDURES statement. The full syntax for SHOW PROCEDURES is as
    - * followings:
    + * follows:
      *
      * 
    {@code
      * SHOW PROCEDURES [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] (LIKE | ILIKE)
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowTablesOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowTablesOperation.java
    index e5de166d96c786..a47dd5336d4b9d 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowTablesOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowTablesOperation.java
    @@ -29,7 +29,7 @@
     import java.util.Set;
     
     /**
    - * Operation to describe a SHOW TABLES statement. The full syntax for SHOW TABLES is as followings:
    + * Operation to describe a SHOW TABLES statement. The full syntax for SHOW TABLES is as follows:
      *
      * 
    {@code
      * SHOW TABLES [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] LIKE
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowViewsOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowViewsOperation.java
    index f253be80615719..09bc756dc8ff58 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowViewsOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ShowViewsOperation.java
    @@ -29,7 +29,7 @@
     import java.util.Set;
     
     /**
    - * Operation to describe a SHOW VIEWS statement. The full syntax for SHOW VIEWS is as followings:
    + * Operation to describe a SHOW VIEWS statement. The full syntax for SHOW VIEWS is as follows:
      *
      * 
    {@code
      * SHOW VIEWS [ ( FROM | IN ) [catalog_name.]database_name ] [ [NOT] LIKE
    diff --git a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/StagedSinkModifyOperation.java b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/StagedSinkModifyOperation.java
    index 057b7d9f1d7766..8baa3c919c55af 100644
    --- a/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/StagedSinkModifyOperation.java
    +++ b/flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/StagedSinkModifyOperation.java
    @@ -33,10 +33,10 @@
      * statement.
      *
      * 

    StagedSinkModifyOperation is an extension of SinkModifyOperation in the atomic CTAS/RTAS - * scenario. Whiling checking whether the corresponding sink support atomic CTAS/RTAS or not, we - * will need to get DynamicTableSink firstly and check whether it implements {@link SupportsStaging} - * and then call the method {@link SupportsStaging#applyStaging}. We maintain the DynamicTableSink - * in this operation so that we can reuse this DynamicTableSink instead of creating a new + * scenario. While checking whether the corresponding sink support atomic CTAS/RTAS or not, we will + * need to get DynamicTableSink firstly and check whether it implements {@link SupportsStaging} and + * then call the method {@link SupportsStaging#applyStaging}. We maintain the DynamicTableSink in + * this operation so that we can reuse this DynamicTableSink instead of creating a new * DynamicTableSink during translating the operation again which is error-prone. */ @Internal diff --git a/flink-table/flink-table-api-scala/src/main/scala/org/apache/flink/table/api/typeutils/Types.scala b/flink-table/flink-table-api-scala/src/main/scala/org/apache/flink/table/api/typeutils/Types.scala index 40bc3124a17b95..dc07a06530cebf 100644 --- a/flink-table/flink-table-api-scala/src/main/scala/org/apache/flink/table/api/typeutils/Types.scala +++ b/flink-table/flink-table-api-scala/src/main/scala/org/apache/flink/table/api/typeutils/Types.scala @@ -278,7 +278,7 @@ object Types { * * A Scala case class is a fixed-length composite type for storing multiple values in a * deterministic field order. Fields of a case class are typed. Case classes and tuples are the - * most efficient composite type; therefore, they do not not support null-valued fields unless the + * most efficient composite type; therefore, they do not support null-valued fields unless the * type of the field supports nullability. * * Example use: `Types.CASE_CLASS[MyCaseClass]` @@ -300,7 +300,7 @@ object Types { * * A Scala tuple is a fixed-length composite type for storing multiple values in a deterministic * field order. Fields of a tuple are typed. Tuples are the most efficient composite type; - * therefore, they do not not support null-valued fields unless the type of the field supports + * therefore, they do not support null-valued fields unless the type of the field supports * nullability. * * Example use: `Types.TUPLE[(String, Int)]` diff --git a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java index 197da3ca43cf24..244a2f60af4e87 100644 --- a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java +++ b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java @@ -483,7 +483,7 @@ public static boolean supportsAvoidingCast( } /** - * Returns whether the source type can be safely casted to the target type without loosing + * Returns whether the source type can be safely casted to the target type without losing * information. * *

    Implicit casts are used for type widening and type generalization (finding a common diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSourceUtils.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSourceUtils.java index 7215d252c52df1..1447202d760afe 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSourceUtils.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSourceUtils.java @@ -626,7 +626,7 @@ private static void prepareRowLevelModificationScan(DynamicTableSource dynamicTa // get the previous scan context RowLevelModificationScanContext scanContext = RowLevelModificationContextUtils.getScanContext(); - // pass the previous scan context to current table soruce and + // pass the previous scan context to current table source and // get a new scan context RowLevelModificationScanContext newScanContext = modificationScan.applyRowLevelModificationScan( diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/utils/SqlValidatorUtils.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/utils/SqlValidatorUtils.java index 8fd5d8fee056c2..45597e51c5886a 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/utils/SqlValidatorUtils.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/utils/SqlValidatorUtils.java @@ -221,7 +221,7 @@ public static Either reduceLiteralToString( new ValidationException( String.format( "Unsupported expression %s is in runtime config at position %s. Currently, " - + "runtime config should be be a MAP of string literals.", + + "runtime config should be a MAP of string literals.", operand, operand.getParserPosition()))); } } else { @@ -229,7 +229,7 @@ public static Either reduceLiteralToString( new ValidationException( String.format( "Unsupported expression %s is in runtime config at position %s. Currently, " - + "runtime config should be be a MAP of string literals.", + + "runtime config should be a MAP of string literals.", operand, operand.getParserPosition()))); } } diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlAlterTableRenameConverter.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlAlterTableRenameConverter.java index 86e233ed62dd67..cda71ad1d8c1ce 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlAlterTableRenameConverter.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlAlterTableRenameConverter.java @@ -27,7 +27,7 @@ /** * Convert ALTER TABLE [IF EXISTS] [[catalogName.] dataBasesName].tableName RENAME TO - * [[catalogName.] dataBasesName].newTableName statemen. + * [[catalogName.] dataBasesName].newTableName statement. */ public class SqlAlterTableRenameConverter extends AbstractAlterTableConverter { @Override diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/logical/WindowAttachedWindowingStrategy.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/logical/WindowAttachedWindowingStrategy.java index e3c5628ef97804..2f741415e9936f 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/logical/WindowAttachedWindowingStrategy.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/logical/WindowAttachedWindowingStrategy.java @@ -54,7 +54,7 @@ public WindowAttachedWindowingStrategy( } /** - * Creates a {@link WindowAttachedWindowingStrategy} which only {@link #windowEnd} is attatched. + * Creates a {@link WindowAttachedWindowingStrategy} which only {@link #windowEnd} is attached. */ public WindowAttachedWindowingStrategy( WindowSpec window, LogicalType timeAttributeType, int windowEnd) { diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/IntervalJoinSpec.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/IntervalJoinSpec.java index 975a9a396b4ac4..dd43b92d3196c9 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/IntervalJoinSpec.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/IntervalJoinSpec.java @@ -29,8 +29,8 @@ * IntervalJoinSpec describes how two tables will be joined in interval join. * *

    This class corresponds to {@link org.apache.calcite.rel.core.Join} rel node. The join - * condition is splitted into two parts: WindowBounds and JoinSpec: 1. WindowBounds contains the - * time range condition. 2. JoinSpec contains rest of the join condition except windowBounds. + * condition is split into two parts: WindowBounds and JoinSpec: 1. WindowBounds contains the time + * range condition. 2. JoinSpec contains rest of the join condition except windowBounds. */ @JsonIgnoreProperties(ignoreUnknown = true) public class IntervalJoinSpec { diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/SortSpec.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/SortSpec.java index 5abb84fa4f5330..80d284e1794778 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/SortSpec.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/spec/SortSpec.java @@ -102,7 +102,7 @@ public int getFieldSize() { return fieldSpecs.length; } - /** Gets fields types of sort fields accoording to input type. */ + /** Gets fields types of sort fields according to input type. */ public LogicalType[] getFieldTypes(RowType input) { return Stream.of(fieldSpecs) .map(field -> input.getTypeAt(field.fieldIndex)) diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecTemporalJoin.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecTemporalJoin.java index eb6f68a2170903..dae6639349aabd 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecTemporalJoin.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecTemporalJoin.java @@ -283,7 +283,7 @@ private TwoInputStreamOperator createJoinOperator( maxRetentionTime, isLeftOuterJoin); } else { - // The exsiting TemporalProcessTimeJoinOperator has already supported temporal table + // The existing TemporalProcessTimeJoinOperator has already supported temporal table // join. // However, the semantic of this implementation is problematic, because the join // processing diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java index dd967337d5b22b..9bdd462f61f4d5 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java @@ -401,7 +401,7 @@ private static Optional findSuitableBuildSide( * @param filterHasBenefit Whether it has benefit to inject the filter at the current position. * We believe that only if the filter goes through an Exchange, Join or Agg is beneficial, * otherwise there is no benefit. We should inject the filter only if it has benefit. - * @return the new probe side wit runtime filter + * @return the new probe side with runtime filter */ private static RelNode tryPushDownProbeAndInjectRuntimeFilter( RelNode rel, diff --git a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/FlinkMarkChangelogNormalizeProgram.java b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/FlinkMarkChangelogNormalizeProgram.java index 482142706d44a4..ca47362fd8db03 100644 --- a/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/FlinkMarkChangelogNormalizeProgram.java +++ b/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/FlinkMarkChangelogNormalizeProgram.java @@ -120,8 +120,8 @@ * +- Reused(reference_id=[1])} *

    * - *

    After applying {@link PushCalcPastChangelogNormalizeRule} the condition should be splitted - * into common and not common parts. Common part should be pushed down as below. + *

    After applying {@link PushCalcPastChangelogNormalizeRule} the condition should be split into + * common and not common parts. Common part should be pushed down as below. * *

    {@code Union(all=[true], union=[f0, f1])
      * :- Calc(select=[f0, f1], where=[(f1 < 10)])
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/CorrelateCodeGenerator.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/CorrelateCodeGenerator.scala
    index 4578bf6f69203b..13271e232c6204 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/CorrelateCodeGenerator.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/CorrelateCodeGenerator.scala
    @@ -65,7 +65,7 @@ object CorrelateCodeGenerator {
                 s"Currently, only table functions can be used in a correlate operation.")
         }
     
    -    // adjust indicies of InputRefs to adhere to schema expected by generator
    +    // adjust indices of InputRefs to adhere to schema expected by generator
         val changeInputRefIndexShuttle = new RexShuttle {
           override def visitInputRef(inputRef: RexInputRef): RexNode = {
             new RexInputRef(inputType.getFieldCount + inputRef.getIndex, inputRef.getType)
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExpressionReducer.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExpressionReducer.scala
    index 7c75f7d7dc9e17..036e34b464c51a 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExpressionReducer.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExpressionReducer.scala
    @@ -283,7 +283,7 @@ class ExpressionReducer(
                 val ops = call.getOperands
                 val divisor = ops.get(ops.size() - 1)
     
    -            // according to BuiltInFunctionDefinitions, the DEVIDE's second op must be numeric
    +            // according to BuiltInFunctionDefinitions, the DIVIDE's second op must be numeric
                 assert(RexUtil.isDeterministic(divisor))
                 // The divisor may itself be an unreduced constant expression, e.g. 1 / (2 + 3),
                 // in which case it is evaluated together with the division below.
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/MatchCodeGenerator.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/MatchCodeGenerator.scala
    index 74c32fe2afaa68..01934df4a40e62 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/MatchCodeGenerator.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/MatchCodeGenerator.scala
    @@ -73,7 +73,7 @@ import java.util
      *        generated code will look similar to this:
      *
      * @param ctx
    - *   the cotext of the code generator
    + *   the context of the code generator
      * @param nullableInput
      *   input(s) can be null.
      * @param patternNames
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/AggsHandlerCodeGenerator.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/AggsHandlerCodeGenerator.scala
    index deec91f894a0b8..1df2fbfae4fde4 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/AggsHandlerCodeGenerator.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/AggsHandlerCodeGenerator.scala
    @@ -74,7 +74,7 @@ class AggsHandlerCodeGenerator(
       private var windowAssignerTerm: String = _
       private var shiftTimeZone: ZoneId = _
     
    -  /** Aggregates informations */
    +  /** Aggregates information */
       private var accTypeInfo: RowType = _
       private var aggBufferSize: Int = _
     
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/batch/WindowCodeGenerator.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/batch/WindowCodeGenerator.scala
    index 66ea53c2b1e7bd..3bc12dd6a0fbe3 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/batch/WindowCodeGenerator.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/batch/WindowCodeGenerator.scala
    @@ -432,7 +432,7 @@ abstract class WindowCodeGenerator(
         // output or merge pre accumulate results by window
         val (initAggBufferCode, doAggregateCode, mergeOrOutput, mergeOrOutputLastPane) =
           if (isFinal && enableAssignPane) {
    -        // case: global/complete window agg: Sliding window with with pane optimization
    +        // case: global/complete window agg: Sliding window with pane optimization
             val offset = if (isMerge) grouping.length + 1 else grouping.length
             val argsMapping = buildAggregateArgsMapping(
               isMerge,
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/sort/SortCodeGenerator.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/sort/SortCodeGenerator.scala
    index c624e6c1d80dd6..f97c6796bf1ca8 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/sort/SortCodeGenerator.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/sort/SortCodeGenerator.scala
    @@ -290,7 +290,7 @@ class SortCodeGenerator(
     
       /**
        * Because we put normalizedKeys in big endian way, if we are the little endian, we need to
    -   * reverse these data with chunks for comparation.
    +   * reverse these data with chunks for comparison.
        */
       def generateReverseNormalizedKeys(chunks: Array[Int]): mutable.ArrayBuffer[String] = {
         /* Example generated code, for int:
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/nodes/logical/FlinkLogicalSnapshot.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/nodes/logical/FlinkLogicalSnapshot.scala
    index ba8166049d21c9..2c52a4702497b1 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/nodes/logical/FlinkLogicalSnapshot.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/nodes/logical/FlinkLogicalSnapshot.scala
    @@ -61,7 +61,7 @@ class FlinkLogicalSnapshot(
         val dataType = period.getType
         if (period.getType.getSqlTypeName.getFamily != SqlTypeFamily.TIMESTAMP) {
           litmus.fail("The system time period specification expects" +
    -        " TIMESTAMP or TIMESTAMP WITH LOCAL TIME ZONE ype but is '" + dataType.getSqlTypeName + "'")
    +        " TIMESTAMP or TIMESTAMP WITH LOCAL TIME ZONE type but is '" + dataType.getSqlTypeName + "'")
         }
         litmus.succeed()
       }
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/RankUtil.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/RankUtil.scala
    index 27359fbb2c696d..52b30fb2d6fe95 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/RankUtil.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/RankUtil.scala
    @@ -56,7 +56,7 @@ object RankUtil {
     
       private[this] object Lower extends BoundDefine // defined lower bound
       private[this] object Upper extends BoundDefine // defined upper bound
    -  private[this] object Both extends BoundDefine // defined lower and uppper bound
    +  private[this] object Both extends BoundDefine // defined lower and upper bound
     
       /**
        * Extracts the TopN offset and fetch bounds from a predicate.
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/WindowJoinUtil.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/WindowJoinUtil.scala
    index 1093d8c3857756..f8b6a9c127b27a 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/WindowJoinUtil.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/WindowJoinUtil.scala
    @@ -91,7 +91,7 @@ object WindowJoinUtil extends Logging {
           excludeWindowStartEqualityAndEndEqualityFromJoinInfoPairs(join)
         if (analyzeResult.isEmpty) {
           throw new IllegalArgumentException(
    -        "Pleas give a Join which could be translated to window join!")
    +        "Please give a Join which could be translated to window join!")
         }
         val (
           windowStartEqualityLeftKeys,
    diff --git a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/sinks/TableSinkUtils.scala b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/sinks/TableSinkUtils.scala
    index fa295ee7ec0e70..65d57cc0c04ac8 100644
    --- a/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/sinks/TableSinkUtils.scala
    +++ b/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/sinks/TableSinkUtils.scala
    @@ -52,7 +52,7 @@ object TableSinkUtils {
        * @param sinkOperation
        *   The sink operation with the query that is supposed to be written.
        * @param sinkIdentifier
    -   *   Tha path of the sink. It is needed just for logging. It does not participate in the
    +   *   The path of the sink. It is needed just for logging. It does not participate in the
        *   validation.
        * @param sink
        *   The sink that we want to write to.
    diff --git a/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/operations/SqlNodeToCallOperationTest.java b/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/operations/SqlNodeToCallOperationTest.java
    index c47d2431080835..fe9b8952778d6d 100644
    --- a/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/operations/SqlNodeToCallOperationTest.java
    +++ b/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/operations/SqlNodeToCallOperationTest.java
    @@ -109,7 +109,7 @@ void testCallStatement() {
                             + " inputTypes: [INT NOT NULL, INT NOT NULL, INT NOT NULL], outputTypes: [STRING], arguments: [1, 2, 3])");
     
             // test call the procedure with row as result and decimal as argument as well as
    -        // explict/implicit cast
    +        // explicit/implicit cast
             sql = "call `system`.row_result(cast(1.2 as decimal))";
             verifyCallOperation(
                     sql,
    diff --git a/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/common/TableSourceScanTestPrograms.java b/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/common/TableSourceScanTestPrograms.java
    index 5ff4e1df74e8ae..117f7c792e5026 100644
    --- a/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/common/TableSourceScanTestPrograms.java
    +++ b/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/common/TableSourceScanTestPrograms.java
    @@ -279,7 +279,7 @@ public class TableSourceScanTestPrograms {
         public static final TableTestProgram REUSE_SOURCE =
                 TableTestProgram.of(
                                 "table-source-scan-reuse-source",
    -                            "validates table source scan by verifying if source is resused")
    +                            "validates table source scan by verifying if source is reused")
                         .setupTableSource(
                                 SourceTestStep.newBuilder("source_t")
                                         .addSchema("a INT", "b BIGINT", "c VARCHAR", "d TIMESTAMP(3)")
    diff --git a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/TemporalTypesTest.scala b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/TemporalTypesTest.scala
    index 4c23ce89c812a1..0f926827d3351a 100644
    --- a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/TemporalTypesTest.scala
    +++ b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/expressions/TemporalTypesTest.scala
    @@ -631,7 +631,7 @@ class TemporalTypesTest extends ExpressionTestBase {
         // testSqlApi("TO_DATE(1521331200)", "2018-03-18")
         testSqlApi("EXTRACT(HOUR FROM TIME '06:07:08')", "6")
         testSqlApi("EXTRACT(MINUTE FROM TIME '06:07:08')", "7")
    -    // testSqlApi("EXTRACT(HOUR FROM TO_TIME('06:07:08'))", "6")  NO TO_TIME funciton
    +    // testSqlApi("EXTRACT(HOUR FROM TO_TIME('06:07:08'))", "6")  NO TO_TIME function
         testSqlApi("EXTRACT(HOUR FROM CAST('06:07:08' AS TIME))", "6")
         testSqlApi("EXTRACT(DAY FROM CAST('2018-03-18' AS DATE))", "18")
         testSqlApi("EXTRACT(DAY FROM DATE '2018-03-18')", "18")
    diff --git a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/common/JoinReorderTestBase.scala b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/common/JoinReorderTestBase.scala
    index 788db6f3ae98ce..cf6d299b2c7a2d 100644
    --- a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/common/JoinReorderTestBase.scala
    +++ b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/common/JoinReorderTestBase.scala
    @@ -33,7 +33,7 @@ import java.util
     import scala.collection.JavaConversions._
     
     /**
    - * Ths base plan test for join reorder. This class will test
    + * The base plan test for join reorder. This class will test
      * [[org.apache.flink.table.planner.plan.rules.logical.FlinkBushyJoinReorderRule]] and
      * [[org.apache.calcite.rel.rules.LoptOptimizeJoinRule]] together by changing the factor
      * isBushyJoinReorder.
    diff --git a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/metadata/FlinkRelMdHandlerTestBase.scala b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/metadata/FlinkRelMdHandlerTestBase.scala
    index 0837f65b3e2263..b5ef8260b59740 100644
    --- a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/metadata/FlinkRelMdHandlerTestBase.scala
    +++ b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/metadata/FlinkRelMdHandlerTestBase.scala
    @@ -861,7 +861,7 @@ class FlinkRelMdHandlerTestBase {
       //  select a, b, c, rowtime
       //  ROW_NUMBER() over (partition by b, c order by rowtime desc) rn from TemporalTable3
       // ) t where rn <= 1
    -  // canbe merged into rank
    +  // can be merged into rank
       protected lazy val (streamRowTimeDeduplicateFirstRow, streamRowTimeDeduplicateLastRow) = {
         buildFirstRowAndLastRowDeduplicateNode(true)
       }
    diff --git a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/rules/physical/stream/WatermarkAssignerChangelogNormalizeTransposeRuleTest.scala b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/rules/physical/stream/WatermarkAssignerChangelogNormalizeTransposeRuleTest.scala
    index 9d37d60bcd5f03..efc4b1c9b0bd9f 100644
    --- a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/rules/physical/stream/WatermarkAssignerChangelogNormalizeTransposeRuleTest.scala
    +++ b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/plan/rules/physical/stream/WatermarkAssignerChangelogNormalizeTransposeRuleTest.scala
    @@ -78,7 +78,7 @@ class WatermarkAssignerChangelogNormalizeTransposeRuleTest extends TableTestBase
       }
     
       // ----------------------------------------------------------------------------------------
    -  // Tests for queries matches WITHOUT_CALC patten
    +  // Tests for queries matches WITHOUT_CALC pattern
       // Rewrite always happens in the case
       // ----------------------------------------------------------------------------------------
       @Test
    @@ -97,7 +97,7 @@ class WatermarkAssignerChangelogNormalizeTransposeRuleTest extends TableTestBase
       }
     
       // ----------------------------------------------------------------------------------------
    -  // Tests for queries matches WITH_CALC patten
    +  // Tests for queries matches WITH_CALC pattern
       // ----------------------------------------------------------------------------------------
     
       /** push down calc and watermark assigner as a whole if shuffle keys are kept after Calc. */
    diff --git a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/agg/AggregateITCaseBase.scala b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/agg/AggregateITCaseBase.scala
    index ab00918505069c..7d1504343c7771 100644
    --- a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/agg/AggregateITCaseBase.scala
    +++ b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/batch/sql/agg/AggregateITCaseBase.scala
    @@ -115,7 +115,7 @@ abstract class AggregateITCaseBase(testName: String) extends BatchTestBase {
           expectedTypedData5
         )
     
    -    // for hash agg mode it wont fallback
    +    // for hash agg mode it won't fallback
         val singleGrouplargeData5 = for (i <- 0 until 100000) yield row(999, 1L, 10, "Hallo", 1L)
         registerCollection("SingleGroupLargeTable5", singleGrouplargeData5, type5, "d, e, f, g, h")
         checkResult(
    diff --git a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/AggregateITCase.scala b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/AggregateITCase.scala
    index dd449ff6f93343..627b66c0aeb200 100644
    --- a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/AggregateITCase.scala
    +++ b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/sql/AggregateITCase.scala
    @@ -503,7 +503,7 @@ class AggregateITCase(
         env.execute()
     
         // Use the result precision/scale calculated for sum and don't override with the one calculated
    -    // for plus(), which results in loosing a decimal digit.
    +    // for plus(), which results in losing a decimal digit.
         expected = List("2.22222222")
         assertThat(sink.getRetractResults).isEqualTo(expected)
       }
    @@ -583,7 +583,7 @@ class AggregateITCase(
         env.execute()
     
         // Use the result precision/scale calculated for sum and don't override with the one calculated
    -    // for plus()/minus(), which results in loosing a decimal digit.
    +    // for plus()/minus(), which results in losing a decimal digit.
         val expected = List("6.41671935,65947.23071935707000000000,609.02867403703699700000")
         assertThat(sink.getRetractResults.sorted).isEqualTo(expected)
       }
    @@ -599,7 +599,7 @@ class AggregateITCase(
         env.execute()
     
         // Use the result precision/scale calculated for AvgAggFunction's SumType and don't override
    -    // with the one calculated for plus()/minus(), which results in loosing a decimal digit.
    +    // with the one calculated for plus()/minus(), which results in losing a decimal digit.
         var expected = List("1.03520274,12345.03520274865400000000,12.3456789012345670000000")
         assertThat(sink.getRetractResults).isEqualTo(expected)
     
    @@ -617,7 +617,7 @@ class AggregateITCase(
         env.execute()
     
         // Use the result precision/scale calculated for AvgAggFunction's SumType and don't override
    -    // with the one calculated for plus()/minus(), which result in loosing a decimal digit.
    +    // with the one calculated for plus()/minus(), which result in losing a decimal digit.
         expected = List("2.77777778")
         assertThat(sink.getRetractResults).isEqualTo(expected)
       }
    diff --git a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/table/AggregateITCase.scala b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/table/AggregateITCase.scala
    index bf3595249eb98f..3a2ce31db24853 100644
    --- a/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/table/AggregateITCase.scala
    +++ b/flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/planner/runtime/stream/table/AggregateITCase.scala
    @@ -519,7 +519,7 @@ class AggregateITCase(mode: StateBackendMode) extends StreamingWithStateTestBase
         env.execute()
     
         // Use the result precision/scale calculated for sum and don't override with the one calculated
    -    // for plus(), which result in loosing a decimal digit.
    +    // for plus(), which result in losing a decimal digit.
         val expected = List("1.03520274,12345.03520274865300000000,12.34567890123456700000,2.22222222")
         assertThat(sink.getRetractResults).isEqualTo(expected)
       }
    @@ -544,7 +544,7 @@ class AggregateITCase(mode: StateBackendMode) extends StreamingWithStateTestBase
         env.execute()
     
         // Use the result precision/scale calculated for sum and don't override with the one calculated
    -    // for plus()/minus(), which result in loosing a decimal digit.
    +    // for plus()/minus(), which result in losing a decimal digit.
         val expected = List("1.03520274,12345.03520274865300000000,12.34567890123456700000,2.22222222")
         assertThat(sink.getRetractResults).isEqualTo(expected)
       }
    @@ -569,7 +569,7 @@ class AggregateITCase(mode: StateBackendMode) extends StreamingWithStateTestBase
         env.execute()
     
         // Use the result precision/scale calculated for AvgAggFunction's SumType and don't override
    -    // with the one calculated for plus()/minus(), which result in loosing a decimal digit.
    +    // with the one calculated for plus()/minus(), which result in losing a decimal digit.
         val expected = List("0.51760137,6172.51760137432650000000,6.17283945061728350000,1.66666667")
         assertThat(sink.getRetractResults).isEqualTo(expected)
       }
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/dataview/PerWindowStateDataViewStore.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/dataview/PerWindowStateDataViewStore.java
    index 9b88b295108404..4fecd760a60576 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/dataview/PerWindowStateDataViewStore.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/dataview/PerWindowStateDataViewStore.java
    @@ -69,7 +69,7 @@ public  StateMapView getStateMapView(
     
             final MapState mapState =
                     keyedStateBackend.getOrCreateKeyedState(windowSerializer, mapStateDescriptor);
    -        // explict cast to internal state
    +        // explicit cast to internal state
             final InternalMapState internalMapState =
                     (InternalMapState) mapState;
     
    @@ -78,7 +78,7 @@ public  StateMapView getStateMapView(
                         new ValueStateDescriptor<>(stateName + NULL_STATE_POSTFIX, valueSerializer);
                 final ValueState nullState =
                         keyedStateBackend.getOrCreateKeyedState(windowSerializer, nullStateDescriptor);
    -            // explict cast to internal state
    +            // explicit cast to internal state
                 final InternalValueState internalNullState =
                         (InternalValueState) nullState;
                 return new StateMapView.NamespacedStateMapViewWithKeysNullable<>(
    @@ -96,7 +96,7 @@ public  StateListView getStateListView(
     
             final ListState listState =
                     keyedStateBackend.getOrCreateKeyedState(windowSerializer, listStateDescriptor);
    -        // explict cast to internal state
    +        // explicit cast to internal state
             final InternalListState internalListState =
                     (InternalListState) listState;
     
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonUnquoteFunction.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonUnquoteFunction.java
    index 9e038e37b901c7..ffaf068418bc00 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonUnquoteFunction.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonUnquoteFunction.java
    @@ -118,7 +118,7 @@ private String unescapeStr(String inputStr) {
         private String unescapeValidJson(String inputStr) {
             // check for a quoted json string val and unescape
             if (inputStr.charAt(0) == '"' && inputStr.charAt(inputStr.length() - 1) == '"') {
    -            // remove quotes, string len is atleast 2 here
    +            // remove quotes, string len is at least 2 here
                 return unescapeStr(inputStr.substring(1, inputStr.length() - 1));
             } else {
                 // string representing Json - array, object or unquoted scalar val, return as-is
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/TableKeyedAsyncWaitOperator.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/TableKeyedAsyncWaitOperator.java
    index 9c514b868e5266..d4f055b5996223 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/TableKeyedAsyncWaitOperator.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/TableKeyedAsyncWaitOperator.java
    @@ -302,7 +302,7 @@ private class KeyedResultHandler implements ResultFuture {
             protected final ResultFuture resultFuture;
     
             /**
    -         * A guard against ill-written AsyncFunction. Additional (parallel) invokations of {@link
    +         * A guard against ill-written AsyncFunction. Additional (parallel) invocations of {@link
              * #complete(Collection)} or {@link #completeExceptionally(Throwable)} will be ignored. This
              * guard also helps for cases where proper results and timeouts happen at the same time.
              */
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/StreamingDeltaJoinOperator.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/StreamingDeltaJoinOperator.java
    index a1475062f8763e..c861d22c4af91d 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/StreamingDeltaJoinOperator.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/StreamingDeltaJoinOperator.java
    @@ -546,7 +546,7 @@ private static boolean isLeft(int inputIndex) {
         private class ReusableKeyedResultHandler implements ResultFuture {
     
             /**
    -         * A guard against ill-written AsyncFunction. Additional (parallel) invokations of {@link
    +         * A guard against ill-written AsyncFunction. Additional (parallel) invocations of {@link
              * #complete(Collection)} or {@link #completeExceptionally(Throwable)} will be ignored. This
              * guard also helps for cases where proper results and timeouts happen at the same time.
              */
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/temporal/TemporalRowTimeJoinOperator.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/temporal/TemporalRowTimeJoinOperator.java
    index 71ed75b5970dff..cf3242dda5c852 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/temporal/TemporalRowTimeJoinOperator.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/temporal/TemporalRowTimeJoinOperator.java
    @@ -360,7 +360,7 @@ private int indexOfFirstElementNewerThanTimer(long timerTimestamp, List
          * correlated.
          *
          * @return found element or {@code Optional.empty} If such row was not found (either {@code
    -     *     rightRowsSorted} is empty or all {@code rightRowsSorted} are are newer).
    +     *     rightRowsSorted} is empty or all {@code rightRowsSorted} are newer).
          */
         private Optional latestRightRowToJoin(List rightRowsSorted, long leftTime) {
             return latestRightRowToJoin(rightRowsSorted, 0, rightRowsSorted.size() - 1, leftTime);
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/multipleinput/input/InputSelectionSpec.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/multipleinput/input/InputSelectionSpec.java
    index 2b3707e53335b2..60f7e6572e2709 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/multipleinput/input/InputSelectionSpec.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/multipleinput/input/InputSelectionSpec.java
    @@ -35,7 +35,7 @@ public class InputSelectionSpec implements Serializable {
          */
         private final int multipleInputId;
     
    -    /** The read order for current input in multple operator. */
    +    /** The read order for current input in multiple operator. */
         private final int readOrder;
     
         public InputSelectionSpec(int multipleInputId, int readOrder) {
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java
    index 7a9d1156ba5eb4..d21ebfc43e819a 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java
    @@ -242,7 +242,7 @@ public void onTimer(
                 lastAccumulator = function.getAccumulators();
                 accState.update(lastAccumulator);
     
    -            // if are are rows with timestamp > watermark, register a timer for the next watermark
    +            // if there are rows with timestamp > watermark, register a timer for the next watermark
                 if (existEarlyRecord) {
                     ctx.timerService().registerEventTimeTimer(curWatermark + 1);
                 }
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/process/ProcessSetTableOperator.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/process/ProcessSetTableOperator.java
    index 7b02d063e3028a..0bca072c394d56 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/process/ProcessSetTableOperator.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/process/ProcessSetTableOperator.java
    @@ -135,7 +135,7 @@ public void processWatermark(Watermark mark) throws Exception {
                                             inputSortBuffers[inputIdx].updateWatermark(
                                                     mark.getTimestamp());
                                         }
    -                                    // Handle watermarks per-input but in an interruptable way.
    +                                    // Handle watermarks per-input but in an interruptible way.
                                         // Advances the combined watermark eventually.
                                         inputWatermarkProcessors[inputIdx].emitWatermarkInsideMailbox(
                                                 mark);
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/WatermarkCompactingSinkMaterializer.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/WatermarkCompactingSinkMaterializer.java
    index 6e6e1c0e51cced..c93640c854a16d 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/WatermarkCompactingSinkMaterializer.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/WatermarkCompactingSinkMaterializer.java
    @@ -184,7 +184,7 @@ public void initializeState(StateInitializationContext context) throws Exception
                                 .setTimeToLive(ttlConfig.getTimeToLive().plus(Duration.ofSeconds(5)))
                                 .build());
                 currentValueDescriptor.enableTimeToLive(ttlConfig);
    -            // slighly higher than the buffer ttl, to make this be cleared last, after all other
    +            // slightly higher than the buffer ttl, to make this be cleared last, after all other
                 // state is cleared
                 consolidatedCheckpointIdDescriptor.enableTimeToLive(
                         StateTtlConfig.newBuilder(ttlConfig)
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/internal/InternalWindowProcessFunction.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/internal/InternalWindowProcessFunction.java
    index 3a3a4574429dff..8c1a5e7ab1f533 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/internal/InternalWindowProcessFunction.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/internal/InternalWindowProcessFunction.java
    @@ -124,7 +124,7 @@ protected boolean isWindowLate(W window) {
     
         /**
          * Returns the cleanup time for a window, which is {@code window.maxTimestamp +
    -     * allowedLateness}. In case this leads to a value greated than {@link Long#MAX_VALUE} then a
    +     * allowedLateness}. In case this leads to a value greater than {@link Long#MAX_VALUE} then a
          * cleanup time of {@link Long#MAX_VALUE} is returned.
          *
          * @param window the window whose cleanup time we are computing.
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java
    index a794e65632416d..dad5bf92f96f5b 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java
    @@ -440,7 +440,7 @@ private void registerCleanupTimer(W window) {
     
         /**
          * Returns the cleanup time for a window, which is {@code window.maxTimestamp +
    -     * allowedLateness}. In case this leads to a value greated than {@link Long#MAX_VALUE} then a
    +     * allowedLateness}. In case this leads to a value greater than {@link Long#MAX_VALUE} then a
          * cleanup time of {@link Long#MAX_VALUE} is returned.
          *
          * @param window the window whose cleanup time we are computing.
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/UnalignedWindowTableFunctionOperator.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/UnalignedWindowTableFunctionOperator.java
    index fdaca5557718c9..bb8827f0a034c1 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/UnalignedWindowTableFunctionOperator.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/UnalignedWindowTableFunctionOperator.java
    @@ -303,7 +303,7 @@ public void onProcessingTime(InternalTimer timer) throws Ex
         }
     
         /**
    -     * In case this leads to a value greated than {@link Long#MAX_VALUE} then a cleanup time of
    +     * In case this leads to a value greater than {@link Long#MAX_VALUE} then a cleanup time of
          * {@link Long#MAX_VALUE} is returned.
          */
         private long getCleanupTime(TimeWindow window) {
    diff --git a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/OptimizableHashSet.java b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/OptimizableHashSet.java
    index aab7e857cdd4e9..66da08a7169919 100644
    --- a/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/OptimizableHashSet.java
    +++ b/flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/OptimizableHashSet.java
    @@ -20,8 +20,8 @@
     import static org.apache.flink.util.Preconditions.checkArgument;
     
     /**
    - * A type-specific hash set with with a fast, small-footprint implementation. Refer to the
    - * implementation of fastutil.
    + * A type-specific hash set with a fast, small-footprint implementation. Refer to the implementation
    + * of fastutil.
      *
      * 

    Instances of this class use a hash table to represent a set. The table is enlarged as needed * by doubling its size when new entries are created. diff --git a/flink-table/flink-table-runtime/src/test/java/org/apache/flink/table/runtime/operators/join/stream/StreamingMiniBatchJoinOperatorTest.java b/flink-table/flink-table-runtime/src/test/java/org/apache/flink/table/runtime/operators/join/stream/StreamingMiniBatchJoinOperatorTest.java index d2f38446958655..b0c0694549cb2a 100644 --- a/flink-table/flink-table-runtime/src/test/java/org/apache/flink/table/runtime/operators/join/stream/StreamingMiniBatchJoinOperatorTest.java +++ b/flink-table/flink-table-runtime/src/test/java/org/apache/flink/table/runtime/operators/join/stream/StreamingMiniBatchJoinOperatorTest.java @@ -299,7 +299,7 @@ void testFullJoinWithRightArriveFirstWithNoMiniBatch() throws Exception { void testInnerJoinJoinKeyContainsUniqueKeyWithoutFold() throws Exception { // joinKey is LineOrd testHarness.setStateTtlProcessingTime(1); - // basic test for that the mini-batch process could be triggerred normally + // basic test for that the mini-batch process could be triggered normally testHarness.processElement1( insertRecord( "Ord#1", diff --git a/flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/data/conversion/StructuredObjectConverter.java b/flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/data/conversion/StructuredObjectConverter.java index b440df029203df..dd2a12a6e371f2 100644 --- a/flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/data/conversion/StructuredObjectConverter.java +++ b/flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/data/conversion/StructuredObjectConverter.java @@ -173,7 +173,7 @@ private static String generateCode( final int fieldCount = fieldClasses.length; final StringBuilder sb = new StringBuilder(); - // we ignore checkstyle here for readability and preserving indention + // we ignore checkstyle here for readability and preserving indentation line( sb, diff --git a/flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/mock/Whitebox.java b/flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/mock/Whitebox.java index b4faded7b2a3a9..194ae7d6af320e 100644 --- a/flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/mock/Whitebox.java +++ b/flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/mock/Whitebox.java @@ -66,7 +66,7 @@ private static Field getFieldFromHierarchy(Class clazz, String field) { + field + "' on this class: '" + clazz.getSimpleName() - + "' but this field is not declared withing hierarchy of this class!"); + + "' but this field is not declared within hierarchy of this class!"); } return f; } diff --git a/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java b/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java index fac47f237bffd1..8491f9b1963a00 100644 --- a/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java +++ b/flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java @@ -108,7 +108,7 @@ private static void readAllResultLines( boolean inOrderOfFiles) throws IOException { - checkArgument(resultPath != null, "resultPath cannot be be null"); + checkArgument(resultPath != null, "resultPath cannot be null"); final BufferedReader[] readers = getResultReader(resultPath, excludePrefixes, inOrderOfFiles); diff --git a/flink-tests/pom.xml b/flink-tests/pom.xml index 6c06891597d261..8ed8bba714669a 100644 --- a/flink-tests/pom.xml +++ b/flink-tests/pom.xml @@ -673,7 +673,7 @@ under the License. - diff --git a/flink-tests/src/test/java/org/apache/flink/test/state/ManualWindowSpeedITCase.java b/flink-tests/src/test/java/org/apache/flink/test/state/ManualWindowSpeedITCase.java index 686c0c0f2d7980..0cbba82dca2e1f 100644 --- a/flink-tests/src/test/java/org/apache/flink/test/state/ManualWindowSpeedITCase.java +++ b/flink-tests/src/test/java/org/apache/flink/test/state/ManualWindowSpeedITCase.java @@ -47,7 +47,7 @@ * run in local mode with parallelism 1 with a source that emits data as fast as possible. Thus, * these mostly test the performance of the state backend. * - *

    When doing a release we should manually run theses tests on the version that is to be released + *

    When doing a release we should manually run these tests on the version that is to be released * and on older version to see if there are performance regressions. * *

    When a test is executed it will output how many elements of key {@code "Tuple 0"} have been diff --git a/flink-tests/src/test/java/org/apache/flink/test/streaming/api/datastream/WatermarkITCase.java b/flink-tests/src/test/java/org/apache/flink/test/streaming/api/datastream/WatermarkITCase.java index 13f22b075e1f7a..7f68ef98cba275 100644 --- a/flink-tests/src/test/java/org/apache/flink/test/streaming/api/datastream/WatermarkITCase.java +++ b/flink-tests/src/test/java/org/apache/flink/test/streaming/api/datastream/WatermarkITCase.java @@ -223,7 +223,7 @@ void testLongWatermarkCombineMax() // unblock operator2's subtask 1, which will send watermark with value {@code 2L} to // Operator3. // for Operator3, since the watermark combine function is max, and the channel 1 received - // watermark value 2L is larger than chanel 0 received watermark value 1L, + // watermark value 2L is larger than channel 0 received watermark value 1L, // so the Operator3 will receive combined watermark with value {@code 2L}. Operator2ProcessFunction.unblockSubTasks(1); diff --git a/flink-tests/src/test/java/org/apache/flink/test/util/PointFormatter.java b/flink-tests/src/test/java/org/apache/flink/test/util/PointFormatter.java index b50bd2f0c0686b..8f9925d048f84f 100644 --- a/flink-tests/src/test/java/org/apache/flink/test/util/PointFormatter.java +++ b/flink-tests/src/test/java/org/apache/flink/test/util/PointFormatter.java @@ -28,7 +28,7 @@ * Writes records that contain an id and a CoordVector. The output format is line-based, i.e. one * record is written to a line and terminated with '\n'. Within a line the first '|' character * separates the id from the CoordVector. The vector consists of a vector of decimals. The decimals - * are separated by '|'. The is is the id of a data point or cluster center and the vector the + * are separated by '|'. The id is the id of a data point or cluster center and the vector the * corresponding position (coordinate vector) of the data point or cluster center. Example line: * "42|23.23|52.57|74.43| Id: 42 Coordinate vector: (23.23, 52.57, 74.43) */ diff --git a/flink-tests/src/test/java/org/apache/flink/test/windowing/sessionwindows/TestEventPayload.java b/flink-tests/src/test/java/org/apache/flink/test/windowing/sessionwindows/TestEventPayload.java index 19f505d6537994..2e91c536e97a4e 100644 --- a/flink-tests/src/test/java/org/apache/flink/test/windowing/sessionwindows/TestEventPayload.java +++ b/flink-tests/src/test/java/org/apache/flink/test/windowing/sessionwindows/TestEventPayload.java @@ -26,7 +26,7 @@ public final class TestEventPayload { // id of the session w.r.t the key private int sessionId; - // id of the event w.r.t. tje session id + // id of the event w.r.t. the session id private int eventId; // the watermark under which the event was emitted diff --git a/flink-yarn-tests/src/test/java/org/apache/flink/yarn/YarnTestBase.java b/flink-yarn-tests/src/test/java/org/apache/flink/yarn/YarnTestBase.java index 1fdcdc02b4bdee..539e2bb752f5ac 100644 --- a/flink-yarn-tests/src/test/java/org/apache/flink/yarn/YarnTestBase.java +++ b/flink-yarn-tests/src/test/java/org/apache/flink/yarn/YarnTestBase.java @@ -754,7 +754,7 @@ public static void sleep(int time) { try { Thread.sleep(time); } catch (InterruptedException e) { - LOG.warn("Interruped", e); + LOG.warn("Interrupted", e); } } diff --git a/pom.xml b/pom.xml index 8d7c3a37455a34..052c0337d62eb4 100644 --- a/pom.xml +++ b/pom.xml @@ -342,7 +342,7 @@ under the License. asm, netty here. It will overwrite Hadoop's guava dependency (even though we handle it - separatly in the flink-shaded-hadoop-2 dependency). + separately in the flink-shaded-hadoop-2 dependency). --> diff --git a/tools/azure-pipelines/jobs-template.yml b/tools/azure-pipelines/jobs-template.yml index 3d402eedbd9f50..3db9ebce6838cc 100644 --- a/tools/azure-pipelines/jobs-template.yml +++ b/tools/azure-pipelines/jobs-template.yml @@ -53,7 +53,7 @@ jobs: # Note that we use the year number that the pipeline run starts in the cache key, # which means the cache is invalidated per year, in order to avoid the size of # cached .m2 directory growing indefinitely. - # Offical documentation of the Cache task: https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops + # Official documentation of the Cache task: https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops - task: Cache@2 inputs: key: $(PIPELINE_START_YEAR) | $(CACHE_KEY)