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

Push down limit through Dataset.isEmpty()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Push down LocalLimit can not optimize the case of distinct.

        def isEmpty: Boolean = withAction("isEmpty",
          withTypedPlan { LocalLimit(Literal(1), select().logicalPlan) }.queryExecution) { plan =>
          plan.executeTake(1).isEmpty
        }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: