Uh oh!
There was an error while loading. Please reload this page.
[SPARK-29516][SQL][TEST] Test ThriftServerQueryTestSuite asynchronously - #26172
[SPARK-29516][SQL][TEST] Test ThriftServerQueryTestSuite asynchronously#26172wangyum wants to merge 7 commits into
Conversation
SparkQA
commented
Oct 19, 2019
Test build #112309 has finished for PR 26172 at commit
|
dongjoon-hyun
commented
Oct 19, 2019
cc @zsxwing since he also asked this before. The way I see this is that a new extended test coverage. |
It seems the reason is build/sbt "hive-thriftserver/test-only *.ThriftServerQueryTestSuite -- -z postgreSQL" -Phive-thriftserverThe output is: |
wangyum
commented
Oct 20, 2019
SparkQA
commented
Oct 20, 2019
Test build #112325 has finished for PR 26172 at commit
|
This error happen because in SparkSession.sql() method, |
SparkQA
commented
Oct 21, 2019
Test build #112367 has finished for PR 26172 at commit
|
wangyum
commented
Oct 21, 2019
retest this please |
| * @since 2.0.0 | ||
| */ | ||
| def sql(sqlText: String): DataFrame = { | ||
| SparkSession.setActiveSession(this) |
There was a problem hiding this comment.
To keep it in scope of thriftserver, could we set it in SparkExecuteStatementOperation.execute, using the sqlContext available there?
I'm not sure what other implications it can have here, it would be safer to set there.
There was a problem hiding this comment.
To keep it in scope of thriftserver, could we set it in SparkExecuteStatementOperation.execute, using the sqlContext available there?
I'm not sure what other implications it can have here, it would be safer to set there.
It's ok to set in SparkExecuteStatementOperation.execute.
#26187 (comment)
I think it ok to set this before parse sql, It was the right thing to do
There was a problem hiding this comment.
Ok. Let the reviewers of #26187 decide it there. (@cloud-fan@zsxwing )
There was a problem hiding this comment.
So the issue with async queries was that the parser was using the wrong dialect fallback, because it was picking the wrong SQLConf, because it was not set in the background execution thread?
@wangyum@AngersZhuuuu Does fixing this potentially fix any other of the failures in ThriftServerQueryTestSuite that are currently blacklisted to be ignored?
There was a problem hiding this comment.
@juliuszsompolski Other failures can't be fixed by #26187:
SparkQA
commented
Oct 21, 2019
Test build #112369 has finished for PR 26172 at commit
|
### What changes were proposed in this pull request? As I have comment in [SPARK-29516](#26172 (comment)) SparkSession.sql() method parse process not under current sparksession's conf, so some configuration about parser is not valid in multi-thread situation. In this pr, we add a SQLConf parameter to AbstractSqlParser and initial it with SessionState's conf. Then for each SparkSession's parser process. It will use's it's own SessionState's SQLConf and to be thread safe ### Why are the changes needed? Fix bug ### Does this PR introduce any user-facing change? NO ### How was this patch tested? NO Closes#26187 from AngersZhuuuu/SPARK-29530. Authored-by: angerszhu <angers.zhu@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
SparkQA
commented
Oct 22, 2019
Test build #112415 has finished for PR 26172 at commit
|
SparkQA
commented
Oct 22, 2019
Test build #112416 has finished for PR 26172 at commit
|
SparkQA
commented
Oct 22, 2019
Test build #112430 has finished for PR 26172 at commit
|
wangyum
commented
Oct 22, 2019
retest this please |
SparkQA
commented
Oct 22, 2019
Test build #112435 has finished for PR 26172 at commit
|
wangyum
commented
Oct 22, 2019
Thank you all! |
wangyum
commented
Oct 22, 2019
Merged to master. |
What changes were proposed in this pull request?
This PR test
ThriftServerQueryTestSuitein an asynchronous way.Why are the changes needed?
The default value of
spark.sql.hive.thriftServer.asyncistrue.Does this PR introduce any user-facing change?
No
How was this patch tested?