You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 598756e
Browse filesBrowse the repository at this point in the historyBrowse files
chenjunwei
authored and
chenjunwei
committed
[fix](fe) Read connector statistics at the query snapshot
### What problem does this PR solve?
Issue Number: closeapache#69884
Related PR: apache#69904
Problem Summary: Ordinary external-table queries only consulted the table-keyed
row-count cache, which could keep a cold estimate after versioned connector
statistics completed. Prefer statistics at the statement's pinned snapshot for
ordinary and versioned queries, reuse the existing size/row-width fallback, and
forward the pinned snapshot through the Hive sibling gateway. This covers STAT-02.
### Release note
External-table optimizer estimates can use completed statistics for the query's
pinned snapshot without waiting for the table-only row-count cache to refresh.
### Check List (For Author)
- Test: Full FE build and Checkstyle; 114 FE core and 267 Hive tests; focused
compatibility run including 22 Paimon and 7 Iceberg tests; seven Delta p0 suites
on the combined change, including new filesystem/HMS/Hive cardinality coverage.
- Behavior changed: Yes, ordinary pinned queries prefer snapshot statistics.
- Does this need documentation: Yes, Delta connector README and prepared EN/ZH
website patch are updated in the accompanying statistics change; website PR pending.
Copy file name to clipboardExpand all lines: fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/HiveConnectorMetadata.java
Copy file name to clipboardExpand all lines: fe/fe-connector/fe-connector-hive/src/test/java/org/apache/doris/connector/hive/HiveConnectorMetadataSiblingDelegationTest.java
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -239,6 +239,9 @@ public void everyPerHandleMethodForwardsAForeignHandleToTheSibling() {
0 commit comments