You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Lindsey Meyer (JIRA)" <ji...@apache.org> on 2019/08/14 18:17:00 UTC

[jira] [Created] (CALCITE-3252) Syntax error while parsing CONVERT_TIMEZONE, TO_DATE, TO_TIMESTAMP functions on Redshift

Lindsey Meyer created CALCITE-3252:
--------------------------------------

             Summary: Syntax error while parsing CONVERT_TIMEZONE, TO_DATE, TO_TIMESTAMP functions on Redshift
                 Key: CALCITE-3252
                 URL: https://issues.apache.org/jira/browse/CALCITE-3252
             Project: Calcite
          Issue Type: Bug
            Reporter: Lindsey Meyer


Example queries that error for these functions:
{code:java}
SELECT CONVERT_TIMEZONE('UTC', 'America/Los_Angeles', CAST('2019-01-01 01:00:00' AS TIMESTAMP) FROM mytable {code}
{code:java}
SELECT TO_DATE('2019-01-01', 'YYYY-MM-DD') FROM mytable {code}
{code:java}
SELECT TO_TIMESTAMP('2019-01-01 01:00:00', 'YYYY-MM-DD HH:MM:SS') FROM mytable 
{code}
With errors like:

 
{code:java}
No match found for function signature CONVERT_TIMEZONE(<CHARACTER>, <CHARACTER>, <TIMESTAMP>)
{code}
These are valid in Redshift and Postgres, except for `CONVERT_TIMEZONE`, which I believe is only valid on Redshift.

 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)