You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/12/16 10:03:00 UTC
[jira] [Updated] (CALCITE-7337) There is no age function that supports pgSQL
[ https://issues.apache.org/jira/browse/CALCITE-7337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated CALCITE-7337:
------------------------------------
Labels: pull-request-available (was: )
> There is no age function that supports pgSQL
> --------------------------------------------
>
> Key: CALCITE-7337
> URL: https://issues.apache.org/jira/browse/CALCITE-7337
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.41.0
> Reporter: terran2010
> Priority: Major
> Labels: pull-request-available
>
> The SQL:
> {code:java}
> SELECT AGE(timestamp '2023-12-25', timestamp '2020-01-01') as age1 FROM (VALUES (1)) t {code}
> result is ok:
> {code:java}
> 3 years 11 mons 24 days 0 hours 0 mins 0.0 secs {code}
> But is:
> {code:java}
> Error while executing SQL "SELECT AGE(timestamp '2023-12-25', timestamp '2020-01-01') as age1 FROM (VALUES (1)) t": From line 1, column 8 to line 1, column 58: No match found for function signature AGE(<TIMESTAMP>, <TIMESTAMP>) {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)