Skip to content

[core] Add table properties sync to JDBC catalog#7423

Open
nickdelnano wants to merge 1 commit intoapache:masterfrom
nickdelnano:nickdelnano/jdbc-table-properties
Open

[core] Add table properties sync to JDBC catalog#7423
nickdelnano wants to merge 1 commit intoapache:masterfrom
nickdelnano:nickdelnano/jdbc-table-properties

Conversation

@nickdelnano
Copy link
Contributor

@nickdelnano nickdelnano commented Mar 13, 2026

Purpose

Linked issue: #7421

Supporting table properties in JdbcCatalog similar to HiveCatalog support. Some implementation details are different due to differences in Hive vs Jdbc.

Table properties are stored in SQL table paimon_table_properties controlled by the existing sync-all-properties option.

Tests

Unit tests in JdbcCatalogTest. These use in memory sqlite database so they function like integration tests.

API and Format

N/A

Documentation

Updated docs

Generative AI tooling

Generated-by: claude code

I have reviewed the code.

Comment on lines +584 to +601
Map<String, String> properties = new HashMap<>();
if (!tableSchema.primaryKeys().isEmpty()) {
properties.put(
CoreOptions.PRIMARY_KEY.key(),
String.join(",", tableSchema.primaryKeys()));
}
if (!tableSchema.partitionKeys().isEmpty()) {
properties.put(
CoreOptions.PARTITION.key(),
String.join(",", tableSchema.partitionKeys()));
}
if (!tableSchema.bucketKeys().isEmpty()) {
properties.put(
CoreOptions.BUCKET_KEY.key(),
String.join(",", tableSchema.bucketKeys()));
}
return properties;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nickdelnano nickdelnano force-pushed the nickdelnano/jdbc-table-properties branch 2 times, most recently from 7c97e03 to 448db52 Compare March 13, 2026 20:58
@nickdelnano nickdelnano force-pushed the nickdelnano/jdbc-table-properties branch from 448db52 to e6477c2 Compare March 13, 2026 21:28
@nickdelnano nickdelnano marked this pull request as ready for review March 13, 2026 22:27
@nickdelnano
Copy link
Contributor Author

@JingsongLi can you review?

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.

1 participant