Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-35553 Improve correlated subqueries
  3. SPARK-43308

Improve scalar subquery logic plan when result are literal

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5.0
    • None
    • SQL
    • None

    Description

      When use scalar subquery, sometimes we can get result before physical plan execute. 

      Like `select (select (count(1)) is null from r where a = c ) from l where a < 4`.

      The result alway be false. So we can skip unnecessary aggregate.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fanjia Jia Fan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: