This is needed for REPLACE TABLE AS SELECT with a different schema, based on testing in https://github.com/lance-format/lance-spark/pull/251 I think this is also related to https://github.com/lance-format/lance/pull/5824 to some extend if we want to fix this properly.