Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Nov 22, 2019

What changes were proposed in this pull request?

This is rather a followup of #25464 (see https://github.com/apache/spark/pull/25464/files#r349543286)

It will cause an infinite recursion via mapping children - we should return the hint rather than its parent plan in unknown hint resolution.

Why are the changes needed?

Prevent Stack over flow during hint resolution.

Does this PR introduce any user-facing change?

Yes, it avoids stack overflow exception It was caused by #25464 and this is only in the master.

No behaviour changes to end users as it happened only in the master.

How was this patch tested?

Unittest was added.

@HyukjinKwon
Copy link
Member Author

cc @cloud-fan

@HyukjinKwon HyukjinKwon changed the title [SPARK-30003][SQL] Prevent stack over flow in unknown hint resolution [SPARK-30003][SQL] Do not throw stack overflow exception in non-root unknown hint resolution Nov 22, 2019
@SparkQA
Copy link

SparkQA commented Nov 22, 2019

Test build #114307 has finished for PR 26642 at commit 7bae25b.

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

@SparkQA
Copy link

SparkQA commented Nov 22, 2019

Test build #114308 has finished for PR 26642 at commit b7bf47a.

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

@maropu
Copy link
Member

maropu commented Nov 23, 2019

Nice catch! (btw, oh,... the jira number went over 30k...)

@HyukjinKwon
Copy link
Member Author

Merged to master.

@HyukjinKwon HyukjinKwon deleted the SPARK-30003 branch March 3, 2020 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants