Skip to content
Merged
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 @@ -603,7 +603,12 @@ private void preAlterTableProperties(
// We should always alter lake table even though datalake is disabled.
// Otherwise, if user alter the fluss table when datalake is disabled, then enable datalake
// again, the lake table will mismatch.
if (lakeCatalog != null) {
// Only sync to lake if this table has ever opted into datalake (key present regardless of
// value).
if (lakeCatalog != null
&& tableDescriptor
.getProperties()
.containsKey(ConfigOptions.TABLE_DATALAKE_ENABLED.key())) {
try {
lakeCatalog.alterTable(tablePath, tableChanges, lakeCatalogContext);
} catch (TableNotExistException e) {
Expand Down