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

Type of keys should be `BinaryRow` when manipulating map state with `BaseRow` as key type.

    XMLWordPrintableJSON

Details

    Description

      `BaseRow` is serialized and deserialized as `BinaryRow` by default, so when the key type of the map state is `BaseRow`, we should construct map keys with `BinaryRow` as type to get value from map state, otherwise, you would  always get Null...

      Try it with following SQL:

      // (b: Int, c: String)
      SELECT 
            b, listagg(DISTINCT c, '#')
      FROM MyTable
      GROUP BY b
      

       

      Attachments

        Issue Links

          Activity

            People

              icshuo Shuo Cheng
              icshuo Shuo Cheng
              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