Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
herefree committed Aug 23, 2024
1 parent 0af6e30 commit be2663e
Showing 1 changed file with 21 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ public void testCreateCatalogWithSyncTblProperties() throws Exception {
.executeQuery("DESC FORMATTED t02")
.contains("\tbucket \t3 "))
.isFalse();

}

@Test
Expand Down Expand Up @@ -496,15 +495,15 @@ public void alterTableWithWithSyncTblProperties()
.isFalse();

assertThat(
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tprimary-key \tcc,aa "))
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tprimary-key \tcc,aa "))
.isFalse();

assertThat(
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tpartition \tcc "))
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tpartition \tcc "))
.isFalse();

tEnv.executeSql(
Expand All @@ -528,34 +527,34 @@ public void alterTableWithWithSyncTblProperties()

hiveShell.executeQuery("DESC FORMATTED t03").stream().forEach(System.out::println);
assertThat(
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tfile.format \tparquet "))
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tfile.format \tparquet "))
.isTrue();

assertThat(
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tprimary-key \tcc,aa "))
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tprimary-key \tcc,aa "))
.isTrue();

assertThat(
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tpartition \tcc "))
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tpartition \tcc "))
.isTrue();

assertThat(
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tbucket-key \taa "))
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\tbucket-key \taa "))
.isTrue();

tEnv.executeSql("ALTER TABLE t03 SET ('owner' = 'test')").await();
assertThat(
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\towner \ttest "))
hiveShell
.executeQuery("DESC FORMATTED t03")
.contains("\towner \ttest "))
.isTrue();
}

Expand Down

0 comments on commit be2663e

Please sign in to comment.