Open LeonYoah opened 4 months ago
In addition, if the value of the partition field is null,hive also reports a null pointer when concatenating partition paths, and c_date=null is concatenated. Theoretically, a default partition value should be given, such as c_date=__DEFAULT_PARTITION__
I recall the processing logic :[StringUtils.isBlank(jsonNode.asText())], which causes the map and array types to return null
Search before asking
What happened
This is my json,c_date field passed an empty string:{"id":123456789012345,"c_map":{"key1":1,"key2":2,"key3":3},"c_array":[1,2,3,4,5],"c_string":"","c_boolean":true,"c_tinyint":127,"c_smallint":32767,"c_int":2147483647,"c_bigint":9223372036854775807,"c_float":3.14,"c_double":1.7976931348623157E308,"c_decimal":12345.67,"c_bytes":"","c_date":"","c_timestamp":""};I found that if you pass an empty string, the DATE and DATETIME types are reported as null pointer exceptions。 I think we should intercept the empty string here and set it to null: [jsonNode == null || jsonNode.isNull() || jsonNode.isMissingNode() || StringUtils.isBlank(jsonNode.asText())]
SeaTunnel Version
dev
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
dev
Java or Scala Version
1.8
Screenshots
No response
Are you willing to submit PR?
Code of Conduct