-
Notifications
You must be signed in to change notification settings - Fork 28.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-38869][SQL] Respect table capability ACCEPT_ANY_SCHEMA in DEFA…
…ULT column resolution ### What changes were proposed in this pull request? Respect table capability ACCEPT_ANY_SCHEMA in DEFAULT column resolution by leaving such tables unchanged by any DEFAULT column resolution logic. ### Why are the changes needed? Tables with ACCEPT_ANY_SCHEMA capability declare themselves to accept inserted rows of any schema, so we should not add extra columns to INSERT VALUES lists or projections corresponding to any DEFAULT columns in the target table schema. ### Does this PR introduce _any_ user-facing change? Yes. ### How was this patch tested? This PR introduces new unit test coverage. Closes #36475 from dtenedor/default-any-schema. Authored-by: Daniel Tenedorio <daniel.tenedorio@databricks.com> Signed-off-by: Gengliang Wang <gengliang@apache.org>
- Loading branch information
1 parent
5d5e7f9
commit d27cf97
Showing
2 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters