[ https://issues.apache.org/jira/browse/FLINK-28338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561328#comment-17561328 ]
wangkang commented on FLINK-28338: ---------------------------------- The solution is to add a spring jackson. parser. Allow numeric leading zeros = true. You can also use datastream to resolve data types without using flinksql > 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: BuildSystem / Shaded > 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)