[
https://issues.apache.org/jira/browse/KYLIN-5783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17834935#comment-17834935
]
pengfei.zhan commented on KYLIN-5783:
-------------------------------------
h1. Design
Add a new configuration item kylin.query.round-decimal-zero, true means ignore
the precision of Decimal 0, convert any 0.0, 0.00, 0.0000, etc. to 0, false
means don't convert, keep the original logic. The default is false, which
supports project-level configuration. Project level configuration practice is
dirty, do not support project level configuration.
Model response is handled by sparder, so new type conversion logic is added in
SparderTypeUtil, only the columns with data type decimal, return value
BigDecimal and value 0 are converted; downward pressure hive is converted to
the columns with return value BigDecimal and value 0. The above conversion only
takes effect when the configuration item is turned on.
> Round query result of decimal zero by config
> --------------------------------------------
>
> Key: KYLIN-5783
> URL: https://issues.apache.org/jira/browse/KYLIN-5783
> Project: Kylin
> Issue Type: Improvement
> Components: Query Engine
> Affects Versions: 5.0-beta
> Reporter: pengfei.zhan
> Assignee: pengfei.zhan
> Priority: Minor
> Fix For: 5.0-beta
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)