Krystal created DRILL-744:
-----------------------------

             Summary: Functions should be case insensitive
                 Key: DRILL-744
                 URL: https://issues.apache.org/jira/browse/DRILL-744
             Project: Apache Drill
          Issue Type: Bug
          Components: Functions - Drill
            Reporter: Krystal


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>) ]"
]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to