Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ boolean isIcebergSortOrderCompatible(
boolean isIcebergPropertiesCompatible(
Map<String, String> existingProperties, Map<String, String> expectedProperties) {
for (Map.Entry<String, String> entry : expectedProperties.entrySet()) {
if (entry.getKey().startsWith(FLUSS_CONF_PREFIX)) {
continue;
}
String actual = existingProperties.get(entry.getKey());
Comment on lines +522 to 525
if (actual == null || !actual.equals(entry.getValue())) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1775,6 +1775,11 @@ void testIsIcebergPropertiesCompatible() {
existing.put("engine.internal", "whatever");
assertThat(flussIcebergCatalog.isIcebergPropertiesCompatible(existing, expected)).isTrue();

// Fluss properties are metadata owned by Fluss and may differ between descriptors.
expected.put("fluss.table.replication.factor", "1");
existing.put("fluss.table.replication.factor", "2");
assertThat(flussIcebergCatalog.isIcebergPropertiesCompatible(existing, expected)).isTrue();

// Existing missing an expected key -> incompatible.
existing = new HashMap<>();
existing.put("k1", "v1");
Comment on lines +1778 to 1785
Expand Down
Loading