[
https://issues.apache.org/jira/browse/CALCITE-6974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6974.
----------------------------------
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/36f6dddd894b8b79edeb568982251dec8c9d2fc0
Thank you for your contribution [~xuzifu666]
> Default typesystem has incorrect limits for DECIMAL for Presto/MySQL/Phoenix
> ----------------------------------------------------------------------------
>
> Key: CALCITE-6974
> URL: https://issues.apache.org/jira/browse/CALCITE-6974
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.39.0
> Reporter: Yu Xu
> Assignee: Yu Xu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.40.0
>
>
> Decimal precision not correctly in Presto/Mysql/Phoenix
> we can refer to:
> Mysql: [https://dev.mysql.com/doc/refman/8.4/en/fixed-point-types.html]
> The maximum number of digits for {{DECIMAL}} is 65
>
> Presto: [https://prestodb.io/docs/current/language/types.html#fixed-precision]
> Precision up to 38 digits
>
> Phoenix: [https://phoenix.apache.org/language/datatypes.html#decimal_type]
> The maximum precision is 38 digits
>
> we need to fix it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)