Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
bknbkn committed Oct 24, 2024
1 parent 774da8d commit cb2a98e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ public void testSparkTableAddDropPartitions() throws Exception {
public void testDropColumnOfOldPartitionFieldV1() {
// default table created in v1 format
sql(
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)"
+ "TBLPROPERTIES ('format-version' = '1')",
tableName);
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)"
+ "TBLPROPERTIES ('format-version' = '1')",
tableName);

sql("INSERT INTO TABLE %s VALUES (1, TIMESTAMP '2024-10-23', DATE '2024-10-23')", tableName);

Expand All @@ -544,8 +544,8 @@ public void testDropColumnOfOldPartitionFieldV1() {
public void testDropColumnOfOldPartitionFieldV2() {

sql(
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)",
tableName);
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)",
tableName);
sql("ALTER TABLE %s SET TBLPROPERTIES ('format-version' = '2');", tableName);

sql("INSERT INTO TABLE %s VALUES (1, TIMESTAMP '2024-10-23', DATE '2024-10-23')", tableName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ public void testSparkTableAddDropPartitions() throws Exception {
public void testDropColumnOfOldPartitionFieldV1() {
// default table created in v1 format
sql(
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)"
+ "TBLPROPERTIES ('format-version' = '1')",
tableName);
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)"
+ "TBLPROPERTIES ('format-version' = '1')",
tableName);

sql("INSERT INTO TABLE %s VALUES (1, TIMESTAMP '2024-10-23', DATE '2024-10-23')", tableName);

Expand All @@ -544,8 +544,8 @@ public void testDropColumnOfOldPartitionFieldV1() {
public void testDropColumnOfOldPartitionFieldV2() {

sql(
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)",
tableName);
"CREATE TABLE %s (id bigint NOT NULL, ts timestamp, day_of_ts date) USING iceberg PARTITIONED BY (day_of_ts)",
tableName);
sql("ALTER TABLE %s SET TBLPROPERTIES ('format-version' = '2');", tableName);

sql("INSERT INTO TABLE %s VALUES (1, TIMESTAMP '2024-10-23', DATE '2024-10-23')", tableName);
Expand Down

0 comments on commit cb2a98e

Please sign in to comment.