Uh oh!
There was an error while loading. Please reload this page.
[SPARK-22219][SQL] Refactor code to get a value for "spark.sql.codegen.comments" - #19449
[SPARK-22219][SQL] Refactor code to get a value for "spark.sql.codegen.comments"#19449kiszk wants to merge 5 commits into
Conversation
SparkQA
commented
Oct 6, 2017
Test build #82520 has finished for PR 19449 at commit
|
There was a problem hiding this comment.
note to other reviewers: for historical context why this was done, see https://github.com/apache/spark/pull/13421/files#r65268674
There was a problem hiding this comment.
SQLConf is based on the active spark session. The active spark session is not always correctly set. Thus, we do not encourage the community to use SQLConf.
There was a problem hiding this comment.
There are places in codebase which do SQLConf.get (esp. CodeGenerator.scala which is being modified in this PR). Are you suggesting to change that everywhere like #18568 ? I think it will be good thing to do.
There was a problem hiding this comment.
Thank you for your comments. Is it better to pass SQLConf to the constructor of CodegenContext?
There was a problem hiding this comment.
I am afraid it might require a lot of code changes if we add SQLConf to CodegenContext.
There was a problem hiding this comment.
@tejasapatil Maybe just do nothing now. We need to fix the bugs in active session management first.
There was a problem hiding this comment.
Good to hear that@tejasapatil Could you please let us know when it is available as a PR?
I misunderstood @gatorsmile 's comment. I understood there is no activity to fix active session management.
There was a problem hiding this comment.
So far, I do not have a bandwidth to fix it. If anybody is interested in this, please feel free to start it. This requires a design doc at first.
tejasapatil
commented
Oct 6, 2017
LGTM. There are already multiple places in codegen where |
There was a problem hiding this comment.
We should move these comments to the SQLConf description.
kiszk
commented
May 18, 2018
When #21299 will be merged, I think that we can revisit this PR. |
SparkQA
commented
May 18, 2018
Test build #90760 has finished for PR 19449 at commit
|
HyukjinKwon
commented
Jul 16, 2018
Hm, shall we leave this closed then? |
kiszk
commented
Jul 16, 2018
Sorry for leaving this for a while. I will update it using |
SparkQA
commented
Jul 16, 2018
Test build #93118 has finished for PR 19449 at commit
|
| .booleanConf | ||
| .createWithDefault(true) | ||
| val MAX_CASES_BRANCHES = buildConf("spark.sql.codegen.maxCaseBranches") |
SparkQA
commented
Jul 17, 2018
Test build #93148 has finished for PR 19449 at commit
|
kiszk
commented
Jul 17, 2018
retest this please |
SparkQA
commented
Jul 17, 2018
Test build #93156 has finished for PR 19449 at commit
|
kiszk
commented
Jul 17, 2018
retest this please |
SparkQA
commented
Jul 17, 2018
Test build #93159 has finished for PR 19449 at commit
|
kiszk
commented
Jul 22, 2018
cc @gatorsmile |
1 similar comment
kiszk
commented
Jul 30, 2018
cc @gatorsmile |
HyukjinKwon
commented
Jul 30, 2018
Seems okay to me. |
srowen
commented
Jul 31, 2018
@kiszk looks OK except there's an old comment about moving the comments to the new member you've extracted. |
SparkQA
commented
Jul 31, 2018
Test build #93841 has finished for PR 19449 at commit
|
SparkQA
commented
Jul 31, 2018
Test build #4225 has finished for PR 19449 at commit
|
kiszk
commented
Aug 1, 2018
retest this please |
SparkQA
commented
Aug 1, 2018
Test build #93852 has finished for PR 19449 at commit
|
| assert(res.length == 2) | ||
| assert(res.forall{ case (_, code) => | ||
| code.contains("* Codegend pipeline") && code.contains("// input[")}) | ||
| } |
There was a problem hiding this comment.
combine these two?
Seq(true, false).foreach { flag =>
...
if (flag) {
...
} else {
...
}
}
SparkQA
commented
Aug 1, 2018
Test build #93895 has finished for PR 19449 at commit
|
gatorsmile
commented
Aug 1, 2018
LGTM pending Jenkins. |
SparkQA
commented
Aug 2, 2018
Test build #4229 has finished for PR 19449 at commit
|
HyukjinKwon
commented
Aug 2, 2018
retest this please |
SparkQA
commented
Aug 2, 2018
Test build #93923 has finished for PR 19449 at commit
|
gatorsmile
commented
Aug 2, 2018
retest this please |
gatorsmile
commented
Aug 2, 2018
ok to test |
SparkQA
commented
Aug 2, 2018
Test build #93953 has finished for PR 19449 at commit
|
HyukjinKwon
commented
Aug 2, 2018
retest this please |
SparkQA
commented
Aug 2, 2018
Test build #93982 has finished for PR 19449 at commit
|
HyukjinKwon
commented
Aug 2, 2018
retest this please |
SparkQA
commented
Aug 2, 2018
Test build #94014 has finished for PR 19449 at commit
|
kiszk
commented
Aug 2, 2018
retest this please |
srowen
commented
Aug 2, 2018
I think we have a problem in the kafka tests right now that will cause this to fail. Seems to be the cause several times now |
SparkQA
commented
Aug 2, 2018
Test build #94049 has finished for PR 19449 at commit
|
srowen
commented
Aug 2, 2018
Merged to master |
What changes were proposed in this pull request?
This PR refactors code to get a value for "spark.sql.codegen.comments" by avoiding
SparkEnv.get.conf. This PR usesSQLConf.get.codegenCommentssinceSQLConf.getalways returns an instance ofSQLConf.How was this patch tested?
Added test case to
DebuggingSuite