Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle EXTRACT(DAY_OF_WEEK) in SQLGlot #877

Open
grieve54706 opened this issue Nov 1, 2024 · 0 comments
Open

Handle EXTRACT(DAY_OF_WEEK) in SQLGlot #877

grieve54706 opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working sqlglot

Comments

@grieve54706
Copy link
Contributor

Description

In Trino, The field of EXTRACT is DAY_OF_WEEK. But in BigQuery, the part of EXTRACT is DAYOFWEEK.
We need to handle the SQL transform at SQLGlot by overriding.

https://trino.io/docs/current/functions/datetime.html#extract
https://cloud.google.com/bigquery/docs/reference/standard-sql/date_functions#extract

@grieve54706 grieve54706 added bug Something isn't working sqlglot labels Nov 1, 2024
@grieve54706 grieve54706 self-assigned this Nov 1, 2024
@grieve54706 grieve54706 removed their assignment Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sqlglot
Projects
None yet
Development

No branches or pull requests

1 participant