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

Pushdown scalar-subquery filter to FileSourceScan

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 4.0.0
    • SQL
    • None

    Description

      We can pushdown a < (select max(d) from t2) to FileSourceScan:

      sql("CREATE TABLE t1 using parquet AS SELECT id AS a, id AS b FROM range(500000000L)")
      sql("CREATE TABLE t2 using parquet AS SELECT id AS d FROM range(20)")
      sql("SELECT * FROM t1 WHERE b = (select max(d) from t2)").show
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yumwang Yuming Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: