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
When creating a new .sql file to implement a change in our Snowflake database, the schemachange cli command returns an error: SQL compilation error: Empty SQL statement if the .sql file terminates with a comment.
The error does not appear if the file terminates with a valid SQL command.
To Reproduce
Steps to reproduce the behavior:
Create an .sql script with some SQL command to be implemented in snowflake database
Make sure the file ends with some comments --some comment
Run schemachange CLI command
See error
Expected behavior
I would expect schemachange not to return an "Empty SQL statement" error if the .sql file ends with some comments. I would expect it executes the SQL commands it finds in the .sql script, and implements changes on the database successfully.
Screenshots
Schemachange (please complete the following information):
schemachange: 3.6.1
Python 3.9.19
snowflake-connector-python 2.8.3
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a new .sql file to implement a change in our Snowflake database, the
schemachange
cli command returns an error: SQL compilation error: Empty SQL statement if the .sql file terminates with a comment.The error does not appear if the file terminates with a valid SQL command.
To Reproduce
Steps to reproduce the behavior:
--some comment
schemachange
CLI commandExpected behavior
I would expect
schemachange
not to return an "Empty SQL statement" error if the .sql file ends with some comments. I would expect it executes the SQL commands it finds in the .sql script, and implements changes on the database successfully.Screenshots
Schemachange (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: