dtenedor opened a new pull request, #37280: URL: https://github.com/apache/spark/pull/37280
### What changes were proposed in this pull request? Fix a bug in existence DEFAULT value lookups for V2 data sources. The `ResolveDefaultColumns.getExistenceDefaultValues` method should inspect the string in the column metadata at the `EXISTS_DEFAULT_COLUMN_METADATA_KEY`. It was erroneously using the `CURRENT_DEFAULT_COLUMN_METADATA_KEY` instead; this PR fixes that bug. ### Why are the changes needed? This fixes a bug in column DEFAULT analysis for V2 data source tables. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? This PR changes existing unit tests and adds a new case covering this bug. -- 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]
