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

LocalLimit.maxRows is defined incorrectly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      Description

      case class LocalLimit(limitExpr: Expression, child: LogicalPlan) extends UnaryNode {
        override def output: Seq[Attribute] = child.output
        override def maxRows: Option[Long] = {
          limitExpr match {
            case IntegerLiteral(limit) => Some(limit)
            case _ => None
          }
        }
      }
      

      This is simply wrong, since LocalLimit is only about partition level limits.

        Attachments

          Activity

            People

            • Assignee:
              rxin Reynold Xin
              Reporter:
              rxin Reynold Xin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: