[
https://issues.apache.org/jira/browse/IMPALA-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tim Armstrong updated IMPALA-4940:
----------------------------------
Fix Version/s: Impala 2.11.0
> DECIMAL V2 multiply result type
> -------------------------------
>
> Key: IMPALA-4940
> URL: https://issues.apache.org/jira/browse/IMPALA-4940
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 2.9.0
> Reporter: Dan Hecht
> Assignee: Taras Bobrovytsky
> Priority: Major
> Fix For: Impala 2.11.0
>
>
> Similar to IMPALA-4370 but for multiply. Impala's current multiply result
> type is:
> {code}
> rP = P1 + P2
> rS = S1 + S2
> If (rP > 38) then
> rP = 38
> rS = min(38, rS)
> {code}
> The proposed result type under V2 is:
> {code}
> rP = P1 + P2 + 1
> rS = S1 + S2
> // createAdjustedDecimalType()
> If (rP > 38) then
> minS = min(rS, 6)
> rS = rS - (rP - 38)
> rS = max(minS, rS)
> rP = 38
> {code}
> However, in order for this to be useful, we need to fix IMPALA-4939.
> Otherwise, we can't actually compute values that need the new result type
> anyway.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]