This PR introduces a new function empty as alias of array_empty, to check if an array is empty, returning a boolean.
What changes are included in this PR?
Added the empty function.
Updated the Python bindings in functions.py and provided unit tests for empty in test_functions.py.
Updated the documentation (expressions.rst) to include examples on how to use the new empty function.
Are there any user-facing changes?
The array_empty function is now available for users working with arrays. It is exposed both in Rust and Python, allowing users to check whether arrays are empty within their DataFusion queries.
Which issue does this PR close?
Completes a task in #463
Rationale for this change
This PR introduces a new function
empty
as alias of array_empty, to check if an array is empty, returning a boolean.What changes are included in this PR?
Added the empty function. Updated the Python bindings in functions.py and provided unit tests for empty in test_functions.py. Updated the documentation (expressions.rst) to include examples on how to use the new empty function.
Are there any user-facing changes?
The array_empty function is now available for users working with arrays. It is exposed both in Rust and Python, allowing users to check whether arrays are empty within their DataFusion queries.
There are no breaking changes to public APIs.