You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Pua (Jira)" <ji...@apache.org> on 2020/08/25 12:23:00 UTC

[jira] [Created] (FLINK-19050) Doc of MAX_DECIMAL_PRECISION should be DECIMAL

Pua created FLINK-19050:
---------------------------

             Summary: Doc of MAX_DECIMAL_PRECISION should be DECIMAL
                 Key: FLINK-19050
                 URL: https://issues.apache.org/jira/browse/FLINK-19050
             Project: Flink
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 1.11.1
            Reporter: Pua


{code:java}
// Define MAX/MIN precision of TIMESTAMP type according to PostgreSQL docs:
// https://www.postgresql.org/docs/12/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL
private static final int MAX_DECIMAL_PRECISION = 1000;
private static final int MIN_DECIMAL_PRECISION = 1;
{code}
[https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/dialect/PostgresDialect.java#L43]

the doc of decimal precision constants should be DECIMAL not  TIMESTAMP



--
This message was sent by Atlassian Jira
(v8.3.4#803005)