yaooqinn commented on PR #54517: URL: https://github.com/apache/spark/pull/54517#issuecomment-3976382498
Thanks for the feedback @cloud-fan @gengliangwang @dongjoon-hyun! Updated the PR to make the NOT NULL enforcement **opt-in** (non-default): - `spark.sql.legacy.allowNullInsertForFileSourceTables` now defaults to `true` (legacy behavior: silently accept nulls) - Users who want strict enforcement set it to `false` - This follows the same pattern as `spark.sql.streaming.fileSource.schema.forceNullable` for streaming file sources - No change in default behavior for 4.2 The catalog schema preservation in `CreateDataSourceTableCommand` is always active (it correctly stores the user-specified schema), but the null check in `PreprocessTableInsertion` is gated behind the config. -- 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]
