[ https://issues.apache.org/jira/browse/PHOENIX-5611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Batyrshin updated PHOENIX-5611: ------------------------------------ Attachment: estSize.patch > Inaccurate MutationState numRows and estimatedSize counting > ----------------------------------------------------------- > > Key: PHOENIX-5611 > URL: https://issues.apache.org/jira/browse/PHOENIX-5611 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.14.2 > Reporter: Alex Batyrshin > Priority: Minor > Attachments: estSize.patch, numRows.patch > > > Hello, > I found that numRows decreased by HBase mutations count instead of SQL rows > count. In case of NULL in UPSERT there will be 1 SQL row == 2 HBase mutation. > UPSERT INTO test VALUES ('foo', NULL) => HBase Put Mutation + HBase Delete > Mutation > Also I found that estimatedSize could be calculated via > KeyValueUtil.getEstimatedRowMutationSize and via > RowMutationState.calculateEstimatedSize. Last one doesn't take into account > length of row keys, so result KeyValueUtil.getEstimatedRowMutationSize != > RowMutationState.calculateEstimatedSize -- This message was sent by Atlassian Jira (v8.3.4#803005)