phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankit Singhal (JIRA)" <>
Subject [jira] [Created] (PHOENIX-3809) CURRENT_DATE() (with paranthesis) is illegal in calcite
Date Mon, 24 Apr 2017 12:08:04 GMT
Ankit Singhal created PHOENIX-3809:

             Summary: CURRENT_DATE() (with paranthesis) is illegal in calcite
                 Key: PHOENIX-3809
             Project: Phoenix
          Issue Type: Bug
            Reporter: Ankit Singhal
            Assignee: Ankit Singhal

Calcite doesn't allow system functions to be specified with parenthesis who doesn't accept

For eg:-
CURRENT_DATE() is illegal whereas CURRENT_DATE is expected.

    if ((call.operandCount() == 0)
        && (operator.getSyntax() == SqlSyntax.FUNCTION_ID)
        && !call.isExpanded()) {
      // For example, "LOCALTIME()" is illegal. (It should be
      // "LOCALTIME", which would have been handled as a
      // SqlIdentifier.)
      throw handleUnresolvedFunction(call, (SqlFunction) operator,
          ImmutableList.<RelDataType>of(), null);

This message was sent by Atlassian JIRA

View raw message