You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Zhuravkov (Jira)" <ji...@apache.org> on 2025/04/10 09:39:00 UTC
[jira] [Assigned] (IGNITE-24832) Sql. Review the behavior and documentation of the CURRENT_TIME/CURRENT_TIMESTAMP functions
[ https://issues.apache.org/jira/browse/IGNITE-24832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maksim Zhuravkov reassigned IGNITE-24832:
-----------------------------------------
Assignee: Maksim Zhuravkov
> Sql. Review the behavior and documentation of the CURRENT_TIME/CURRENT_TIMESTAMP functions
> ------------------------------------------------------------------------------------------
>
> Key: IGNITE-24832
> URL: https://issues.apache.org/jira/browse/IGNITE-24832
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Pavel Pereslegin
> Assignee: Maksim Zhuravkov
> Priority: Major
> Labels: ignite-3
>
> From current documentation [https://ignite.apache.org/docs/ignite3/latest/sql-reference/operators-and-functions#current_time]
> {noformat}
> CURRENT_TIME
> Returns the current time in the session time zone, in a value of datatype TIMESTAMP WITH TIME ZONE.
> CURRENT_TIMESTAMP
> Returns the current date and time in the session time zone, in a value of datatype TIMESTAMP WITH TIME ZONE.
> {noformat}
> # CURRENT_TIME must return {{TIME WITH TIME ZONE}} (not TIMESTAMP)
> # AI3 currently doesn't support TIME WITH TIME ZONE and TIMESTAMP WITH TIME ZONE data types
> The only difference between LOCALTIMESTAMP/LOCALTIME and CURRENT_TIMESTAMP/CURRENT_TIME is is the return types.
> But currently we return the same types.
> Possible solution:
> # return {{TIMESTAMP WITH *LOCAL* TIME ZONE}} for {{*CURRENT_TIMESTAMP*}}
> # remove *{{CURRENT_TIME}}* as unsupported (we don't support "TIME WITH..." now IGNITE-21555).
> # fix the documentation accordingly
--
This message was sent by Atlassian Jira
(v8.20.10#820010)