kosiew opened a new pull request, #931:
URL: https://github.com/apache/datafusion-python/pull/931
# Which issue does this PR close?
Completes a task in #463
# Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in
the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your
changes and offer better suggestions for fixes.
-->
This PR introduces a new function, array_empty, to check if an array is
empty, returning a boolean.
# What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is
sometimes worth providing a summary of the individual changes in this PR.
-->
Added the array_empty function.
Updated the Python bindings in functions.py and provided unit tests for
array_empty in test_functions.py.
Updated the documentation (expressions.rst) to include examples on how to
use the new array_empty function.
# Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
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.
<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]