Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1766

Support system functions having no args with parenthesis too

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.0
    • Component/s: core
    • Labels:

      Description

      Currently, SYSTEM functions with no args need to be queried as a SQL identifier without parenthesis but some DBs still allows it with parentheses too like MySQL and Phoenix.

        Issue Links

          Activity

          Hide
          ankit@apache.org Ankit Singhal added a comment -

          Pull request for the same.
          https://github.com/apache/calcite/pull/438

          Show
          ankit@apache.org Ankit Singhal added a comment - Pull request for the same. https://github.com/apache/calcite/pull/438
          Hide
          julianhyde Julian Hyde added a comment -

          Reviewing the pull request now.

          Adding a new conformance, "LENIENT"; this functionality should not be enabled in "PRAGMATIC_99" and "PRAGMATIC_2003". Most DBs (Oracle, DB2, SQL Server, HSQLDB, PostgreSQL) comply with the standard and do not allow parentheses.

          Show
          julianhyde Julian Hyde added a comment - Reviewing the pull request now. Adding a new conformance, "LENIENT"; this functionality should not be enabled in "PRAGMATIC_99" and "PRAGMATIC_2003". Most DBs (Oracle, DB2, SQL Server, HSQLDB, PostgreSQL) comply with the standard and do not allow parentheses.
          Show
          julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/1aaa0d68 . Thanks for the PR, Ankit Singhal ! For documentation, see http://calcite.apache.org/docs/reference.html#datetime-functions .
          Hide
          jcamachorodriguez Jesus Camacho Rodriguez added a comment -

          Resolved in release 1.13.0 (2017-06-26).

          Show
          jcamachorodriguez Jesus Camacho Rodriguez added a comment - Resolved in release 1.13.0 (2017-06-26).

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              ankit@apache.org Ankit Singhal
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development