sgedward commented on code in PR #10721:
URL: https://github.com/apache/gravitino/pull/10721#discussion_r3087378609


##########
catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/GravitinoPaimonTable.java:
##########
@@ -204,12 +204,17 @@ private static void applyDistribution(Map<String, String> 
properties, Distributi
       return;
     }
 
-    List<String> bucketKeys = getBucketKeys(distribution);
-    if (!bucketKeys.isEmpty()) {
-      properties.put(BUCKET_KEY, String.join(",", bucketKeys));
+    int number = distribution.number();
+    // Paimon does not allow 'bucket-key' with bucket=-1 (dynamic mode).

Review Comment:
   When I ran the IT test locally with `bucket-key` allowed, I ran into a 
bucket key not allowed exception when bucket=`-1`. So I found this in the code.
   
   
https://github.com/apache/paimon/blob/master/paimon-core/src/main/java/org/apache/paimon/schema/SchemaValidation.java#L575C1-L579C14



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to