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

Undefined behavior in the conversion from DataStream/DataSet to Table

    XMLWordPrintableJSON

Details

    Description

      When we try to convert DataStream/DataSet to Table. There are two ways of adding schema information, ByName or ByPosition.

      This feature first proposed in this pr.

      In ByPosition mode, the current code does not check if the number of fields less than its in  DataStream/DataSet. This may cause undefined behavior, e.g. make a projection in ByPosition mode.

      We can either fix it by adding some checking or regard this as a feature and just improve the doc to clarify it. In my opinion, the latter way seems better.

      twalthr Could you take a look at it when you free?

      Attachments

        Issue Links

          Activity

            People

              hequn8128 Hequn Cheng
              guoyangze Yangze Guo
              Votes:
              0 Vote for this issue
              Watchers:
              5 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