This is an automated email from the ASF dual-hosted git repository.

cgivre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git


The following commit(s) were added to refs/heads/master by this push:
     new 98378a9  DRILL-7952: Fix Scan Stats for Mongo Plugin (#2262)
98378a9 is described below

commit 98378a992034b9d101fa010547fe6c5a78dbf7db
Author: Charles S. Givre <[email protected]>
AuthorDate: Thu Jun 17 15:45:38 2021 -0400

    DRILL-7952: Fix Scan Stats for Mongo Plugin (#2262)
---
 .../src/main/java/org/apache/drill/exec/store/mongo/MongoGroupScan.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/contrib/storage-mongo/src/main/java/org/apache/drill/exec/store/mongo/MongoGroupScan.java
 
b/contrib/storage-mongo/src/main/java/org/apache/drill/exec/store/mongo/MongoGroupScan.java
index 5867a72..8b57012 100644
--- 
a/contrib/storage-mongo/src/main/java/org/apache/drill/exec/store/mongo/MongoGroupScan.java
+++ 
b/contrib/storage-mongo/src/main/java/org/apache/drill/exec/store/mongo/MongoGroupScan.java
@@ -508,7 +508,7 @@ public class MongoGroupScan extends AbstractGroupScan 
implements
         String json = collection.find().first().toJson(codec);
         approxDiskCost = json.getBytes().length * recordCount;
       }
-      return new ScanStats(GroupScanProperty.EXACT_ROW_COUNT, recordCount, 1, 
approxDiskCost);
+      return new ScanStats(GroupScanProperty.ESTIMATED_TOTAL_COST, 
recordCount, 1, approxDiskCost);
     } catch (Exception e) {
       throw new DrillRuntimeException(e.getMessage(), e);
     }

Reply via email to