Skip to content

[SPARK-51051][SQL]Add an optional parameter for array_position function to specify starting index for matching. #51317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

konjac
Copy link

@konjac konjac commented Jun 29, 2025

What changes were proposed in this pull request?

Add an optional parameter for array_position function to specify starting index for matching.

Why are the changes needed?

Provide the functionality like Postgresql supporting the third parameter (https://www.postgresql.org/docs/17/functions-array.html )

Does this PR introduce any user-facing change?

New capability to support the third parameter in the array_position function to specify starting index for matching.

How was this patch tested?

Add test cases to existing UTs.

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

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant