You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Aleksandr Efimov (Jira)" <ji...@apache.org> on 2026/10/06 07:34:00 UTC

[jira] [Created] (IMPALA-15487) Original planner: Prevent zero-precision DECIMAL truncation

Aleksandr Efimov created IMPALA-15487:
-----------------------------------------

             Summary: Original planner: Prevent zero-precision DECIMAL truncation
                 Key: IMPALA-15487
                 URL: https://issues.apache.org/jira/browse/IMPALA-15487
             Project: IMPALA
          Issue Type: Bug
            Reporter: Aleksandr Efimov
            Assignee: Aleksandr Efimov


TRUNC(CAST(0.1 AS DECIMAL(1,1))) infers DECIMAL(0,0) in the Original planner and reaches a native precision assertion. TRUNCATE and DTRUNC are also affected with omitted, zero or negative scale, in DECIMAL V1 and V2. Use DECIMAL(1,0) when truncation removes all digits. A local frontend fix passes focused tests and 176 HS2 checks with codegen off/on. Separate from the Calcite return-type fix in IMPALA-15486.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org