You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
step2. run the above code again using version 1.0.1 throw exception
Caused by: java.lang.RuntimeException: You should define a 'bucket-key' for bucketed append mode.
at org.apache.paimon.schema.SchemaValidation.validateBucket(SchemaValidation.java:581)
at org.apache.paimon.schema.SchemaValidation.validateTableSchema(SchemaValidation.java:99)
at org.apache.paimon.table.AbstractFileStoreTable.copyInternal(AbstractFileStoreTable.java:351)
at org.apache.paimon.table.AbstractFileStoreTable.copy(AbstractFileStoreTable.java:295)
at org.apache.paimon.table.FileStoreTableFactory.createWithoutFallbackBranch(FileStoreTableFactory.java:127)
at org.apache.paimon.table.FileStoreTableFactory.create(FileStoreTableFactory.java:90)
at org.apache.paimon.table.FileStoreTableFactory.create(FileStoreTableFactory.java:80)
at org.apache.paimon.catalog.AbstractCatalog.getDataOrFormatTable(AbstractCatalog.java:423)
at org.apache.paimon.catalog.AbstractCatalog.getTable(AbstractCatalog.java:415)
at org.apache.paimon.catalog.CachingCatalog.getTable(CachingCatalog.java:254)
at com.hawk.paimon.CreateTable.main(CreateTable.java:37)
What doesn't meet your expectations?
Primary key table is ok
APPendOnly table throw exception
version 0.8 and above is ok
Anything else?
because the Schemaserializer #deserialize method performs the following logic when serializing version 0.7 of the appendOnly table schema
if (version <= 1 && !options.containsKey(CoreOptions.BUCKET.key())) {
options.put(CoreOptions.BUCKET.key(), "1");
}
Be changed to
if (schema.primaryKeys().isEmpty() && schema.bucketKeys().isEmpty() && !(schema.version() == TableSchema.PAIMON_07_VERSION && bucket == 1)) {
throw new RuntimeException(
"You should define a 'bucket-key' for bucketed append mode.");
}
No response
Are you willing to submit a PR?
I'm willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Search before asking
Paimon version
0.7.0-incubating
1.0.1
Compute Engine
JavaAPI
Minimal reproduce step
step1. create table using version 0.7.0-incubating
step2. run the above code again using version 1.0.1 throw exception
What doesn't meet your expectations?
Primary key table is ok
APPendOnly table throw exception
version 0.8 and above is ok
Anything else?
because the Schemaserializer #deserialize method performs the following logic when serializing version 0.7 of the appendOnly table schema
Be changed to
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: