Why does this throw an exception for the filtering mode? The reader mode 
doesn't matter to this. It either has a starting index and row count or it 
doesn't.

I think a better API would be to avoid throwing an exception by using Optional, 
Long/null, or -1 to signal that the page can't report this. Throwing an 
exception can cause a runtime error when an expectation isn't met, while 
returning an Option forces callers to handle the case where the option is empty.

[ Full content available at: https://github.com/apache/parquet-mr/pull/527 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to