databricks-sql-cli icon indicating copy to clipboard operation
databricks-sql-cli copied to clipboard

SQL Script execution fails if script ends with a comment

Open jkoppelm opened this issue 1 year ago • 0 comments

If you try to execute a sql script that ends with a comment, the confirm_destructive_query method (prompt_utils.py) calls queries_start_with, and query_starts_with throws an exception "list index out of range". It should just quietly continue.

When I add a trivial query to the end of the script, I have confirmed it completes correctly.

jkoppelm avatar Dec 16 '24 17:12 jkoppelm