This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new b5b49e8e2aa [fix] change cluster by to order by (#3567)
b5b49e8e2aa is described below

commit b5b49e8e2aadafb242dd71b447241d27899f63ff
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Thu Apr 23 23:16:15 2026 -0700

    [fix] change cluster by to order by (#3567)
    
    ## Versions
    
    - [x] dev
    - [x] 4.x
    - [ ] 3.x
    - [ ] 2.1
    
    ## Languages
    
    - [x] Chinese
    - [x] English
    
    ## Docs Checklist
    
    - [ ] Checked by AI
    - [ ] Test Cases Built
---
 docs/ai/vector-search/index-management.md                | 16 +---------------
 .../sql-statements/table-and-view/table/CREATE-TABLE.md  | 10 +++++++---
 .../current/ai/vector-search/index-management.md         | 16 +---------------
 .../sql-statements/table-and-view/table/CREATE-TABLE.md  | 10 +++++++---
 .../version-4.x/ai/vector-search/index-management.md     | 16 +---------------
 .../sql-statements/table-and-view/table/CREATE-TABLE.md  | 10 +++++++---
 .../version-4.x/ai/vector-search/index-management.md     | 16 +---------------
 .../sql-statements/table-and-view/table/CREATE-TABLE.md  | 10 +++++++---
 8 files changed, 32 insertions(+), 72 deletions(-)

diff --git a/docs/ai/vector-search/index-management.md 
b/docs/ai/vector-search/index-management.md
index b9c8821b86f..46f521cd35f 100644
--- a/docs/ai/vector-search/index-management.md
+++ b/docs/ai/vector-search/index-management.md
@@ -50,21 +50,7 @@ CREATE TABLE [IF NOT EXISTS] <table_name> (
     "<key>" = "<value>" [, ...]
   )
 )
-[ <key_type> KEY (<key_cols>)
-    [ CLUSTER BY (<cluster_cols>) ]
-]
-[ COMMENT '<table_comment>' ]
-[ <partitions_definition> ]
-[ DISTRIBUTED BY { HASH (<distribute_cols>) | RANDOM }
-    [ BUCKETS { <bucket_count> | AUTO } ]
-]
-[ <roll_up_definition> ]
-[ PROPERTIES (
-    -- Table property
-    <table_property>
-    -- Additional table properties
-    [ , ... ])
-]
+...
 ```
 
 2. **Create the index separately**: Define the index first, then build it on 
existing data using `BUILD INDEX`.
diff --git 
a/docs/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md 
b/docs/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
index 767b1e034a0..f93c9d06b2f 100644
--- a/docs/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
+++ b/docs/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
@@ -32,7 +32,7 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     (<columns_definition> [ <indexes_definition> ])
     [ ENGINE = <table_engine_type> ]
     [ <key_type> KEY (<key_cols>)
-        [ CLUSTER BY (<cluster_cols>) ]
+        [ ORDER BY (<cluster_cols>) ]
     ]
     [ COMMENT '<table_comment>' ]
     [ <partitions_definition> ]
@@ -48,6 +48,8 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     ]
 ```
 
+> Note: `ORDER BY` is supported since 4.1.0
+
 Where:
 
 ```sql
@@ -143,7 +145,7 @@ CREATE
     [ <index_definitions> ]
     [ ENGINE = <storage_engine_type> ]
     [ <partitioning_key_type> KEY ( <key_columns> )
-        [ CLUSTER BY ( <clustering_columns> ) ]
+        [ ORDER BY ( <clustering_columns> ) ]
     ]
     [ COMMENT '<table_description>' ]
     [ <partition_definitions> ]
@@ -158,6 +160,8 @@ CREATE
 [ AS ] <query>;
 ```
 
+> Note: `ORDER BY` is supported since 4.1.0
+
 ### CREATE TABLE ... LIKE
 
 Creates a new table with the same column definitions as an existing table, 
without copying data from the existing table. All properties of the columns 
will be replicated in the new table. If a list of `rollup` names is specified, 
the corresponding `rollup` from the original table will also be replicated:
@@ -735,4 +739,4 @@ AS SELECT * FROM t1;
 
 ```sql
 CREATE TABLE t11 LIKE t10;
-```
\ No newline at end of file
+```
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/index-management.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/index-management.md
index 24d5a5bb3c6..1bd0e387270 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/index-management.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/ai/vector-search/index-management.md
@@ -50,21 +50,7 @@ CREATE TABLE [IF NOT EXISTS] <table_name> (
     "<key>" = "<value>" [, ...]
   )
 )
-[ <key_type> KEY (<key_cols>)
-    [ CLUSTER BY (<cluster_cols>) ]
-]
-[ COMMENT '<table_comment>' ]
-[ <partitions_definition> ]
-[ DISTRIBUTED BY { HASH (<distribute_cols>) | RANDOM }
-    [ BUCKETS { <bucket_count> | AUTO } ]
-]
-[ <roll_up_definition> ]
-[ PROPERTIES (
-    -- Table property
-    <table_property>
-    -- Additional table properties
-    [ , ... ])
-]
+...
 ```
 
 2. **单独创建索引**:先定义索引,然后使用 `BUILD INDEX` 在现有数据上构建。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
index a5a8c5de85f..8cab6b1760c 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
@@ -32,7 +32,7 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     (<columns_definition> [ <indexes_definition> ])
     [ ENGINE = <table_engine_type> ]
     [ <key_type> KEY (<key_cols>)
-        [ CLUSTER BY (<cluster_cols>) ]
+        [ ORDER BY (<cluster_cols>) ]
     ]
     [ COMMENT '<table_comment>' ]
     [ <partitions_definition> ]
@@ -48,6 +48,8 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     ]
 ```
 
+> 注:`ORDER BY` 语法自 4.1.0 支持。
+
 其中:
 
 ```sql
