I have two delta tables, one source and one destination and I batch-stream (using Trigger.AvailableNow()
) from source to destination.
When the source table is overwritten then the next run fails because the destination table does not recognize the source table.
How to handle this situation? How to automatically truncate the destination table and propagate the new source table without interruption?
Using Spark 3.3.2.