Skip to content

Commit

Permalink
Reformat TestKuduConnectorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-esperanza authored and ebyhr committed Jul 12, 2023
1 parent 4d26ca6 commit e2a9cae
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -401,9 +401,9 @@ public void testCreateTable()

assertUpdate(
"CREATE TABLE IF NOT EXISTS " + tableName + " (" +
"id INT WITH (primary_key=true)," +
"d bigint, e varchar(50))" +
"WITH (partition_by_hash_columns = ARRAY['id'], partition_by_hash_buckets = 2)");
"id INT WITH (primary_key=true)," +
"d bigint, e varchar(50))" +
"WITH (partition_by_hash_columns = ARRAY['id'], partition_by_hash_buckets = 2)");
assertTrue(getQueryRunner().tableExists(getSession(), tableName));
assertTableColumnNames(tableName, "id", "a", "b", "c");

Expand All @@ -426,8 +426,8 @@ public void testCreateTable()
final String finalTableName = tableName;
assertThatThrownBy(() -> assertUpdate(
"CREATE TABLE " + tableNameLike + " (LIKE " + finalTableName + ", " +
"d bigint, e varchar(50))" +
"WITH (partition_by_hash_columns = ARRAY['id'], partition_by_hash_buckets = 2)"))
"d bigint, e varchar(50))" +
"WITH (partition_by_hash_columns = ARRAY['id'], partition_by_hash_buckets = 2)"))
.hasMessageContaining("This connector does not support creating tables with column comment");
//assertTrue(getQueryRunner().tableExists(getSession(), tableNameLike));
//assertTableColumnNames(tableNameLike, "a", "b", "c", "d", "e");
Expand Down Expand Up @@ -511,9 +511,9 @@ public void testDropTable()
String tableName = "test_drop_table_" + randomNameSuffix();
assertUpdate(
"CREATE TABLE " + tableName + "(" +
"id INT WITH (primary_key=true)," +
"col bigint)" +
"WITH (partition_by_hash_columns = ARRAY['id'], partition_by_hash_buckets = 2)");
"id INT WITH (primary_key=true)," +
"col bigint)" +
"WITH (partition_by_hash_columns = ARRAY['id'], partition_by_hash_buckets = 2)");
assertTrue(getQueryRunner().tableExists(getSession(), tableName));

assertUpdate("DROP TABLE " + tableName);
Expand Down Expand Up @@ -702,7 +702,7 @@ protected TestTable createTableWithOneIntegerColumn(String namePrefix)
// TODO Remove this overriding method once kudu connector can create tables with default partitions
return new TestTable(getQueryRunner()::execute, namePrefix,
"(col integer WITH (primary_key=true)) " +
"WITH (partition_by_hash_columns = ARRAY['col'], partition_by_hash_buckets = 2)");
"WITH (partition_by_hash_columns = ARRAY['col'], partition_by_hash_buckets = 2)");
}

/**
Expand Down

0 comments on commit e2a9cae

Please sign in to comment.