You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Danny Chen (Jira)" <ji...@apache.org> on 2020/09/29 02:09:00 UTC
[jira] [Resolved] (CALCITE-4282) Promote the window table functions
window attribute data type with precision 3
[ https://issues.apache.org/jira/browse/CALCITE-4282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Danny Chen resolved CALCITE-4282.
---------------------------------
Resolution: Fixed
Fixed in [d70039d|https://github.com/apache/calcite/commit/d70039ddda15112a6398765073572605fb01e23c] ~
> Promote the window table functions window attribute data type with precision 3
> ------------------------------------------------------------------------------
>
> Key: CALCITE-4282
> URL: https://issues.apache.org/jira/browse/CALCITE-4282
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.25.0
> Reporter: Danny Chen
> Assignee: Danny Chen
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.26.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Now the {{window_start}} and {{window_end}} has a type of a Timestamp with default system precision. But, actually, many DB vendors has default precision as 6 (which is also defined in the SQL standard).
> We better promote the precision to 3 because:
> 1. For windowing, time unit as millisecond is enough
> 2. Make the precision deterministic instead of overriding by each engine's default one
--
This message was sent by Atlassian Jira
(v8.3.4#803005)