@@ -143,7 +145,7 @@ CREATE
     [ <indexesDefinition> ]
     [ ENGINE = <table_engine_type> ]
     [ <key_type> KEY (<key_cols>)
-        [ CLUSTER BY (<cluster_cols>) ]
+        [ ORDER BY (<cluster_cols>) ]
     ]
     [ COMMENT '<table_comment>' ]
     [ <partitionsDefinition> ]
@@ -160,6 +162,8 @@ CREATE
     [ AS ] <query>
 ```
 
+> 注:`ORDER BY` 语法自 4.1.0 支持。
+
 ### CREATE TABLE … LIKE
 
 创建一个新表,其列定义与现有表相同,但不从现有表中复制数据。列的所有属性将被复制到新的表中。如果指定了 `rollup` 列表,那么原表中对应名字的 
`rollup` 也将复制到新的表中:
@@ -734,4 +738,4 @@ AS SELECT * FROM t1
 
 ```sql
 CREATE TABLE t11 LIKE t10
-```
\ No newline at end of file
+```
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/index-management.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/index-management.md
index 24d5a5bb3c6..1bd0e387270 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/index-management.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/ai/vector-search/index-management.md
@@ -50,21 +50,7 @@ CREATE TABLE [IF NOT EXISTS] <table_name> (
     "<key>" = "<value>" [, ...]
   )
 )
-[ <key_type> KEY (<key_cols>)
-    [ CLUSTER BY (<cluster_cols>) ]
-]
-[ COMMENT '<table_comment>' ]
-[ <partitions_definition> ]
-[ DISTRIBUTED BY { HASH (<distribute_cols>) | RANDOM }
-    [ BUCKETS { <bucket_count> | AUTO } ]
-]
-[ <roll_up_definition> ]
-[ PROPERTIES (
-    -- Table property
-    <table_property>
-    -- Additional table properties
-    [ , ... ])
-]
+...
 ```
 
 2. **单独创建索引**:先定义索引,然后使用 `BUILD INDEX` 在现有数据上构建。
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
index a5a8c5de85f..8cab6b1760c 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
@@ -32,7 +32,7 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     (<columns_definition> [ <indexes_definition> ])
     [ ENGINE = <table_engine_type> ]
     [ <key_type> KEY (<key_cols>)
-        [ CLUSTER BY (<cluster_cols>) ]
+        [ ORDER BY (<cluster_cols>) ]
     ]
     [ COMMENT '<table_comment>' ]
     [ <partitions_definition> ]
@@ -48,6 +48,8 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     ]
 ```
 
