Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3710

Make the 20 in-list optimization configurable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.8.0
    • Labels:
      None

      Description

      If Drill has more than 20 in-lists , Drill can do an optimization to convert that in-lists into a small hash table in memory, and then do a table join instead.
      This can improve the performance of the query which has many in-lists.
      Could we make "20" configurable? So that we do not need to add duplicate/junk in-list to make it more than 20.

      Sample query is :
      select count from table where col in (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gparai Gautam Parai
                Reporter:
                haozhu Hao Zhu
                Reviewer:
                Chun Chang
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: