Karan Mehta created PHOENIX-4954: ------------------------------------ Summary: RowCounter logic for DefaultStatisticsCollector is incorrect for tables with multiple CF Key: PHOENIX-4954 URL: https://issues.apache.org/jira/browse/PHOENIX-4954 Project: Phoenix Issue Type: Bug Reporter: Karan Mehta
{{DefaultStatisticsCollector#collectStatistics()}} method increments a counter to keep track of unique rows that has been read. However, currently we increment the counter twice for a table with two column families. Since the row key remains same across CF's, the counter should be incremented once only. {{famMap}} is the local variable to keep track of CF's seen so far across all cells from the result. The relevant piece of code is: {code:java} if (famMap.get(cfKey) == null) { famMap.put(cfKey, true); gps.getSecond().incrementRowCount(); } {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)