[ 
https://issues.apache.org/jira/browse/FLINK-16220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jark Wu resolved FLINK-16220.
-----------------------------
    Resolution: Fixed

Fixed in 
 - master (1.11.0): 0619a5b3e000855f00d11e71ae2f1b9deef05c98
 - 1.10.1: 4cde4be46213b73dcb90864b103c61caa0e22666

> JsonRowSerializationSchema throws cast exception : NullNode cannot be cast to 
> ArrayNode
> ---------------------------------------------------------------------------------------
>
>                 Key: FLINK-16220
>                 URL: https://issues.apache.org/jira/browse/FLINK-16220
>             Project: Flink
>          Issue Type: Bug
>          Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
>            Reporter: Benchao Li
>            Assignee: Benchao Li
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.1, 1.11.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> It's because the object reuse. For the below schema:
> {code:java}
> create table sink {
>   col1 int,
>   col2 array<int>
> }{code}
> if col2 is null, then the reused object will be {{NullNode}}. for the next 
> record, if it's not null, we will cast the reused object {{NullNode}} to 
> {{ArrayNode}}, which will throw cast exception.
>  
> cc [~jark] [~twalthr] 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to