spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adrian-wang <>
Subject [GitHub] spark pull request: [SPARK-2213] [SQL] sort merge join for spark s...
Date Tue, 14 Apr 2015 06:04:36 GMT
Github user adrian-wang commented on a diff in the pull request:
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/basicOperators.scala
    @@ -41,6 +41,15 @@ case class Project(projectList: Seq[NamedExpression], child: SparkPlan)
         val resuableProjection = buildProjection()
    +  /**
    +   * outputOrdering of Project is not always same with child's outputOrdering if the
    +   * key is pruned, however, if the key is pruned then we must not require child using
    +   * ordering from upper layer, only if the ordering would not be changed by a negative,
    +   * would be a way to keep the ordering.
    +   * TODO: we may utilize this feature later to avoid some unnecessary sorting.
    +   */
    +  override def outputOrdering: Option[Ordering[Row]] = None
    --- End diff --
    We still need to consider if the projectList contains a `-`, then the ordering would be
reverted. I think we may do that carefully, probably not in this PR.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message