Comments
2 comments
-
Official commentHi Abhinandan,
Thanks for reaching out to Redgate Support, sorry to hear you are having some trouble with your databricks migration in Flyway. I think that the parsing error that you are describing is potentially a defect, could I trouble you to attach a copy of the creation script for the stored procedure Flyway is erroring on upon migration? I should then be able to reproduce this behavior and get this escalated to development.
-
I am seeing this same behavior, my client uses repeatable migrations with wrapping if statements in the current sql server implementation they use, migrating this to data bricks does not work because it seems to be parsing by the ;
Add comment
Please sign in to leave a comment.
I am trying to deploy a Databricks SQL stored procedure using Flyway, but I am encountering a parsing error during migration execution.
The same procedure runs successfully when executed directly in the Databricks SQL editor, but fails when executed via Flyway.
Error Message:
The error points to the end of a
MERGEstatement inside the procedure, suggesting that the statement is not being fully parsed.What the procedure contains:
CREATE OR REPLACE PROCEDURELANGUAGE SQLMERGE INTO ... USING (...)statementWHEN MATCHED THEN UPDATEEND;Suspected Cause:
It appears that Flyway may be splitting the SQL script at semicolons (
;) before sending it to Databricks, causing the procedure body (especially theMERGEstatement) to be incomplete.Questions:
MERGEinside SQL procedures with Flyway?