Skip to content

Conversation

@amaliujia
Copy link
Contributor

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

@github-actions github-actions bot added the SQL label Jan 6, 2024
@amaliujia
Copy link
Contributor Author

@cloud-fan

…er/AstBuilder.scala

Co-authored-by: Maxim Gekk <max.gekk@gmail.com>
@amaliujia
Copy link
Contributor Author

@cloud-fan tests all green

@cloud-fan
Copy link
Contributor

thanks, merging to master/3.5!

@cloud-fan cloud-fan closed this in e7536f2 Jan 9, 2024
cloud-fan added a commit that referenced this pull request Jan 9, 2024
…for a key in options

### 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 e7536f2)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
…for a key in options

### 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 apache#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 e7536f2)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants