[ https://issues.apache.org/jira/browse/FLINK-28338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561372#comment-17561372 ]
Martijn Visser commented on FLINK-28338: ---------------------------------------- I think what you're asking for is to enable the ability to override the JSON standard (where leading zeros are not allowed) by adding a configuration option in Flink to override that, which would use Jackson's {{ALLOW_LEADING_ZEROS_FOR_NUMBERS}} to be used. Are you using DataStream, Table, SQL or Python? > org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParseException: > Invalid numeric value: Leading zeroes not allowed > --------------------------------------------------------------------------------------------------------------------------------- > > Key: FLINK-28338 > URL: https://issues.apache.org/jira/browse/FLINK-28338 > Project: Flink > Issue Type: Improvement > Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile) > Affects Versions: 1.13.6 > Environment: flinksql 1.13.6 ,解析kafka里面的json数据含有 0 开头的变量值 > Reporter: wangkang > Priority: Minor > Attachments: image-2022-07-01-11-31-32-561.png > > > Caused by: > org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParseException: > Invalid numeric value: Leading zeroes not allowed > at [Source: (byte[])"\{"uuid":"1285","name":"杨YP","age":01,"ts":"2022-07-01 > 10:33:09.553","partition":"part8"}"; line: 1, column: 38] > at > org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2337) > !image-2022-07-01-11-31-32-561.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)