Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5120

Consider defaulting to partitioned join when no stats are available.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 2.9.0
    • Impala 2.9.0
    • Frontend
    • None

    Description

      We currently default to broadcast join when no stats are available, since the code estimates are both MAX_LONG and in the case of equal costs, broadcast wins. We should consider making partitioned join the default because it will use less memory.

      The code is here: https://github.com/apache/incubator-impala/blob/master/fe/src/main/java/org/apache/impala/planner/DistributedPlanner.java#L509

          && (node.getDistributionModeHint() == DistributionMode.BROADCAST
                  || (node.getDistributionModeHint() != DistributionMode.PARTITIONED
      && broadcastCost <= partitionCost)))
      

      Attachments

        Issue Links

          Activity

            People

              twmarshall Thomas Tauber-Marshall
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: