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

Support Postgres array size specification #3544

Closed
judahrand opened this issue May 24, 2024 · 0 comments · Fixed by #3548
Closed

Support Postgres array size specification #3544

judahrand opened this issue May 24, 2024 · 0 comments · Fixed by #3548
Assignees

Comments

@judahrand
Copy link
Contributor

judahrand commented May 24, 2024

Is your feature request related to a problem? Please describe.

We have some SQL which defines array lengths in the schema for the purposes of documentation (since Postgres currently ignores the length in the implementation). sqlglot is unable to parse this SQL.

sqlglot.parse_one('CREATE TABLE t (col int[3])', dialect='postgres')

Describe the solution you'd like

Support the array length syntax.

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 a pull request may close this issue.

2 participants