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

JsonRowSerializationSchema throws cast exception : NullNode cannot be cast to ArrayNode

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            libenchao Benchao Li
            libenchao Benchao Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 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

                Slack

                  Issue deployment