cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to set order of precedence of spark SQL extensions?

samrachmiletter
New Contributor III

I have the iceberg SQL extension installed, but running commands such as MERGE INTO result in the error

pyspark.sql.utils.AnalysisException: MERGE destination only supports Delta sources.

this seems to be due to using Delta's MERGE command as opposed to Iceberg's. Is it possible to force use of the Iceberg extension before Databricks' own?

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

@Sam Rachmil-Etter​ , SQL syntax is "Databricks" one so I am afraid it will not work. CONVERT can transform the iceberg parquet into the delta.

Probably in python/scala it could be better as format("iceberg") can be used in DataFrameReader but I have no experience with iceberg on databricks.

View solution in original post

2 REPLIES 2

Hubert-Dudek
Esteemed Contributor III

@Sam Rachmil-Etter​ , SQL syntax is "Databricks" one so I am afraid it will not work. CONVERT can transform the iceberg parquet into the delta.

Probably in python/scala it could be better as format("iceberg") can be used in DataFrameReader but I have no experience with iceberg on databricks.

samrachmiletter
New Contributor III

This does help. I tried going through the DataFrameReader as well but ran into the same error, so it seems it is indeed not possible. Thank you @Hubert Dudek​!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group