[ https://issues.apache.org/jira/browse/FLINK-4268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15506205#comment-15506205 ]
ASF GitHub Bot commented on FLINK-4268: --------------------------------------- Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/2304#discussion_r79573034 --- Diff: flink-core/src/main/java/org/apache/flink/types/parser/BigDecParser.java --- @@ -120,7 +132,14 @@ public static final BigDecimal parseField(byte[] bytes, int startPos, int length throw new NumberFormatException("There is leading or trailing whitespace in the numeric field."); } - String str = new String(bytes, startPos, i); - return new BigDecimal(str); + final char[] reuse = new char[i]; --- End diff -- `reuse` is not reused here but created new in every method invocation. > Add a parsers for BigDecimal/BigInteger > --------------------------------------- > > Key: FLINK-4268 > URL: https://issues.apache.org/jira/browse/FLINK-4268 > Project: Flink > Issue Type: Improvement > Components: Table API & SQL > Affects Versions: 1.2.0 > Reporter: Timo Walther > Assignee: Timo Walther > > Since BigDecimal and BigInteger are basic types now. It would be great if we > also parse those. > FLINK-628 did this a long time ago. This feature should be reintroduced. -- This message was sent by Atlassian JIRA (v6.3.4#6332)