[
https://issues.apache.org/jira/browse/HIVE-29275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18037673#comment-18037673
]
Thomas Rebele edited comment on HIVE-29275 at 11/12/25 10:14 AM:
-----------------------------------------------------------------
The {{equals}} and {{hashCode}} method are not reliable either. E.g., a Decimal
with number 30 and scale 1 represents the same number as a Decimal with number
3 and scale 0. However, the equals method considers them to be different, and
the hashCode will not be the same.
-I think we need a more general way in thrift to provide custom implementations
for certain methods.- BigDecimal's {{equals}} and {{hashCode}} considers 3 and
3.0 to be different numbers, too.
was (Author: thomas.rebele):
The {{equals}} and {{hashCode}} method are not reliable either. E.g., a Decimal
with number 30 and scale 1 represents the same number as a Decimal with number
3 and scale 0. However, the equals method considers them to be different, and
the hashCode will not be the same.
I think we need a more general way in thrift to provide custom implementations
for certain methods.
> Stats autogather calculates the min statistic incorrectly
> ---------------------------------------------------------
>
> Key: HIVE-29275
> URL: https://issues.apache.org/jira/browse/HIVE-29275
> Project: Hive
> Issue Type: Bug
> Affects Versions: 4.1.0, 4.0.1
> Reporter: Thomas Rebele
> Assignee: Thomas Rebele
> Priority: Major
> Labels: hive-4.2.0-candidate
>
> In stats_histogram.q autogather gets enabled and then rows are inserted into
> a newly created table. The minimum value for column e is
> [-123.2|https://github.com/apache/hive/blob/55d9ab7d6b00fa510be791b9de55974f61c90519/ql/src/test/queries/clientpositive/stats_histogram.q#L20].
> However, {{DESCRIBE FORMATTED test_stats e}} shows
> [-10.2|https://github.com/apache/hive/blob/55d9ab7d6b00fa510be791b9de55974f61c90519/ql/src/test/results/clientpositive/llap/stats_histogram.q.out#L364]
> as the minimum value.
> When executing {{ANALYZE TABLE test_stats COMPUTE STATISTICS FOR COLUMNS;}}
> before the {{DESCRIBE FORMATTED test_stats e}} command, the [min value is
> -123.2|https://github.com/thomasrebele/hive/commit/2be9bef2851028678fa6752f7482080b3d201a51#diff-436ceeced7ea88c3ad4d931cfbf3d09feb838eef368a74ca8106d378209b1209L262-L364]
> as expected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)