7236e759c9
## What changes were proposed in this pull request? For the function ```def array_contains(column: Column, value: Any): Column ``` , if we pass the `value` parameter as a Column type, it will yield a runtime exception. This PR proposes a pattern matching to detect if `value` is of type Column. If yes, it will use the .expr of the column, otherwise it will work as it used to. Same thing for ```array_position, array_remove and element_at``` functions ## How was this patch tested? Unit test modified to cover this code change. Ping ueshin Author: Chongguang LIU <chong@Chongguangs-MacBook-Pro.local> Closes #21581 from chongguang/SPARK-24574. |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |