AnalysisException : when attempting to save a spark DataFrame as delta table
I get an, `AnalysisException Failed to merge incompatible data types LongType and StringTypewhen attempting to run the below command, `df.write.format("delta").saveAsTable("schema.k_adhoc.df", mode="overwrite")` I am casting the column before saving:...
- 8180 Views
- 5 replies
- 0 kudos
The issue seems to be because the job is trying to merge columns with different schema. Could you please make sure that the schema matches for the columns.
- 0 kudos