Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Connectors-v2]Paimon version upgrade to 1.0.1 #8074

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hawk9821
Copy link
Contributor

@hawk9821 hawk9821 commented Nov 17, 2024

Purpose of this pull request

doris has so far supported the Piamon . doris-paimon , Paimon version upgrade to 1.0.1 .

Does this PR introduce any user-facing change?

How was this patch tested?

PaimonSinkDynamicBucketIT#testParallelismWrite

Check list

@hawk9821 hawk9821 force-pushed the paimon_version_upgrade branch 2 times, most recently from 0292734 to 853960f Compare November 19, 2024 09:35
@hawk9821 hawk9821 force-pushed the paimon_version_upgrade branch 3 times, most recently from 5fa7e4e to 690c856 Compare November 30, 2024 16:20
@dailai
Copy link
Contributor

dailai commented Dec 2, 2024

I think we should keep the default behavior of seatunnel when writing to paimon which is that we still used fixed buckets and the default number of buckets is 1, and we should also mark dynamic buckets as experimental properties.

@hawk9821 hawk9821 force-pushed the paimon_version_upgrade branch 5 times, most recently from 060fd30 to 9c5377f Compare February 12, 2025 03:12
@hawk9821 hawk9821 changed the title [Feature][Connectors-v2]Paimon version upgrade to 0.8.2 [Feature][Connectors-v2]Paimon version upgrade to 1.0.1 Feb 12, 2025
@@ -216,7 +229,9 @@ private Schema buildPaimonSchema(@NonNull org.apache.paimon.schema.TableSchema s
Schema.Builder builder = Schema.newBuilder();
schema.fields()
.forEach(field -> builder.column(field.name(), field.type(), field.description()));
builder.options(schema.options());
Map<String, String> options = new HashMap<>(schema.options());
options.remove(CoreOptions.PATH.key());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment of why remove this?

Copy link
Contributor Author

@hawk9821 hawk9821 Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The paimon interface has changed in the new version. it will throw exception when not remove

java.lang.UnsupportedOperationException: The current catalog FileSystemCatalog does not support specifying the table path when creating a table.
	at org.apache.paimon.catalog.AbstractCatalog.validateCustomTablePath(AbstractCatalog.java:582)
	at org.apache.paimon.catalog.AbstractCatalog.createTable(AbstractCatalog.java:285)
	at org.apache.paimon.catalog.DelegateCatalog.createTable(DelegateCatalog.java:106)

@@ -128,10 +128,9 @@ public PaimonSinkWriter(
this.sinkPaimonTableSchema = this.paimonFileStoretable.schema();
this.newTableWrite();
BucketMode bucketMode = this.paimonFileStoretable.bucketMode();
this.dynamicBucket =
BucketMode.DYNAMIC == bucketMode || BucketMode.GLOBAL_DYNAMIC == bucketMode;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove GLOBAL_DYNAMIC?

Copy link
Contributor Author

@hawk9821 hawk9821 Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The paimon interface has changed in the new version

public enum BucketMode {
    HASH_FIXED,
    HASH_DYNAMIC,
    CROSS_PARTITION,
    BUCKET_UNAWARE;
    ...
    }

Comment on lines +73 to +75
paimon.table.write-props = {
bucket = 1
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change necessary?

@hawk9821 hawk9821 force-pushed the paimon_version_upgrade branch from a6c0a80 to c284d30 Compare February 18, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants