[
https://issues.apache.org/jira/browse/HIVE-27165?focusedWorklogId=852376&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-852376
]
ASF GitHub Bot logged work on HIVE-27165:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Mar/23 02:41
Start Date: 23/Mar/23 02:41
Worklog Time Spent: 10m
Work Description: DanielZhu58 opened a new pull request, #4141:
URL: https://github.com/apache/hive/pull/4141
### What changes were proposed in this pull request?
The order of index TAB_COL_STATS_IDX and PCS_STATS_IDX in hive-schema is
changed.
### Why are the changes needed?
Because the precious index order is not hit by metastore query. That would
cause slowness when we run the query.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Unit tests and pre-commit tests.
Issue Time Tracking
-------------------
Worklog Id: (was: 852376)
Remaining Estimate: 0h
Time Spent: 10m
> PART_COL_STATS metastore query not hitting the index
> ----------------------------------------------------
>
> Key: HIVE-27165
> URL: https://issues.apache.org/jira/browse/HIVE-27165
> Project: Hive
> Issue Type: Improvement
> Reporter: Hongdan Zhu
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The query located here:
> [https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/CompactionTxnHandler.java#L1029-L1032]
> is not hitting an index. The index contains CAT_NAME whereas this query does
> not. This was a change made in Hive 3.0, I think.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)