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

Add dataTypeCase & functionCase #689

Merged
merged 39 commits into from
Dec 7, 2023
Merged

Add dataTypeCase & functionCase #689

merged 39 commits into from
Dec 7, 2023

Conversation

nene
Copy link
Collaborator

@nene nene commented Dec 6, 2023

Continuation of PR #673

karlhorky and others added 25 commits November 29, 2023 18:19
Other dialects might also not support it, haven't checked.
But SQLite is the only one with data type named "ANY".
Copy link

codesandbox-ci bot commented Dec 6, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@nene
Copy link
Collaborator Author

nene commented Dec 7, 2023

I'm still not sure how to best handle the ARRAY keyword/type.

In many dialects array literals are written as ARRAY[1, 2, 3] - here ARRAY is not a type, it's part of the literal syntax.

In BigQuery one can write just [1, 2, 3], but also ARRAY[1, 2, 3] and ARRAY<INT64>[1, 2, 3] - here ARRAY is a type.

At the moment in this PR the ARRAY[] is formatted as keyword, but ARRAY<INT64>[] as data type. Which isn't ideal.

Will need to do more research into how the ARRAY keyword is used in other dialects.

@nene nene merged commit 7e3db7f into master Dec 7, 2023
2 checks passed
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.

2 participants