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

Don't translate IN with Literals to JOIN with VALUES for streaming queries

    XMLWordPrintableJSON

Details

    Description

      IN predicates with literals are translated to JOIN with VALUES if the number of elements in the IN clause exceeds a certain threshold. This should not be done, because a streaming join is very heavy and materializes both inputs (which is fine for the VALUES) input but not for the other.

      There are two ways to solve this:

      1. don't translate IN to a JOIN at all
      2. translate it to a JOIN but have a special join strategy if one input is bound and final (non-updating)

      Option 1. should be easy to do, option 2. requires much more effort.

      Attachments

        Issue Links

          Activity

            People

              hequn8128 Hequn Cheng
              fhueske Fabian Hueske
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: