[
https://issues.apache.org/jira/browse/IMPALA-7242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16547181#comment-16547181
]
Anuj Phadke commented on IMPALA-7242:
-------------------------------------
Converting fromInt to a decimal16Val overflows with this particular query.
[https://github.com/apache/impala/blob/master/be/src/exprs/math-functions-ir.cc#L537]
And this leads to hitting the DCHECK later on line 566 if int256 is needed for
intermediate evaluations.
For - https://issues.apache.org/jira/browse/IMPALA-7243 the DCHECK does not get
triggered because needs_int256 is not false.
Current status -
I have a fix for this ready. Need to validate if adding this check does not
break anything. Will send out a fix soon.
> Dcheck fails in width_bucket() function
> ---------------------------------------
>
> Key: IMPALA-7242
> URL: https://issues.apache.org/jira/browse/IMPALA-7242
> Project: IMPALA
> Issue Type: Bug
> Components: Backend
> Affects Versions: Impala 3.1.0
> Reporter: Taras Bobrovytsky
> Assignee: Anuj Phadke
> Priority: Critical
>
> The following query hits a DCHECK:
> {code:java}
> select width_bucket(cast(-0.10 as decimal(37,30)), cast(-0.36028797018963968
> as decimal(25,25)), cast(9151517.4969773200562764155787276999832 as
> decimal(38,31)), 1328180220){code}
> Failed check:
> {code:java}
> math-functions-ir.cc:566] Check failed: overflow == false (1 vs. 0){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]