spark
spark copied to clipboard
[SPARK-40314][SQL][PYTHON] Add scala and python bindings for inline and inline_outer
What changes were proposed in this pull request?
Adds Scala and Python bindings for SQL functions inline and inline_outer
Why are the changes needed?
Currently these functions can only be used via SQL or through expr
functions. This makes it a little easier to use them with the DataFrame APIs.
Does this PR introduce any user-facing change?
Exposes new functions directly instead of only through SQL.
How was this patch tested?
Updated existing inline tests to use the new Scala binding instead of being called through SQL expressions
Can one of the admins verify this patch?
also, what about adding some tests in python/pyspark/sql/tests/test_functions.py
?
also, what about adding some tests in
python/pyspark/sql/tests/test_functions.py
?
Thought I found all the places there were explode tests to add inline as well but missed these somehow, I'll add one
Merged into master, thanks all!