Fang-Yu Rao has uploaded this change for review. ( http://gerrit.cloudera.org:8080/25110
Change subject: IMPALA-15545: [WIP] Estimate missing number of rows for Kudu tables ...................................................................... IMPALA-15545: [WIP] Estimate missing number of rows for Kudu tables Before this patch, in CalciteTable, when a Kudu table (KuduTable or LocalKuduTable) has no pre-computed HMS stats, table_.getNumRows() returns -1. The constructor only populated estimatedMissingStats_ for FeFsTable, leaving it null for Kudu tables. This caused getRowCount() to fail when we tried to join a Kudu table with other tables. This fixes the issue by mirroring classic planner's Kudu fallback in KuduScanNode: use HMS stats when available, otherwise fetch Kudu's live row count so that getRowCount() of a Kudu table won't fail. Change-Id: I979be4b9333ac74b1a38ffb02c49aa981892e2b1 Assisted-by: Composer 2.5 (Cursor) --- A fe/src/main/java/org/apache/impala/planner/KuduEstimatedMissingTableStats.java M java/calcite-planner/src/main/java/org/apache/impala/calcite/schema/CalciteTable.java 2 files changed, 103 insertions(+), 12 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/10/25110/1 -- To view, visit http://gerrit.cloudera.org:8080/25110 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I979be4b9333ac74b1a38ffb02c49aa981892e2b1 Gerrit-Change-Number: 25110 Gerrit-PatchSet: 1 Gerrit-Owner: Fang-Yu Rao <[email protected]>
