Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18993#discussion_r133971618
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ---
    @@ -1180,6 +1180,9 @@ object ConvertToLocalRelation extends 
Rule[LogicalPlan] {
           val projection = new InterpretedProjection(projectList, output)
           projection.initialize(0)
           LocalRelation(projectList.map(_.toAttribute), data.map(projection))
    +
    +    case Limit(IntegerLiteral(limit), LocalRelation(output, data)) =>
    --- End diff --
    
    technically this is not about correctness, `An action on a Command should 
not trigger a Spark job` is also kind of optimization.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to