Uh oh!
There was an error while loading. Please reload this page.
[SPARK-16100] [SQL] avoid crash in TreeNode.withNewChildren - #13811
[SPARK-16100] [SQL] avoid crash in TreeNode.withNewChildren#13811inouehrs wants to merge 1 commit into
Conversation
AmplabJenkins
commented
Jun 21, 2016
Can one of the admins verify this patch? |
hvanhovell
commented
Jun 21, 2016
Could you add a test case to reproduce this? |
cloud-fan
commented
Jun 22, 2016
hi @inouehrs , sorry I haven't noticed that you already have a PR for this JIRA ticket. |
inouehrs
commented
Jun 22, 2016
Hi @cloud-fan, your fix looks cleaner than mine. |
What changes were proposed in this pull request?
This patch fixes a reported bug, which causes IndexOutOfBoundsException during the code generation.
This issue is cased for a
MapObjectsinstance which has the same object forloopVarandlambdaFunction.In such case,
loopVaris handled as a child inTreeNode.withNewChildrensince the object is included in children aslambdaFunction.I add checks for the number of unprocessed children to avoid this issue.
Is there any idea on cleaner way to avoid such a pathological case?
I also add
assertto confirm that the mappingChildrenandproductElementis correct.How was this patch tested?
Using existing unit tests