You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/07/27 11:48:33 UTC

[GitHub] arina-ielchiieva commented on a change in pull request #1406: DRILL-6641: Fix columnValueCounts in ParquetGroupScanStatistics when ParquetGroupScan has RowGroupInfo without column statistics

arina-ielchiieva commented on a change in pull request #1406: DRILL-6641: Fix columnValueCounts in ParquetGroupScanStatistics when ParquetGroupScan has RowGroupInfo without column statistics
URL: https://github.com/apache/drill/pull/1406#discussion_r205748264
 
 

 ##########
 File path: exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetGroupScanStatistics.java
 ##########
 @@ -88,19 +88,21 @@ public void collect(List<RowGroupInfo> rowGroupInfos, ParquetTableMetadataBase p
       for (ColumnMetadata column : rowGroup.getColumns()) {
         SchemaPath schemaPath = SchemaPath.getCompoundPath(column.getName());
         Long previousCount = columnValueCounts.get(schemaPath);
+        Long newCount;
 
 Review comment:
   @vvysotskyi definitely case worth fixing! 
   Maybe we can optimize `if (previousCount != null)` to something like `prevoiusCount == null ? 0 : previousCount`? This would help to remove else part and duplicated logic.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services