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

parsing div() for postgresql throws error #3601

Closed
andrrreasss opened this issue Jun 5, 2024 · 0 comments · Fixed by #3602
Closed

parsing div() for postgresql throws error #3601

andrrreasss opened this issue Jun 5, 2024 · 0 comments · Fixed by #3602
Assignees

Comments

@andrrreasss
Copy link

Summary

Trying to parse a sql statement using the DIV() method but encountering an error.

Sample Code

from sqlglot import parse_one

parsed_content = parse_one('select div(9,4)', read='postgres')

Error

sqlglot.errors.ParseError: Required keyword: 'expressions' missing for <class 'sqlglot.expressions.Aliases'>. Line 1, Col: 12.
select div(9,4)

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