You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Krystal (JIRA)" <ji...@apache.org> on 2017/04/17 20:13:42 UTC

[jira] [Created] (DRILL-5437) Ansi format date/time functions fail when escaping double quotes

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)