You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "ka1serd0m (via GitHub)" <gi...@apache.org> on 2026/01/16 02:24:14 UTC

[I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

ka1serd0m opened a new issue, #9731:
URL: https://github.com/apache/gravitino/issues/9731

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   1. currently, gravitino does not support specifying bucket-key when creating a paimon table. Is there any scheme to achieve this feature?
   2. due to table primary key is gravitino filtered, how to specify the primary key in SQL when using spark-sql create paimon table?
   
   ### Error message and/or stacktrace
   
   java.lang.IllegalArgumentException: Distribution is not supported for Paimon in Gravitino now.
   	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143)
   	at org.apache.gravitino.catalog.lakehouse.paimon.PaimonCatalogOperations.createTable(PaimonCatalogOperations.java:351)
   	at org.apache.gravitino.catalog.lakehouse.paimon.PaimonCatalogOperations.createTable(PaimonCatalogOperations.java:79)
   	at org.apache.gravitino.catalog.TableOperationDispatcher.lambda$internalCreateTable$25(TableOperationDispatcher.java:599)
   	at org.apache.gravitino.catalog.CatalogManager$CatalogWrapper.lambda$doWithTableOps$1(CatalogManager.java:160)
   
   
   ### How to reproduce
   
   create paimon table and specify bucket-key
   
   ### Additional context
   
   _No response_


-- 
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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "ka1serd0m (via GitHub)" <gi...@apache.org>.
ka1serd0m commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3757954382

   @yuqi1129
   use Distributions.NONE or null, paimon should use the primary key or full row as bucket-key, if i want to use non-primary key field as bucket-key how should it be done?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3766750371

   > currently, gravitino does not support specifying bucket-key when creating a paimon table. Is there any methods to achieve this feature?
   
   Gravitino does not support `bucket-key` now, please see: 
   https://github.com/apache/gravitino/blob/c3c32fa98a7e622629f240e8930bbfe7d442395a/catalogs/catalog-lakehouse-paimon/src/main/java/org/apache/gravitino/catalog/lakehouse/paimon/PaimonCatalogOperations.java#L351-L352
   
   > due to table primary key is gravitino filtered, how to specify the primary key in SQL when using spark-sql create paimon table?
   
   Does it work if you add `bucket-key` to the `with` properties?  I'm afraid that I won't work, which caused by #1


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3766825632

   > due to table primary key is gravitino filtered, how to specify the primary key in SQL when using spark-sql create paimon table? 
   
   The Gravitino Spark connector follows the behavior of the original Spark, but unfortunately, it doesn't support transforming primary key properties to Gravitino primary indexes yet. 
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 closed issue #9731: [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino
URL: https://github.com/apache/gravitino/issues/9731


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "FANNG1 (via GitHub)" <gi...@apache.org>.
FANNG1 commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3770525848

   > [@FANNG1](https://github.com/FANNG1) [@yuqi1129](https://github.com/yuqi1129) Because gravitino has Distributions checks for the paimon table and bucket-key is a reserved field for gravitino(https://gravitino.apache.org/docs/1.1.0/lakehouse-paimon-catalog#table-properties), so I can't add the bucket-key property to the paimon table, my current temporary solution is to remove the primary-key and bucket-key reserved fields in gravitino, I want to know if Gravitino will handle the primary indexes and table distribution for paimon in the future.
   
   There are two issues here, and both should be resolved:
   1. Support bucket or distribution in Gravitino for the Paimon table
   2. Support primary key for the Paimon table in the Gravitino Spark connector


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "ka1serd0m (via GitHub)" <gi...@apache.org>.
ka1serd0m commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3757829509

   @LauraXia123 Could you help check this issue?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3770624029

   > > [@FANNG1](https://github.com/FANNG1) [@yuqi1129](https://github.com/yuqi1129) Because gravitino has Distributions checks for the paimon table and bucket-key is a reserved field for gravitino([gravitino.apache.org/docs/1.1.0/lakehouse-paimon-catalog#table-properties](https://gravitino.apache.org/docs/1.1.0/lakehouse-paimon-catalog#table-properties)), so I can't add the bucket-key property to the paimon table, my current temporary solution is to remove the primary-key and bucket-key reserved fields in gravitino, I want to know if Gravitino will handle the primary indexes and table distribution for paimon in the future.
   > 
   > There are two issues here, and both should be resolved:
   > 
   > 1. Support bucket or distribution in Gravitino for the Paimon table
   > 2. Support primary key and bucket key for the Paimon table in the Gravitino Spark connector
   
   @ka1serd0m 
   Would you like to have a try?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3757897511

   @ka1serd0m 
   For the first one, you should use `Distributions.NONE` or `null` directly. As for the second one, I'm not very sure whether Gravitino supports primary keys for Paimon tables. Let me take a look.  


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "ka1serd0m (via GitHub)" <gi...@apache.org>.
ka1serd0m commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3768111373

   @FANNG1 @yuqi1129 
   Because gravitino has Distributions checks for the paimon table and bucket-key is a reserved field for gravitino(https://gravitino.apache.org/docs/1.1.0/lakehouse-paimon-catalog#table-properties), so I can't add the bucket-key property to the paimon table, my current temporary solution is to remove the primary-key and bucket-key reserved fields in gravitino, I want to know if Gravitino will handle the primary indexes and table distribution for paimon in the future.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao closed issue #9731: [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino
URL: https://github.com/apache/gravitino/issues/9731


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Specifying bucket-key is not supported when creating a paimon table in gravitino [gravitino]

Posted by "ka1serd0m (via GitHub)" <gi...@apache.org>.
ka1serd0m commented on issue #9731:
URL: https://github.com/apache/gravitino/issues/9731#issuecomment-3778335054

   I'm very sorry, there are many things at the end of the year, so I should not have time to participate in this contribution.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org