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
sql = """ select LEFT(a, 2) from (select '12345' as a) """ converted_sql = sqlglot.transpile(sql, read="redshift", write="trino")[0] print(converted_sql)
output
SELECT LEFT(a, 2) FROM (SELECT '12345' AS a)
trino will throw error: mismatched input 'LEFT'. Expecting: '*', 'ALL', 'DISTINCT', <expression>" when executing the output SQL https://docs.aws.amazon.com/redshift/latest/dg/r_LEFT.html
mismatched input 'LEFT'. Expecting: '*', 'ALL', 'DISTINCT', <expression>"
The text was updated successfully, but these errors were encountered:
6ad00ca
Fix\!: convert left and right closes tobymao#1733
3bd9211
tobymao
No branches or pull requests
output
trino will throw error:
mismatched input 'LEFT'. Expecting: '*', 'ALL', 'DISTINCT', <expression>"
when executing the output SQLhttps://docs.aws.amazon.com/redshift/latest/dg/r_LEFT.html
The text was updated successfully, but these errors were encountered: