felixYyu commented on a change in pull request #3862:
URL: https://github.com/apache/iceberg/pull/3862#discussion_r780749274
##########
File path:
spark/v3.2/spark/src/test/java/org/apache/iceberg/spark/sql/TestPartitionedWrites.java
##########
@@ -170,10 +170,25 @@ public void testViewsReturnRecentResults() {
ImmutableList.of(row(1L, "a")),
sql("SELECT * FROM tmp"));
- sql("INSERT INTO TABLE %s VALUES (1, 'a')", tableName);
+ sql("INSERT INTO TABLE %s VALUES (1, 'a', CURRENT_TIMESTAMP())",
tableName);
assertEquals("View should have expected rows",
ImmutableList.of(row(1L, "a"), row(1L, "a")),
sql("SELECT * FROM tmp"));
}
+
+ @Test
+ public void testAddPartition() {
+ sql("ALTER TABLE %s ADD IF NOT EXISTS PARTITION (id_bucket=2,
data_trunc='2022', ts_hour='2022-01-08-23')", tableName);
+ }
+
+ @Test
+ public void testDropPartition() {
+ sql("ALTER TABLE %s DROP IF EXISTS PARTITION (id_bucket=2,
data_trunc='2022', ts_hour='2022-01-08-23')", tableName);
Review comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]