Skip to content

Conversation

@wangyum
Copy link
Member

@wangyum wangyum commented Nov 13, 2023

What changes were proposed in this pull request?

Similar to SPARK-37922. We can remove the cast if it can safely up-cast in IsNotNull.

Why are the changes needed?

Improve the query performance.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit test.

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

No.

@github-actions github-actions bot added the SQL label Nov 13, 2023
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @wangyum .

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-45909][SQL] Remove the cast if it can safely up-cast in IsNotNull [SPARK-45909][SQL] Remove NumericType cast if it can safely up-cast in IsNotNull Nov 13, 2023
@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Nov 13, 2023

I revisied the title. Please let me know if it's wrong.

@dongjoon-hyun
Copy link
Member

Merged to master for Apache Spark 4.0.0.

@wangyum
Copy link
Member Author

wangyum commented Nov 14, 2023

Thank you @dongjoon-hyun The new PR title looks better than the previous one.

@wangyum wangyum deleted the SPARK-45909 branch November 14, 2023 00:06
@dongjoon-hyun
Copy link
Member

Thank you!

turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
… in `IsNotNull` (apache#253)

### What changes were proposed in this pull request?

Similar to SPARK-37922. We can remove the cast if it can safely up-cast in `IsNotNull`.

### Why are the changes needed?

Improve the query performance.

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

No.

### How was this patch tested?

Unit test.

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

No.

Closes apache#43785 from wangyum/SPARK-45909.

Authored-by: Yuming Wang <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit a6b089f)
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.

2 participants