05-06-2022 11:44 AM
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?
05-07-2022 04:02 AM
@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.
05-07-2022 04:02 AM
@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.
05-13-2022 03:53 AM
Hi @Sam Rachmil-Etter , Just a friendly follow-up. Do you still need help, or @Hubert Dudek (Customer) 's response help you to find the solution? Please let us know.
05-13-2022 10:12 AM
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!
05-13-2022 11:42 AM
Hi @Sam Rachmil-Etter , Would you like to mark @Hubert Dudek 's answer as the best?
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.