Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16220

JsonRowSerializationSchema throws cast exception : NullNode cannot be cast to ArrayNode

    XMLWordPrintableJSON

    Details

      Description

      It's because the object reuse. For the below schema:

      create table sink {
        col1 int,
        col2 array<int>
      }

      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 Wu Timo Walther 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                libenchao Benchao Li
                Reporter:
                libenchao Benchao Li
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m