jswett77 commented on a change in pull request #2203:
URL: https://github.com/apache/calcite/pull/2203#discussion_r502808433



##########
File path: core/src/test/java/org/apache/calcite/tools/PlannerTest.java
##########
@@ -147,6 +148,21 @@ private void checkParseAndConvert(String query,
         + 
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 from \"emps\"");
   }
 
+  @Test void testCurrentDatetime() throws Exception {
+    Planner planner = getPlanner(null,
+        SqlParser.config());
+    SqlNode node = planner.parse("select current_datetime");
+    planner.validate(node);
+  }
+
+  @Test void testNiladicForBigQuery() throws Exception {
+    Planner planner = getPlanner(null,
+        SqlParser.config().withConformance(SqlConformanceEnum.BIG_QUERY));
+    SqlNode node = planner.parse("select current_time, current_time(), 
current_date, "
+            + "current_date(), current_timestamp, current_timestamp(), 
current_datetime, current_datetime()");

Review comment:
       Ah, sure I can move it.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to