Hocheol Na created HIVE-28744: --------------------------------- Summary: Wrong Int, Bigint type range estimation in estimateColStats Key: HIVE-28744 URL: https://issues.apache.org/jira/browse/HIVE-28744 Project: Hive Issue Type: Bug Components: Query Planning, Statistics Reporter: Hocheol Na Assignee: Hocheol Na Attachments: image-2025-02-07-10-29-14-137.png
The Int and Bigint type range estimation is wrong in estimateColStats. !image-2025-02-07-10-29-14-137.png|width=583,height=144! When `hive.stats.estimate` and `hive.stats.fetch.column.stats` are enabled and Int or bigint columns don't have col stats, incorrect ranges are used in the query plan, which returns the wrong num rows. e.g) If `\{BIGINT Type col} > INTEGER.MAX_VALUE` is in query, estimated numRows is always 0. -- This message was sent by Atlassian Jira (v8.20.10#820010)