kupferk opened a new pull request, #37251: URL: https://github.com/apache/spark/pull/37251
### What changes were proposed in this pull request? This PR fixes the issue SPARK-39838 where an explicitly set empty Column Metadata object would be optimized away, making it impossible to reset column metadata. ### Why are the changes needed? The behaviour changed from Spark 3.2.x to Spark 3.3. While Spark 3.2.x would respect explicitly resetting a columns metadata to empty, Spark 3.3 inherits the metadata from child nodes. From my point of view, Spark 3.2.x behaviour is correct while Spark 3.3 is unexpected. ### Does this PR introduce _any_ user-facing change? Not really, except that it restores the behaviour of Spark 3.2.x ### How was this patch tested? A unittest was added -- 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]
