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

Fix(duckdb): remove parentheses from CurrentTimestamp, CurrentDate #1551

Merged
merged 3 commits into from
May 4, 2023

Conversation

georgesittas
Copy link
Collaborator

Fixes #1550

@@ -187,7 +187,6 @@ def test_bigquery(self):
"current_datetime",
write={
"bigquery": "CURRENT_DATETIME()",
"duckdb": "CURRENT_DATETIME()",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this because there's no such function or constant in duckdb (checked)

@georgesittas georgesittas merged commit 99310c4 into main May 4, 2023
@georgesittas georgesittas deleted the jo/duckdb_current_timestamp_fixes branch May 4, 2023 18:08
@BTheunissen
Copy link

Much appreciated on the extremely fast turnaround :)

adrianisk pushed a commit to adrianisk/sqlglot that referenced this pull request Jun 21, 2023
…obymao#1551)

* Fix(duckdb): remove parentheses from CurrentTimestamp, CurrentDate

* Fixup

* Fixed tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DuckDB] Parsing DuckDB SQL will convert into illegal usage of CURRENT_TIMESTAMP, CURRENT_DATE
3 participants