Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This patches renames RowOrdering to InterpretedOrdering and updates SortMergeJoin to use the SparkPlan methods for constructing its ordering so that it may benefit from codegen.

This is an updated version of #7408.

@JoshRosen
Copy link
Contributor Author

/cc @rxin @yhuai, this is needed to fix an issue that I found in my SMJ patch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we at a comment at https://github.com/apache/spark/pull/7973/files#diff-b669f8cf35f1d2d786582f4d8c49ed14R59 to explain the direction must be Ascending. So, the direction in requiredOrders is consistent with the direction we are using at here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this name also reflect its using Ascending?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(super minor)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, it could. I only left it as-is out of a desire to minimize changes. Can fix later.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it is totally fine to leave it as-is.

@yhuai
Copy link
Contributor

yhuai commented Aug 5, 2015

LGTM

@SparkQA
Copy link

SparkQA commented Aug 5, 2015

Test build #39915 has finished for PR 7973 at commit 34b8e0c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Aug 5, 2015

Test build #39918 has finished for PR 7973 at commit e610655.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

This passed on an earlier run and only failed the latest run due to a known flaky test, so I'm going to merge this to master and branch-1.5 in order to unblock work on my other patch.

asfgit pushed a commit that referenced this pull request Aug 5, 2015
…Ordering in SMJ

This patches renames `RowOrdering` to `InterpretedOrdering` and updates SortMergeJoin to use the `SparkPlan` methods for constructing its ordering so that it may benefit from codegen.

This is an updated version of #7408.

Author: Josh Rosen <[email protected]>

Closes #7973 from JoshRosen/SPARK-9054 and squashes the following commits:

e610655 [Josh Rosen] Add comment RE: Ascending ordering
34b8e0c [Josh Rosen] Import ordering
be19a0f [Josh Rosen] [SPARK-9054] [SQL] Rename RowOrdering to InterpretedOrdering; use newOrdering in more places.

(cherry picked from commit 9c87892)
Signed-off-by: Josh Rosen <[email protected]>
@asfgit asfgit closed this in 9c87892 Aug 5, 2015
@JoshRosen JoshRosen deleted the SPARK-9054 branch August 29, 2016 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants