techguruonline commented on issue #15286:
URL: https://github.com/apache/iceberg/issues/15286#issuecomment-3881184454
so that means, in spark 4.1 the below should work with
'.withSchemaEvolution()' option set, the analyzer will pass the hint further
down to the writer even when there is schema mismatch as there are new columns
detected at the source? so with setting write.spark.accept-any-schema=true for
iceberg to perform schema evolution, it should work end to end?
source_df.mergeInto(
table="catalog.db.target_table",
condition=expr("source.id = catalog.db.target_table.id")
).withSchemaEvolution()
.whenMatched().updateAll()
.whenNotMatched().insertAll()
.merge()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]