-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Snowflake sqlify issue #1632
Comments
two issues here:
|
@AvivVegh the first issue has been fixed. working on the second one now. |
@AvivVegh for the second issue, can you give me some cases to make it more clearly? |
case sensitive example: warehouse state: const sql = 'select NAME from dev.src_host' if Im running this query directly in the warehouse or in some db client parser result: can we might add a flag to parser remove quotes ? |
Using function sqlify for Snowflake
...
const sql = 'select NAME as "a\b" from schmea.table'
const ast = parser.astify(sql, { database: 'Snowflake' })
const parsedSql = parser.sqlify(sql, { database: 'Snowflake' })
console.log(parsedSql)
expected: select "NAME" as "a\b" from "schmea"."table"
actual: select "NAME" as `a\b` from "schmea"."table"
`a\b` is not valid in Snowflake
also in adding quotes you are losing the "Letter case"
the column/schema/table should be the exact name (with letter case) as it is in the warehouse.
can we do something with that ?
The text was updated successfully, but these errors were encountered: