Skip to content

Commit

Permalink
change for master conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi Xie committed Nov 8, 2023
1 parent c36e69d commit 2d8bd55
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void before() throws Exception {
public void after() {
sql("DROP TABLE " + CATALOG + "." + DB + "." + TABLE);
sql("DROP DATABASE " + CATALOG + "." + DB);
Assert.assertTrue(CollectionUtil.isNullOrEmpty(getCatalog().listDatabases()));
Assert.assertTrue(CollectionUtil.isNullOrEmpty(getMixedFormatCatalog().listDatabases()));
sql("USE CATALOG default_catalog");
sql("DROP CATALOG " + CATALOG);
}
Expand All @@ -127,7 +127,9 @@ public void testDDL() throws IOException {
sql("SHOW tables");

Assert.assertTrue(
getCatalog().loadTable(TableIdentifier.of(TEST_CATALOG_NAME, DB, TABLE)).isKeyedTable());
getMixedFormatCatalog()
.loadTable(TableIdentifier.of(TEST_CATALOG_NAME, DB, TABLE))
.isKeyedTable());
}

@Test
Expand Down Expand Up @@ -157,7 +159,7 @@ public void testDDLWithVirtualColumn() throws IOException {
+ ")");

Map<String, String> properties =
getCatalog().loadTable(TableIdentifier.of(TEST_CATALOG_NAME, DB, TABLE)).properties();
getMixedFormatCatalog().loadTable(TableIdentifier.of(TEST_CATALOG_NAME, DB, TABLE)).properties();

// index for compute columns
int[] computedIndex = {3, 4, 5};
Expand Down Expand Up @@ -242,7 +244,7 @@ public void testReadNotMatchColumn() throws IOException {
+ ")");

ArcticTable amoroTable =
getCatalog().loadTable(TableIdentifier.of(TEST_CATALOG_NAME, DB, TABLE));
getMixedFormatCatalog().loadTable(TableIdentifier.of(TEST_CATALOG_NAME, DB, TABLE));
String beforeExpr =
amoroTable.properties().get(compoundKey(FLINK_PREFIX, COMPUTED_COLUMNS, 2, EXPR));
// change property "flink.computed-column.2.expr" from "`id` +5" to "`newId` +5"
Expand All @@ -258,8 +260,7 @@ public void testReadNotMatchColumn() throws IOException {

// can't get table
testGetTable(false);
getCatalog()
.loadTable(TableIdentifier.of(TEST_CATALOG_NAME, DB, TABLE))
amoroTable
.updateProperties()
.set(compoundKey(FLINK_PREFIX, COMPUTED_COLUMNS, 2, EXPR), beforeExpr)
.commit();
Expand Down

0 comments on commit 2d8bd55

Please sign in to comment.