[
https://issues.apache.org/jira/browse/KYLIN-6043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928345#comment-17928345
]
Guoliang Sun commented on KYLIN-6043:
-------------------------------------
h3. Root Cause & Dev Design
Unify the Truncate logic and remove redundant implementations.
Known limitations of this solution:
The usage form of truncate(Column, Column) is restricted by Spark's
BinaryExpression logic. The dataType cannot dynamically adjust each return type
based on the actual value of the second parameter's column. Therefore, the type
of the first parameter will still be used. However, this usage form is expected
to be uncommon.
> Query truncate decimal type, precision loss
> -------------------------------------------
>
> Key: KYLIN-6043
> URL: https://issues.apache.org/jira/browse/KYLIN-6043
> Project: Kylin
> Issue Type: Bug
> Affects Versions: 5.0.0
> Reporter: Guoliang Sun
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)