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 08:45:00 UTC

[jira] [Created] (IMPALA-15488) Calcite planner: Fix integer TRUNC and ROUND calls

Aleksandr Efimov created IMPALA-15488:
-----------------------------------------

             Summary: Calcite planner: Fix integer TRUNC and ROUND calls
                 Key: IMPALA-15488
                 URL: https://issues.apache.org/jira/browse/IMPALA-15488
             Project: IMPALA
          Issue Type: Bug
            Reporter: Aleksandr Efimov
            Assignee: Aleksandr Efimov


Calcite rejects valid integer calls to TRUNC, TRUNCATE, DTRUNC, ROUND and DROUND. One-argument calls need the native DOUBLE result; two-argument calls need an implicit DECIMAL(p,0) operand and clamped scale. Fix both paths together. The candidate passes 24 focused tests and 80 HS2 checks with codegen off/on. Builds on IMPALA-15486; DECIMAL V1 remains unsupported.



--
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