Skip to content

[AURON #1574]Implement native function of find_in_set(81)#1575

Closed
guixiaowen wants to merge 1 commit intoapache:masterfrom
guixiaowen:find_in_set
Closed

[AURON #1574]Implement native function of find_in_set(81)#1575
guixiaowen wants to merge 1 commit intoapache:masterfrom
guixiaowen:find_in_set

Conversation

@guixiaowen
Copy link
Contributor

@guixiaowen guixiaowen commented Nov 2, 2025

Which issue does this PR close?

Closes #1574 1574

Rationale for this change

Convert Spark's built-in function find_in_set to execute as a native function.

Spark function name:
find_in_set

Method description:

find_in_set(str, str_array) - Returns the index (1-based) of the given string (str) in the comma-delimited list (str_array). Returns 0, if the string was not found or if the given string (str) contains a comma.

Examples:

SELECT find_in_set('ab','abc,b,ab,c,def');
3

What changes are included in this PR?

The Spark built-in function find_in_set is converted to f::unicode::find_in_set()

Are there any user-facing changes?

How was this patch tested?

UT

@guixiaowen guixiaowen marked this pull request as draft November 2, 2025 12:00
guixiaowen pushed a commit to guixiaowen/blaze that referenced this pull request Nov 2, 2025
@guixiaowen guixiaowen marked this pull request as ready for review November 2, 2025 17:46
@guixiaowen guixiaowen closed this Nov 3, 2025
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.

Implement native function of find_in_set(81)

1 participant