You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2023/04/17 18:39:00 UTC

[jira] [Commented] (CALCITE-5654) Support PostgreSQL's syntax for day-to-second intervals

    [ https://issues.apache.org/jira/browse/CALCITE-5654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17713251#comment-17713251 ] 

Julian Hyde commented on CALCITE-5654:
--------------------------------------

It's more than syntax. Postgres '1 month 2 days' cannot be represented as a Calcite interval.

> Support PostgreSQL's syntax for day-to-second intervals
> -------------------------------------------------------
>
>                 Key: CALCITE-5654
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5654
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Tim Nieradzik
>            Assignee: Tim Nieradzik
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Support day-to-second intervals using PostgreSQL's syntax:
> select INTERVAL '2 weeks 3 days 4 hours 5 minutes 6 seconds 7 milliseconds'
> select INTERVAL '-30 day'
> These should be equivalent to:
> select INTERVAL '17 04:05:06.007' DAY TO SECOND
> select -INTERVAL '30 00:00:00.000' DAY TO SECOND



--
This message was sent by Atlassian Jira
(v8.20.10#820010)