apurtell opened a new pull request, #2662: URL: https://github.com/apache/phoenix/pull/2662
Top-N and offset scanners pre-read rows at initialization, recording their scan metrics in a local context intended for HBase's RPC response. next() checks isFilterDone() before merging this local context into the active RPC context, so if all rows in a region are filtered out during scanner setup, next() exits immediately, discarding those initialization metrics before they can be recorded. As a result, queries that filter out entire regions severely underreport scan metrics such as ROWS_SCANNED and ROWS_FILTERED. The fix flushes the initialization metrics into the RPC context before checking isFilterDone(). This ensures scan metrics accounting is accurate across empty regions while preserving early-exit behavior and query results. -- 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]
