XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Some functions such as TO_DATE & TO_CHAR are breaking in SELECT statements. These functions do however work in DDL statements such as create view.

      "SELECT * FROM t WHERE k1 = TO_DATE(TO_CHAR(CURRENT_DATE())"
      org.apache.calcite.sql.validate.SqlValidatorException: No match found for function signature TO_DATE()

      But once wrapped in a DDL statement, it executes fine:
      "CREATE VIEW v AS SELECT * FROM t WHERE k1 = TO_DATE(TO_CHAR(CURRENT_DATE())

      Attachments

        Activity

          People

            lomoree Eric Lomore
            lomoree Eric Lomore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: