koenvo commented on code in PR #46057:
URL: https://github.com/apache/arrow/pull/46057#discussion_r2034836989


##########
python/pyarrow/acero.py:
##########
@@ -374,7 +374,7 @@ def _filter_table(table, expression):
         Declaration("filter", options=FilterNodeOptions(expression))
     ])
     result = decl.to_table(use_threads=True)
-    if is_batch:
+    if is_batch and result.num_rows > 0:

Review Comment:
   Ah I should have updated the docstring. The original implementation (without 
my change) returns a RecordBatch when the input is a RecordBatch.



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to