Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-744

Functions should be case insensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 0.4.0
    • Functions - Drill
    • None

    Description

      If the function names are in upper case, the query fails. For example:

      0: jdbc:drill:schema=dfs> select to_date('2003/07/09', 'yyyy/MM/dd') from voter where voter_id=10;
      ------------

      EXPR$0

      ------------

      2003-07-09T00:00:00.000-07:00

      ------------

      Same query with function name in uppercase:
      select TO_DATE('2003/07/09', 'yyyy/MM/dd') from voter where voter_id=10;

      message: "Failure while parsing sql. < ValidationException:[ org.eigenbase.util.EigenbaseContextException: From line 1, column 8 to line 1, column 42 ] < EigenbaseContextException:[ From line 1, column 8 to line 1, column 42 ] < SqlValidatorException:[ No match found for function signature TO_DATE(<CHARACTER>, <CHARACTER>) ]"
      ]

      Attachments

        Issue Links

          Activity

            People

              vkorukanti Venki Korukanti
              knguyen Krystal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: