Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19419

Unable to detect all the cases of cartesian products when spark.sql.crossJoin.enabled is false

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:

      Description

      The existing detection is unable to cover all the cartesian product cases. For example,

      • Case 1) having non-equal predicates in join conditiions of an inner join.
      • Case 2) equi-join's key columns are not sortable and both sides are not small enough for broadcasting.

      This PR is to move the cross-join detection back to `BroadcastNestedLoopJoinExec` and `CartesianProductExec`.

        Attachments

          Activity

            People

            • Assignee:
              smilegator Xiao Li
              Reporter:
              smilegator Xiao Li
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: