zhaorongsheng opened a new pull request, #67725:
URL: https://github.com/apache/doris/pull/67725
### What problem does this PR solve?
Issue Number: close #67724
Related PR: None
Problem Summary: Hive partition pruning previously built the generic
partition view by enumerating every HMS partition name before applying
selective predicates. For highly partitioned tables, planning therefore
depended on a full metastore listing. This change defers eager materialization
for plain Hive tables, translates safe equality and IN partition predicates
into the connector filter grammar during logical partition pruning, and builds
the selected-partition map from HMS `get_partitions_by_filter` results. The
existing full-list local pruning path remains the fallback when the HMS API or
filter dialect is unavailable.
### Release note
Improve planning latency for selective Hive partition queries when HMS
supports `get_partitions_by_filter`.
### Check List (For Author)
- Test: Unit Test
- `HiveConnectorMetadataPartitionPruningTest` (16 tests)
- `git diff --check`
- FE core checkstyle passed; full FE core compilation is currently
blocked by pre-existing generated parser/proto source mismatches.
- Behavior changed: Yes (selective Hive partition predicates can be
materialized through HMS before generic partition pruning)
- Does this need documentation: No
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]