+> 注:`ORDER BY` 语法自 4.1.0 支持。
+
 其中:
 
 ```sql
@@ -143,7 +145,7 @@ CREATE
     [ <indexesDefinition> ]
     [ ENGINE = <table_engine_type> ]
     [ <key_type> KEY (<key_cols>)
-        [ CLUSTER BY (<cluster_cols>) ]
+        [ ORDER BY (<cluster_cols>) ]
     ]
     [ COMMENT '<table_comment>' ]
     [ <partitionsDefinition> ]
@@ -160,6 +162,8 @@ CREATE
     [ AS ] <query>
 ```
 
+> 注:`ORDER BY` 语法自 4.1.0 支持。
+
 ### CREATE TABLE … LIKE
 
 创建一个新表,其列定义与现有表相同,但不从现有表中复制数据。列的所有属性将被复制到新的表中。如果指定了 `rollup` 列表,那么原表中对应名字的 
`rollup` 也将复制到新的表中:
@@ -734,4 +738,4 @@ AS SELECT * FROM t1
 
 ```sql
 CREATE TABLE t11 LIKE t10
-```
\ No newline at end of file
+```
diff --git a/versioned_docs/version-4.x/ai/vector-search/index-management.md 
b/versioned_docs/version-4.x/ai/vector-search/index-management.md
index b9c8821b86f..46f521cd35f 100644
--- a/versioned_docs/version-4.x/ai/vector-search/index-management.md
+++ b/versioned_docs/version-4.x/ai/vector-search/index-management.md
@@ -50,21 +50,7 @@ CREATE TABLE [IF NOT EXISTS] <table_name> (
     "<key>" = "<value>" [, ...]
   )
 )
-[ <key_type> KEY (<key_cols>)
-    [ CLUSTER BY (<cluster_cols>) ]
-]
-[ COMMENT '<table_comment>' ]
-[ <partitions_definition> ]
-[ DISTRIBUTED BY { HASH (<distribute_cols>) | RANDOM }
-    [ BUCKETS { <bucket_count> | AUTO } ]
-]
-[ <roll_up_definition> ]
-[ PROPERTIES (
-    -- Table property
-    <table_property>
-    -- Additional table properties
-    [ , ... ])
-]
+...
 ```
 
 2. **Create the index separately**: Define the index first, then build it on 
existing data using `BUILD INDEX`.
diff --git 
a/versioned_docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
 
b/versioned_docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
index 767b1e034a0..f93c9d06b2f 100644
--- 
a/versioned_docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
+++ 
b/versioned_docs/version-4.x/sql-manual/sql-statements/table-and-view/table/CREATE-TABLE.md
@@ -32,7 +32,7 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     (<columns_definition> [ <indexes_definition> ])
     [ ENGINE = <table_engine_type> ]
     [ <key_type> KEY (<key_cols>)
-        [ CLUSTER BY (<cluster_cols>) ]
+        [ ORDER BY (<cluster_cols>) ]
     ]
     [ COMMENT '<table_comment>' ]
     [ <partitions_definition> ]
@@ -48,6 +48,8 @@ CREATE [ TEMPORARY | EXTERNAL ] TABLE [ IF NOT EXISTS ] 
<table_name>
     ]
 ```
 
+> Note: `ORDER BY` is supported since 4.1.0
+
 Where:
 
 ```sql
@@ -143,7 +145,7 @@ CREATE
     [ <index_definitions> ]
     [ ENGINE = <storage_engine_type> ]
     [ <partitioning_key_type> KEY ( <key_columns> )
-        [ CLUSTER BY ( <clustering_columns> ) ]
+        [ ORDER BY ( <clustering_columns> ) ]
     ]
     [ COMMENT '<table_description>' ]
     [ <partition_definitions> ]
@@ -158,6 +160,8 @@ CREATE
 [ AS ] <query>;
 ```
 
+> Note: `ORDER BY` is supported since 4.1.0
+
 ### CREATE TABLE ... LIKE
 
 Creates a new table with the same column definitions as an existing table, 
without copying data from the existing table. All properties of the columns 
will be replicated in the new table. If a list of `rollup` names is specified, 
the corresponding `rollup` from the original table will also be replicated:
@@ -735,4 +739,4 @@ AS SELECT * FROM t1;
 
 ```sql
 CREATE TABLE t11 LIKE t10;
-```
\ No newline at end of file
+```


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to