https://github.com/apache/spark
Revision 2b0c3e12636b93758879ee3ff23626ea1f218264 authored by Rui Wang on 09 January 2024, 01:07:34 UTC, committed by Wenchen Fan on 09 January 2024, 01:07:49 UTC
### What changes were proposed in this pull request?

Before SPARK-43529, there was a check from `visitPropertyKeyValues` that throws for null values for option keys. After SPARK-43529, a new function is used to support expressions in options but the new function lose the check.

This PR adds the check back.

### Why are the changes needed?

Throw exception when a option value is null.

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

UT

### Was this patch authored or co-authored using generative AI tooling?

NO

Closes #44615 from amaliujia/fix_create_table_options.

Lead-authored-by: Rui Wang <rui.wang@databricks.com>
Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit e7536f2484afce412256bf711452acde8df5a287)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
1 parent 75b567d
History
Tip revision: 2b0c3e12636b93758879ee3ff23626ea1f218264 authored by Rui Wang on 09 January 2024, 01:07:34 UTC
[SPARK-46610][SQL] Create table should throw exception when no value for a key in options
Tip revision: 2b0c3e1

README.md

back to top