Uh oh!
There was an error while loading. Please reload this page.
[SPARK-22932] [SQL] Refactor AnalysisContext - #20127
Conversation
gatorsmile
commented
Dec 31, 2017
SparkQA
commented
Dec 31, 2017
Test build #85557 has finished for PR 20127 at commit
|
kiszk
commented
Dec 31, 2017
retest this please |
SparkQA
commented
Dec 31, 2017
Test build #85562 has finished for PR 20127 at commit
|
kiszk
commented
Jan 1, 2018
retest this please |
SparkQA
commented
Jan 1, 2018
Test build #85570 has finished for PR 20127 at commit
|
viirya
left a comment
There was a problem hiding this comment.
I think AnalysisContext is already per-query for now, because only withAnalysisContext can change it.
Seems this just adds another safety guard.
| } | ||
| } | ||
| private def executeSameContext(plan: LogicalPlan): LogicalPlan = super.execute(plan) |
| } | ||
| def get: AnalysisContext = value.get() | ||
| def reset(): Unit = value.remove() |
There was a problem hiding this comment.
Will be resolved by the future PR.
jiangxb1987
commented
Jan 1, 2018
lgtm |
gatorsmile
commented
Jan 2, 2018
Thanks! Merged to master |
Hi, @gatorsmile . |
## What changes were proposed in this pull request? Add a `reset` function to ensure the state in `AnalysisContext ` is per-query. ## How was this patch tested? The existing test cases Author: gatorsmile <gatorsmile@gmail.com> Closes#20127 from gatorsmile/refactorAnalysisContext.
gatorsmile
commented
Jan 3, 2018
Yeah, I manually merged it to 2.3 branch. |
What changes were proposed in this pull request?
Add a
resetfunction to ensure the state inAnalysisContextis per-query.How was this patch tested?
The existing test cases