lidavidm commented on a change in pull request #10060:
URL: https://github.com/apache/arrow/pull/10060#discussion_r623139878
##########
File path: python/pyarrow/_dataset.pyx
##########
@@ -2838,6 +2838,13 @@ cdef class Scanner(_Weakrefable):
result = self.scanner.Head(num_rows)
return pyarrow_wrap_table(GetResultValue(result))
+ def count_rows(self):
+ """Count rows matching the scanner filter."""
Review comment:
They can, yes. However I could add the helper function to Fragment for
consistency (and I think there are a number of other helper functions that I
could also add).
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]