AlenkaF commented on code in PR #46057:
URL: https://github.com/apache/arrow/pull/46057#discussion_r2034844303
##########
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:
Yeah, it is a bit confusing. Looking at the `Table.filter` method:
https://github.com/apache/arrow/blob/a5b2574208587464008127bbc85619562e6e85dd/python/pyarrow/table.pxi#L2199-L2219
and the `is_batch` variable defined in `_filter_table` I would think the
type should stay the same.
Will look into the C++ docs.
--
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]