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: parse DEFAULT in VALUES clause into a Var #4448

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

georgesittas
Copy link
Collaborator

Fixes #4446

@@ -198,6 +198,7 @@ class Presto(Dialect):
TYPED_DIVISION = True
TABLESAMPLE_SIZE_IS_PERCENT = True
LOG_BASE_FIRST: t.Optional[bool] = None
SUPPORTS_VALUES_DEFAULT = False
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Both Presto and Trino treat DEFAULT as an identifier: I tried running the issue's INSERT and got an identifier resolution error back. Only those two out of the engines I tested had this behavior, the other engines treat DEFAULT as a special keyword in the context of a VALUES clause.

@georgesittas georgesittas changed the title Fix: parse DEFALUT in VALUES clause into a Var Fix: parse DEFAULT in VALUES clause into a Var Nov 26, 2024
@georgesittas georgesittas merged commit 954d8fd into main Nov 26, 2024
6 checks passed
@georgesittas georgesittas deleted the jo/fix_values_default branch November 26, 2024 17:56
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.

“Default” is a keyword, but it was converted into a string value after translation.
2 participants