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

Inject LocalLimitExec when matching OffsetAndLimit or LimitAndOffset

    XMLWordPrintableJSON

Details

    Description

      For queries containing both a LIMIT and an OFFSET in a subquery, physical translation will drop the `LocalLimit` planned in the optimizer stage by mistake; this manifests as larger than necessary shuffle sizes for `GlobalLimitExec`. Fix to not drop this node.

      Attachments

        Issue Links

          Activity

            People

              n-young-db Nick Young
              n-young-db Nick Young
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: