dtenedor opened a new pull request, #37430: URL: https://github.com/apache/spark/pull/37430
### What changes were proposed in this pull request? Add config to toggle whether to automatically add default values for INSERTs without user-specified fields. Example: ``` CREATE TABLE t (a INT DEFAULT 1, b INT DEFAULT 2) USING PARQUET; INSERT INTO t VALUES (42); ``` With the new config set to true, a following `SELECT * FROM t` returns `42, 2`. Otherwise, if the config is set to false, the `INSERT` command fails with an error message reporting that the table has two columns but the command only inserted one. ### Why are the changes needed? Depending on desired SQL semantics, it may be preferred to leave these INSERT commands as-is to prevent against accidental mistakes. ### Does this PR introduce _any_ user-facing change? Yes, see above. ### How was this patch tested? Updated unit test coverage. -- 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]
