jorisvandenbossche commented on a change in pull request #10060:
URL: https://github.com/apache/arrow/pull/10060#discussion_r623122752
##########
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:
I was going to comment that adding a similar function to `Fragment`
might also be nice, but I assume the user can now just do
`fragment.scanner().count_rows()` instead of `fragment.count_rows()` ?
--
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]