Skip to content

Conversation

@beliefer
Copy link
Contributor

What changes were proposed in this pull request?

This PR proposes to add the LPAD and RPAD pushdown support for H2.

Why are the changes needed?

#49325 added the support for RPAD pushdown.
H2 as a built-in JDBC dialect for the test purpose, should add the LPAD and RPAD pushdown support for H2.

Does this PR introduce any user-facing change?

'Yes'.
Spark will supports pushdown for LPAD and RPAD for H2.

How was this patch tested?

GA>

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

'No'.

@github-actions github-actions bot added the SQL label Feb 24, 2025
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-50692] Add the LPAD and RPAD pushdown support for H2 [SPARK-50692][SQL] Add the LPAD and RPAD pushdown support for H2 Feb 24, 2025
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, @beliefer .
Merged to master for Apache Spark 4.1.0.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-50692][SQL] Add the LPAD and RPAD pushdown support for H2 [SPARK-50692][SQL][FOLLOWUP] Add the LPAD and RPAD pushdown support for H2 Feb 24, 2025
@dongjoon-hyun
Copy link
Member

Oh, did you aim to use this as a follow-up, @beliefer ?

dongjoon-hyun pushed a commit that referenced this pull request Feb 24, 2025
### What changes were proposed in this pull request?
This PR proposes to add the `LPAD` and `RPAD` pushdown support for H2.

### Why are the changes needed?
#49325 added the support for `RPAD` pushdown.
H2 as a built-in JDBC dialect for the test purpose, should add the `LPAD` and `RPAD` pushdown support for H2.

### Does this PR introduce _any_ user-facing change?
'Yes'.
Spark will supports pushdown for `LPAD` and `RPAD` for H2.

### How was this patch tested?
GA>

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

Closes #50068 from beliefer/SPARK-50692.

Authored-by: beliefer <beliefer@163.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit ea15a95)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member

Please don't forget [FOLLOWUP] in the PR title next time, @beliefer . Or, please use a new JIRA ID.

@beliefer
Copy link
Contributor Author

Oh, did you aim to use this as a follow-up, @beliefer ?

Uh, I forgot it. I want it to be a follow-up.

@beliefer
Copy link
Contributor Author

@dongjoon-hyun Thank you!

zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
### What changes were proposed in this pull request?
This PR proposes to add the `LPAD` and `RPAD` pushdown support for H2.

### Why are the changes needed?
apache#49325 added the support for `RPAD` pushdown.
H2 as a built-in JDBC dialect for the test purpose, should add the `LPAD` and `RPAD` pushdown support for H2.

### Does this PR introduce _any_ user-facing change?
'Yes'.
Spark will supports pushdown for `LPAD` and `RPAD` for H2.

### How was this patch tested?
GA>

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

Closes apache#50068 from beliefer/SPARK-50692.

Authored-by: beliefer <beliefer@163.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 6cc7a40)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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