GitHub user wzhfy opened a pull request:
https://github.com/apache/spark/pull/17453
[SPARK-20124][SQL] Join reorder should keep the same order of final project
attributes
## What changes were proposed in this pull request?
Join reorder algorithm should keep exactly the same order of output
attributes in the top project.
For example, if user want to select a, b, c, after reordering, we should
output a, b, c in the same order as specified by user, instead of b, a, c or
other orders.
## How was this patch tested?
A new test case is added.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wzhfy/spark keepOrderInProject
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17453.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17453
----
commit 058dd7445b10a0064b3ea5114a5c70c622f02dbc
Author: wangzhenhua <[email protected]>
Date: 2017-03-28T07:06:05Z
Keep the same order of final output attributes.
----
---
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]