Uh oh!
There was an error while loading. Please reload this page.
[SPARK-20356][SQL] Pruned InMemoryTableScanExec should have correct output partitioning and ordering - #17679
[SPARK-20356][SQL] Pruned InMemoryTableScanExec should have correct output partitioning and ordering#17679viirya wants to merge 1 commit into
Conversation
viirya
commented
Apr 19, 2017
SparkQA
commented
Apr 19, 2017
Test build #75927 has finished for PR 17679 at commit
|
SparkQA
commented
Apr 19, 2017
Test build #75926 has finished for PR 17679 at commit
|
dilipbiswal
commented
Apr 19, 2017
@viirya Thank you for a quick fix. The change looks good to me. I have a question. Before the fix, we changed the output partitioning of relation's child. But how come it was not reflected on the plan ? If it was reflected on the plan then we could quickly figure out whats wrong ? Here is the plan before this fix. Is there any indication on the plan that partitioning info got changed ? Just want to learn :-) |
viirya
commented
Apr 19, 2017
@dilipbiswal As outputPartitioning/Ordering is not one of arguments of query plan, it won't be shown in the string representation. |
dilipbiswal
commented
Apr 19, 2017
@viirya Ok.. thank you. |
viirya
commented
Apr 19, 2017
Btw, you can sense there might be a problem since the difference of output between |
dilipbiswal
commented
Apr 19, 2017
@viirya Isn't that a normal thing simon due to column pruning ? Is that stuff tied to partitioning somehow ? |
viirya
commented
Apr 19, 2017
Oh, as the outputPartitioning/Ordering is strongly related to output, so when the output is changed, it quite indicates the partitioning/ordering can be wrong. |
dilipbiswal
commented
Apr 19, 2017
@viirya i see. Thanks :-) |
cloud-fan
commented
Apr 19, 2017
will we return invalid |
viirya
commented
Apr 19, 2017
@cloud-fan I've raised similar question before in a PR. I remember I got an answer that an invalid |
viirya
commented
Apr 19, 2017
A similar example is |
…utput partitioning and ordering ## What changes were proposed in this pull request? The output of `InMemoryTableScanExec` can be pruned and mismatch with `InMemoryRelation` and its child plan's output. This causes wrong output partitioning and ordering. ## How was this patch tested? Jenkins tests. Please review http://spark.apache.org/contributing.html before opening a pull request. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes#17679 from viirya/SPARK-20356. (cherry picked from commit 773754b) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
cloud-fan
commented
Apr 19, 2017
thanks, merging to master/2.2! |
viirya
commented
Apr 19, 2017
Thanks! @cloud-fan |
…utput partitioning and ordering ## What changes were proposed in this pull request? The output of `InMemoryTableScanExec` can be pruned and mismatch with `InMemoryRelation` and its child plan's output. This causes wrong output partitioning and ordering. ## How was this patch tested? Jenkins tests. Please review http://spark.apache.org/contributing.html before opening a pull request. Author: Liang-Chi Hsieh <viirya@gmail.com> Closesapache#17679 from viirya/SPARK-20356.
What changes were proposed in this pull request?
The output of
InMemoryTableScanExeccan be pruned and mismatch withInMemoryRelationand its child plan's output. This causes wrong output partitioning and ordering.How was this patch tested?
Jenkins tests.
Please review http://spark.apache.org/contributing.html before opening a pull request.