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/03/18 16:28:00 UTC
[jira] [Resolved] (CALCITE-5554) Add DAYOFWEEK and DAYOFYEAR as valid synonyms of DOW, DOY
[ https://issues.apache.org/jira/browse/CALCITE-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde resolved CALCITE-5554.
----------------------------------
Fix Version/s: 1.35.0
Resolution: Fixed
Fixed in [625a2e03|https://github.com/apache/calcite/commit/625a2e03c4c5583279350bf04e3db2a31b1ec411]; thanks for the PR, [~tanclary]!
> Add DAYOFWEEK and DAYOFYEAR as valid synonyms of DOW, DOY
> ---------------------------------------------------------
>
> Key: CALCITE-5554
> URL: https://issues.apache.org/jira/browse/CALCITE-5554
> Project: Calcite
> Issue Type: Improvement
> Reporter: Tanner Clary
> Assignee: Tanner Clary
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.35.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Currently, a query such as: {{EXTRACT(DAYOFWEEK FROM DATE '2008-12-25');}} is invalid while {{EXTRACT(DOW FROM DATE '2008-12-25')}} is acceptable. BigQuery (and perhaps other dialects) accept the non-abbreviated version as a valid time unit. After this change, DAYOFWEEK and DAYOFYEAR would both be synonyms of DOW and DOY, respectively.
> [Relevant BigQuery Docs|https://cloud.google.com/bigquery/docs/reference/standard-sql/date_functions#extract]
> Any comments, questions, or suggestions for the linked PR are highly appreciated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)