Github user fhueske commented on a diff in the pull request:
    --- Diff: 
flink-core/src/main/java/org/apache/flink/types/parser/ ---
    @@ -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.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to