ihuzenko commented on a change in pull request #1955: DRILL-7491: Incorrect 
count() returned for complex types in parquet
URL: https://github.com/apache/drill/pull/1955#discussion_r366303787
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/physical/base/AbstractGroupScanWithMetadata.java
 ##########
 @@ -180,7 +180,7 @@ public long getColumnValueCount(SchemaPath column) {
     } else if (nonInterestingColStats != null) {
       tableRowCount = 
TableStatisticsKind.ROW_COUNT.getValue(getNonInterestingColumnsMetadata());
     } else {
-      return 0; // returns 0 if the column doesn't exist in the table.
+      return Statistic.NO_COLUMN_STATS;
 
 Review comment:
   Hello @arina-ielchiieva , thank you very much for describing the issue. I've 
updated this PR, please take another look. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to