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

RowData's row kind do not assigned from input row data when sink code generate and physical type info is pojo type

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      I use tuple type and pojo type to test retract stream, the test data is same and when i use 

      toRetractStream(Table table, Class<T> clazz) api, the retract msg become to insert msg from sink conversion. I found the SinkCodeGenerator object did not give a row kind to afterIndexModify variable, so the delete msg become insert msg when it comes into processElement function generator by SinkCodeGenerator.

      At last i add line of code like the pic in attachment and it works, so is it a bug? 

       

       

       

      Attachments

        Activity

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

          People

            lzy3261944 luoziyu
            lzy3261944 luoziyu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment