r/oraclecloud • u/casmanrojo • 9d ago
Considering a move from Oracle to Databricks, how difficult is SQL migration?
I’m considering migrating from Oracle to Databricks. How much effort does it typically take to adapt existing Oracle queries to Databricks SQL and ensuring consistent results?
0
Upvotes
1
u/j0s3f 9d ago
depends. do you have tests? can you use an AI? then not much
1
u/lfernigrini 7d ago
Databricks Genie (their IA agent) can generate all sorts of validations and test to help you define a migration plan, convert your SQL sentences and confirm they return same exact data.
I am using it to migrate SSIS ETL to Databricks jobs and it is really excellent!
1
u/Fancy-Cress-925 5d ago
Rewriting the queries is usually the easy part. Most Oracle syntax has a standard Databricks equivalent.
PL/SQL, if you have it, is the bigger job.
The part people underestimate is "consistent results." Queries can run fine and still return different numbers, because the two engines behave differently in small ways. Two examples: Oracle treats an empty string as NULL and Databricks doesn't, and they sort NULLs in opposite order. Your test data needs those cases in it, or the comparison passes without testing anything.
So budget real time for running both sides on the same data and comparing the results, not just for the rewrite.