Hello Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/25110

to look at the new patch set (#4).

Change subject: IMPALA-15545: Estimate missing number of rows for Kudu tables
......................................................................

IMPALA-15545: 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.

Testing:
 - Added a new end-to-end test to verify we fixed the issue.

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
A testdata/workloads/functional-query/queries/QueryTest/calcite_kudu_stats.test
M tests/query_test/test_calcite_planner.py
4 files changed, 168 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/10/25110/4
--
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: newpatchset
Gerrit-Change-Id: I979be4b9333ac74b1a38ffb02c49aa981892e2b1
Gerrit-Change-Number: 25110
Gerrit-PatchSet: 4
Gerrit-Owner: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>

Reply via email to