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

Push limit 1 to right side if join type is LeftSemiOrAnti and join condition is empty

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      Example:

      spark.range(10000).write.saveAsTable("t1")
      spark.sql("select * from (select id, '1' as type from t1) where type in (select cast(1 as string) from range(100))").show
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: