You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql = """SELECT a from (select true as a) where a is true"""
converted_sql = sqlglot.transpile(sql, read="redshift", write="trino")[0]
print(converted_sql)
SELECT a FROM (SELECT TRUE AS a) WHERE a IS TRUE
Trino error: mismatched input 'TRUE'. Expecting: 'DISTINCT', 'NOT', 'NULL'
a fix could be: replacing "is true" with ""; "is false" with "not"
The text was updated successfully, but these errors were encountered:
SELECT a FROM (SELECT TRUE AS a) WHERE a IS TRUE
Trino error:
mismatched input 'TRUE'. Expecting: 'DISTINCT', 'NOT', 'NULL'
a fix could be: replacing "is true" with ""; "is false" with "not"
The text was updated successfully, but these errors were encountered: