Hi ALL:
I recently ran into some schema compatibility issue while using delta merge updates data.
The scenario I'm doing is I have multiple jobs which are updating a single delta table using merge update. I have set the schema autoMerge to be enabled. However, what I observe is some job merge changes and update the schema of the table by adding a new column, at the same time other jobs will fail with error:
ERROR - Job error running for <table>, with exception The schema of your Delta table has changed in an incompatible way since your DataFrame or
DeltaTable object was created. Please redefine your DataFrame or DeltaTable object.
When I rerun the other jobs later, the error goes away. I wonder why it is failing and is there a way I can make my job more robust?
Jiwei