You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Tanner Clary (Jira)" <ji...@apache.org> on 2023/04/19 21:04:00 UTC
[jira] [Commented] (CALCITE-5449) Allow EXTRACT() to accept ISOWEEK and WEEK(WEEKDAY)
[ https://issues.apache.org/jira/browse/CALCITE-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17714306#comment-17714306 ]
Tanner Clary commented on CALCITE-5449:
---------------------------------------
[~julianhyde] As I revisit this, I am wondering whether ISOWEEK could be added to the {{TimeUnit}} enum in Avatica. Other iso units (such is ISOYEAR and ISODOW) are included so I believe it makes sense to add ISOWEEK. What do you think?
> Allow EXTRACT() to accept ISOWEEK and WEEK(WEEKDAY)
> ---------------------------------------------------
>
> Key: CALCITE-5449
> URL: https://issues.apache.org/jira/browse/CALCITE-5449
> Project: Calcite
> Issue Type: Sub-task
> Reporter: Tanner Clary
> Assignee: Tanner Clary
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Implement BigQuery {{EXTRACT()}} Function. {{EXTRACT(part FROM date_expression)}} returns the value from the date_expression corresponding to the specified part. Calcite currently supports PostgreSQL' {{DATE_PART}} which has similar behavior.
> Example: {{SELECT EXTRACT(DAY FROM DATE '2013-12-25')}} would return 25.
> [BigQuery Docs|https://g3doc.corp.google.com/company/teams/googlesql/reference/date_functions.md#extract ]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)