Skip to content

Commit d410e06

Browse files
uros-dbcloud-fan
authored andcommitted
[SPARK-48282][SQL][FOLLOWUP] Fix FindInSet code generation
### What changes were proposed in this pull request? Fix codeGen path for FindInSet. ### Why are the changes needed? Error in original PR (#46682), caught by: #46801. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing tests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #47179 from uros-db/fix-findinset. Authored-by: Uros Bojanic <157381213+uros-db@users.noreply.github.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
1 parent b8cc91c commit d410e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/unsafe/src/main/java/org/apache/spark/sql/catalyst/util/CollationSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public static String genCode(final String word, final String set, final int coll
332332
if (collation.supportsBinaryEquality) {
333333
return String.format(expr + "Binary(%s, %s)", word, set);
334334
} else {
335-
return String.format(expr + "execCollationAware(%s, %s, %d)", word, set, collationId);
335+
return String.format(expr + "CollationAware(%s, %s, %d)", word, set, collationId);
336336
}
337337
}
338338
public static int execBinary(final UTF8String word, final UTF8String set) {

0 commit comments

Comments
 (0)