huaxingao commented on a change in pull request #34497:
URL: https://github.com/apache/spark/pull/34497#discussion_r744281394
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/DDLParserSuite.scala
##########
@@ -2430,4 +2435,34 @@ class DDLParserSuite extends AnalysisTest {
comparePlans(parsePlan(timestampTypeSql), insertPartitionPlan(timestamp))
comparePlans(parsePlan(binaryTypeSql), insertPartitionPlan(binaryStr))
}
+
+ test("as of syntax") {
+ var properties = new util.HashMap[String, String]
+ properties.put(TableCatalog.PROP_VERSION, "123456789")
+ comparePlans(
+ parsePlan("SELECT * FROM a.b.c VERSION AS OF 123456789"),
Review comment:
Since the wrong syntax (e.g. `VERSION AS OF -123456789`) will cause a
parsing Exception for sure, I will skip a negative test here.
--
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]