Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2106

Where IN clause performs in memory filtration with > 20 values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Let's say we have a query

      select id, name, somevalue from table where name in (...)
      

      SqlToRelConverter has the limitation of 20 items for IN-clause - and therefore query plans looks like TableScan with further EnumerableValues (that implies entire table load into the memory).

      In case with Mongo (and I think many other cases that contains huge amount of data) it could
      lead to OOM while native (for data source) IN is available .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vladimir.dolzhenko Vladimir Dolzhenko
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: