We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
YEAR(4)
sg.parse_one("YEAR(4)", into=sge.DataType, read="mysql")
fails with
ParseError: Failed to parse 'YEAR(4)' into <class 'sqlglot.expressions.DataType'>
Would it be possible to ignore the display width for all types when parsing?
Another failing case is: Failed to parse 'mediumint(20)' into <class 'sqlglot.expressions.DataType'>
Failed to parse 'mediumint(20)' into <class 'sqlglot.expressions.DataType'>
while bigint(20) is parsed as
bigint(20)
In [6]: sg.parse_one("bigint(20)", into=sge.DataType, read="mysql") Out[6]: (DATATYPE this: Type.BIGINT, expressions: (DATATYPEPARAM this: (LITERAL this: 20, is_string: False)), nested: False, prefix: False)
The text was updated successfully, but these errors were encountered:
c99bf73
No branches or pull requests
fails with
Would it be possible to ignore the display width for all types when parsing?
Another failing case is:
Failed to parse 'mediumint(20)' into <class 'sqlglot.expressions.DataType'>
while
bigint(20)
is parsed asThe text was updated successfully, but these errors were encountered: