Krystal created DRILL-5437:
------------------------------

             Summary: Ansi format date/time functions fail when escaping double 
quotes
                 Key: DRILL-5437
                 URL: https://issues.apache.org/jira/browse/DRILL-5437
             Project: Apache Drill
          Issue Type: Bug
          Components: Functions - Drill
    Affects Versions: 1.11.0
            Reporter: Krystal


The following date/time functions fails when escaping double quotes:
sql_to_time
sql_to_date
sql_to_timestamp

select sql_to_date('"2017 March"', '\"YYYY Month"\') from (values(1));

Error: FUNCTION ERROR: Error parsing date-time "2017 March" in sql_to_date 
function

This works from postgres:
postgres=# select to_date('"2017 March"', '\"YYYY Month\"');
  to_date   
------------
 2017-03-01




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to