Uh oh!
There was an error while loading. Please reload this page.
[SPARK-25949][SQL] Add test for PullOutPythonUDFInJoinCondition - #22955
[SPARK-25949][SQL] Add test for PullOutPythonUDFInJoinCondition#22955xuanyuanking wants to merge 3 commits into
Conversation
SparkQA
commented
Nov 6, 2018
Test build #98515 has finished for PR 22955 at commit
|
xuanyuanking
commented
Nov 7, 2018
mgaido91
commented
Nov 7, 2018
shall we also remove the end-to-end tests which are now not needed anymore? |
xuanyuanking
commented
Nov 8, 2018
Thanks for the reply, unnecessary end-to-end tests removed in 2b6977d, others maybe should be kept? Cause mock python udf in scala side can't 100% same with python side. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| } | ||
| test("python udf with other common condition") { |
There was a problem hiding this comment.
shall we add more cases like this for Or instead of And? And with several UDF/other conditions? Thanks.
SparkQA
commented
Nov 9, 2018
Test build #98644 has finished for PR 22955 at commit
|
mgaido91
commented
Nov 10, 2018
retest this please |
| condition = None).where(pythonUDF).analyze | ||
| val unsupportedJoinTypes = Seq(LeftOuter, RightOuter, FullOuter, LeftAnti) | ||
| private def comparePlansWithConf(query: LogicalPlan, expected: LogicalPlan): Unit = { |
There was a problem hiding this comment.
better naming? what does it mean WithConf?
There was a problem hiding this comment.
how about comparePlanWithCrossJoinEnable? Just afraid it's too long at first, any advise :) Thanks.
| } | ||
| } | ||
| test("inner join condition with python udf only") { |
There was a problem hiding this comment.
sorry, probably I was not clear enough in my previous comment. This UT and the following differ only for the join type. We can dedup them by doing something like:
Seq(Inner, LeftSemi).foreach { joinType =>
test(...) { ...}
}
PS nit: maybe we can also define a new val supportedJoinTypes = Seq(Inner, LeftSemi)...
There was a problem hiding this comment.
I'm sorry for lacking of comments to your previous comment they differ only by the join type..., they differ not only the type, but also the expected plan.
SparkQA
commented
Nov 10, 2018
Test build #98676 has finished for PR 22955 at commit
|
SparkQA
commented
Nov 11, 2018
Test build #98698 has finished for PR 22955 at commit
|
cloud-fan
commented
Nov 12, 2018
thanks, merging to master! |
xuanyuanking
commented
Nov 12, 2018
Thanks @mgaido91@cloud-fan |
## What changes were proposed in this pull request? As comment in apache#22326 (comment), we test the new added optimizer rule by end-to-end test in python side, need to add suites under `org.apache.spark.sql.catalyst.optimizer` like other optimizer rules. ## How was this patch tested? new added UT Closesapache#22955 from xuanyuanking/SPARK-25949. Authored-by: Yuanjian Li <xyliyuanjian@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
As comment in #22326 (comment), we test the new added optimizer rule by end-to-end test in python side, need to add suites under
org.apache.spark.sql.catalyst.optimizerlike other optimizer rules.How was this patch tested?
new added UT