This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new d1f64fd24c [Fix](planner)fix create table like stmt from a table
distributed by random error. #20700
d1f64fd24c is described below
commit d1f64fd24cdcef184ff4c68e0f82bfcf4d702d3b
Author: mch_ucchi <[email protected]>
AuthorDate: Tue Jun 13 08:51:46 2023 +0800
[Fix](planner)fix create table like stmt from a table distributed by random
error. #20700
---
.../main/java/org/apache/doris/catalog/RandomDistributionInfo.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java
index 31371e7799..3c63546ffc 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/catalog/RandomDistributionInfo.java
@@ -56,9 +56,9 @@ public class RandomDistributionInfo extends DistributionInfo {
public String toSql() {
StringBuilder builder = new StringBuilder();
if (autoBucket) {
- builder.append("DISTRIBUTED BY RANDOM() BUCKETS AUTO");
+ builder.append("DISTRIBUTED BY RANDOM BUCKETS AUTO");
} else {
- builder.append("DISTRIBUTED BY RANDOM() BUCKETS
").append(bucketNum);
+ builder.append("DISTRIBUTED BY RANDOM BUCKETS ").append(bucketNum);
}
return builder.toString();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]