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/incubator-paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 74c9aa05d [core] Added validation of bucket keys when creating a 
table. (#1446)
74c9aa05d is described below

commit 74c9aa05dabefcbe3a89dfa928fe4d785b0dc6dd
Author: Kerwin <[email protected]>
AuthorDate: Thu Jun 29 10:32:36 2023 +0800

    [core] Added validation of bucket keys when creating a table. (#1446)
---
 paimon-core/src/main/java/org/apache/paimon/schema/TableSchema.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/paimon-core/src/main/java/org/apache/paimon/schema/TableSchema.java 
b/paimon-core/src/main/java/org/apache/paimon/schema/TableSchema.java
index c169cd634..f173f0f31 100644
--- a/paimon-core/src/main/java/org/apache/paimon/schema/TableSchema.java
+++ b/paimon-core/src/main/java/org/apache/paimon/schema/TableSchema.java
@@ -76,6 +76,9 @@ public class TableSchema implements Serializable {
 
         // try to trim to validate primary keys
         trimmedPrimaryKeys();
+
+        // try to validate bucket keys
+        originalBucketKeys();
     }
 
     public long id() {

Reply via email to