This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 0d8849991c [hotfix] Fix some typo in documents and code (#5204)
0d8849991c is described below
commit 0d8849991c975368ccbf7cffd0343fff9042c0b7
Author: yangjf2019 <[email protected]>
AuthorDate: Thu Mar 6 13:45:31 2025 +0800
[hotfix] Fix some typo in documents and code (#5204)
---
docs/content/engines/starrocks.md | 10 ++++------
docs/layouts/shortcodes/center.html | 2 +-
docs/layouts/shortcodes/gh_link.html | 2 +-
docs/layouts/shortcodes/github_repo.html | 2 +-
docs/layouts/shortcodes/presto_github_repo.html | 2 +-
docs/layouts/shortcodes/trino_github_repo.html | 2 +-
.../src/main/java/org/apache/paimon/migrate/FileMetaUtils.java | 4 ++--
7 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/docs/content/engines/starrocks.md
b/docs/content/engines/starrocks.md
index dda22d35f7..ff90a3a9bd 100644
--- a/docs/content/engines/starrocks.md
+++ b/docs/content/engines/starrocks.md
@@ -38,12 +38,10 @@ Paimon catalogs are registered by executing a `CREATE
EXTERNAL CATALOG` SQL in S
For example, you can use the following SQL to create a Paimon catalog named
paimon_catalog.
```sql
-CREATE EXTERNAL CATALOG paimon_catalog
-PROPERTIES
-(
-"type" = "paimon",
-"paimon.catalog.type" = "filesystem",
-"paimon.catalog.warehouse" = "oss://<your_bucket>/user/warehouse/"
+CREATE EXTERNAL CATALOG paimon_catalog PROPERTIES(
+ "type" = "paimon",
+ "paimon.catalog.type" = "filesystem",
+ "paimon.catalog.warehouse" = "oss://<your_bucket>/user/warehouse/"
);
```
diff --git a/docs/layouts/shortcodes/center.html
b/docs/layouts/shortcodes/center.html
index ed9d728dc2..acfba1aabb 100644
--- a/docs/layouts/shortcodes/center.html
+++ b/docs/layouts/shortcodes/center.html
@@ -18,7 +18,7 @@ under the License.
*/}}{{/*
Shortcode for centering text
- Parmeters: markdown text
+ Parameters: markdown text
*/}}
<div style="text-align: center;">
{{ .Inner | markdownify }}
diff --git a/docs/layouts/shortcodes/gh_link.html
b/docs/layouts/shortcodes/gh_link.html
index 66e9c7beb9..eef52e68c8 100644
--- a/docs/layouts/shortcodes/gh_link.html
+++ b/docs/layouts/shortcodes/gh_link.html
@@ -19,7 +19,7 @@ under the License.
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 5f92d7fee4..7d2c695c21 100644
--- a/docs/layouts/shortcodes/github_repo.html
+++ b/docs/layouts/shortcodes/github_repo.html
@@ -18,5 +18,5 @@ under the License.
*/}}{{/*
Shortcode that interpolates the full github repo
- Parmeters: None
+ Parameters: None
*/}}{{- $.Site.Params.GithubRepo -}}
\ No newline at end of file
diff --git a/docs/layouts/shortcodes/presto_github_repo.html
b/docs/layouts/shortcodes/presto_github_repo.html
index d321598d8c..d2ea6a4b47 100644
--- a/docs/layouts/shortcodes/presto_github_repo.html
+++ b/docs/layouts/shortcodes/presto_github_repo.html
@@ -18,5 +18,5 @@ under the License.
*/}}{{/*
Shortcode that interpolates the full github repo
-Parmeters: None
+Parameters: None
*/}}{{- $.Site.Params.PrestoGithubRepo -}}
\ No newline at end of file
diff --git a/docs/layouts/shortcodes/trino_github_repo.html
b/docs/layouts/shortcodes/trino_github_repo.html
index 4841f7ddc7..9305cf7508 100644
--- a/docs/layouts/shortcodes/trino_github_repo.html
+++ b/docs/layouts/shortcodes/trino_github_repo.html
@@ -18,5 +18,5 @@ under the License.
*/}}{{/*
Shortcode that interpolates the full github repo
-Parmeters: None
+Parameters: None
*/}}{{- $.Site.Params.TrinoGithubRepo -}}
\ No newline at end of file
diff --git
a/paimon-core/src/main/java/org/apache/paimon/migrate/FileMetaUtils.java
b/paimon-core/src/main/java/org/apache/paimon/migrate/FileMetaUtils.java
index a960ce7575..0057b2b432 100644
--- a/paimon-core/src/main/java/org/apache/paimon/migrate/FileMetaUtils.java
+++ b/paimon-core/src/main/java/org/apache/paimon/migrate/FileMetaUtils.java
@@ -175,9 +175,9 @@ public class FileMetaUtils {
private static Path renameFile(
FileIO fileIO, Path originPath, Path newDir, String format,
Map<Path, Path> rollback)
throws IOException {
- String subfix = "." + format;
+ String suffix = "." + format;
String fileName = originPath.getName();
- String newFileName = fileName.endsWith(subfix) ? fileName : fileName +
"." + format;
+ String newFileName = fileName.endsWith(suffix) ? fileName : fileName +
"." + format;
Path newPath = new Path(newDir, newFileName);
rollback.put(newPath, originPath);
LOG.info("Migration: rename file from " + originPath + " to " +
newPath);