Skip to content

Commit

Permalink
[AMORO-2] Flink support for Setting/Altering Amoro table properties
Browse files Browse the repository at this point in the history
  • Loading branch information
czy006 committed Mar 13, 2024
1 parent 4290bda commit f288182
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ public class MixedCatalog extends AbstractCatalog {
*/
public static final String SQL_LIKE_METHOD = "lookupLikeSourceTable";

public static final String LOCATION = "location";

public static final String CHERRY_PICK_SNAPSHOT_ID = "cherry-pick-snapshot-id";

public static final String CURRENT_SNAPSHOT_ID = "current-snapshot-id";

private final InternalCatalogBuilder catalogBuilder;

private com.netease.arctic.catalog.ArcticCatalog internalCatalog;
Expand Down Expand Up @@ -700,11 +706,11 @@ private void alterUnKeyedTable(UnkeyedTable table, CatalogBaseTable newTable) {
continue;
}

if ("location".equalsIgnoreCase(key)) {
if (LOCATION.equalsIgnoreCase(key)) {
setLocation = value;
} else if ("current-snapshot-id".equalsIgnoreCase(key)) {
} else if (CURRENT_SNAPSHOT_ID.equalsIgnoreCase(key)) {
setSnapshotId = value;
} else if ("cherry-pick-snapshot-id".equalsIgnoreCase(key)) {
} else if (CHERRY_PICK_SNAPSHOT_ID.equalsIgnoreCase(key)) {
pickSnapshotId = value;
} else {
setProperties.put(key, value);
Expand Down

0 comments on commit f288182

Please sign in to comment.