Skip to content

[#4755] improvement (trino-connector): Trino connector support the format table properties of Iceberg catalog #7612

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

Merged
merged 5 commits into from
Jul 15, 2025

Conversation

diqiu50
Copy link
Contributor

@diqiu50 diqiu50 commented Jul 8, 2025

What changes were proposed in this pull request?

Trino connector support the format table properties of Iceberg catalog

Why are the changes needed?

Fix: #4755

Does this PR introduce any user-facing change?

No

How was this patch tested?

IT

yuqi1129
yuqi1129 previously approved these changes Jul 9, 2025
@@ -16,6 +16,8 @@ CREATE TABLE
)
COMMENT ''
WITH (
format = 'PARQUET',
format_version = '2',
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the value of format_version always '2'? What if Iceberg upgrade the format to 3?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After the upgrade, it would also be easy to replace this using a script.

@@ -110,6 +117,14 @@ public GravitinoTable createTable(ConnectorTableMetadata tableMetadata) {
toGravitinoTableProperties(
removeKeys(tableMetadata.getProperties(), ICEBERG_PROPERTIES_TO_REMOVE));

if (propertyMap.containsKey(ICEBERG_FORMAT_PROPERTY)) {
String format = propertyMap.get(ICEBERG_FORMAT_PROPERTY).toString();
properties.put(FORMAT, format);
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if the value of PROVIDER is always not null when the property format is provided.

@yuqi1129
Copy link
Contributor

yuqi1129 commented Jul 9, 2025

@diqiu50
I mistakenly clicked approve and it should be the type of comment.

@diqiu50 diqiu50 requested a review from FANNG1 July 9, 2025 02:39
@diqiu50 diqiu50 requested a review from FANNG1 July 14, 2025 02:32
@FANNG1
Copy link
Contributor

FANNG1 commented Jul 14, 2025

LGTM except minor comments.

@yuqi1129
Copy link
Contributor

@FANNG1
Do you have any further comments?

@FANNG1 FANNG1 merged commit 519754c into apache:main Jul 15, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] trino connector support more table properties
3 participants