You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2020/09/04 09:46:39 UTC

[GitHub] [calcite] ihuzenko commented on a change in pull request #2130: [CALCITE-4207] Validation fails for positional aggregate with current_date in 'case' expression

ihuzenko commented on a change in pull request #2130:
URL: https://github.com/apache/calcite/pull/2130#discussion_r483511233



##########
File path: core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java
##########
@@ -11685,6 +11685,19 @@ private void checkCustomColumnResolving(String table) {
             + "MYFUN\\(<NUMERIC>, <NUMERIC>\\).*");
   }
 
+  @Test void testPositionalAggregateWithExpandedCurrentDateFunction() {
+    SqlConformance defaultPlusOrdinalGroupBy =
+        new SqlDelegatingConformance(SqlConformanceEnum.DEFAULT) {
+          @Override public boolean isGroupByOrdinal() {
+            return true;
+          }
+        };
+    sql("SELECT HIREDATE >= CURRENT_DATE, COUNT(*) "
+        + "FROM EMP GROUP BY 1")

Review comment:
       Please take a look at the stack trace from [CALCITE-4207](https://issues.apache.org/jira/browse/CALCITE-4207) description and [this comment](https://issues.apache.org/jira/browse/CALCITE-4207?focusedCommentId=17189063&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17189063). 




----------------------------------------------------------------
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:
users@infra.apache.org