difin commented on code in PR #6449:
URL: https://github.com/apache/hive/pull/6449#discussion_r3229975046
##########
parser/src/test/org/apache/hadoop/hive/ql/parse/TestParseDefault.java:
##########
@@ -90,6 +90,16 @@ public void testParseStructNamedDefault() throws Exception {
assertFalse(tree.dump(),
tree.toStringTree().contains("tok_default_value"));
}
+ @Test
+ public void testParseCreateViewTblpropertiesViewFormatIceberg() throws
Exception {
+ ASTNode tree = parseDriver.parse(
+ "create view v1 tblproperties ('view-format'='iceberg') as select *
from t", null).getTree();
+ assertTrue(tree.dump(), tree.toStringTree().contains("tok_createview"));
+ assertTrue(tree.dump(),
tree.toStringTree().contains("tok_tableproperties"));
+ assertTrue(tree.dump(), tree.toStringTree().contains("view-format"));
+ assertTrue(tree.dump(), tree.toStringTree().contains("iceberg"));
+ }
+
Review Comment:
Done, moved to a new class for testing view parsing.
--
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]