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
The following incorrectly translates the snowflake function startswith to starts_with
startswith
starts_with
The docs indicate the method name as https://docs.snowflake.com/en/sql-reference/functions/startswith
Code snippit:
from sqlglot import parse_one res = parse_one("SELECT * FROM logs where startswith(table, 'test')", read="snowflake") print(res.sql(dialect="snowflake"))
Output:
SELECT * FROM logs WHERE STARTS_WITH(table, 'test')
Therefore the expected output would be:
SELECT * FROM logs WHERE STARTSWITH(table, 'test')
The text was updated successfully, but these errors were encountered:
d219a65
No branches or pull requests
The following incorrectly translates the snowflake function
startswith
tostarts_with
The docs indicate the method name as https://docs.snowflake.com/en/sql-reference/functions/startswith
Code snippit:
Output:
Therefore the expected output would be:
The text was updated successfully, but these errors were encountered: