Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23802][SQL] PropagateEmptyRelation can leave query plan in unresolved state - #20914
[SPARK-23802][SQL] PropagateEmptyRelation can leave query plan in unresolved state#20914robert3005 wants to merge 6 commits into
Conversation
hvanhovell
commented
Mar 27, 2018
ok to test |
SparkQA
commented
Mar 27, 2018
Test build #88630 has finished for PR 20914 at commit
|
robert3005
commented
Mar 27, 2018
|
hvanhovell
commented
Mar 27, 2018
retest this please |
SparkQA
commented
Mar 28, 2018
Test build #88642 has finished for PR 20914 at commit
|
gatorsmile
commented
Mar 28, 2018
retest this please |
SparkQA
commented
Mar 28, 2018
Test build #88646 has finished for PR 20914 at commit
|
be950e4 to
d9a2ee8CompareSparkQA
commented
Mar 29, 2018
Test build #88705 has finished for PR 20914 at commit
|
| .where(left) | ||
| .join(testRelation2.where(right), joinType = jt, condition = Some('a.attr == 'b.attr)) | ||
| val optimized = Optimize.execute(query.analyze) | ||
| val optimized = Optimize.execute(query.analyze).analyze |
There was a problem hiding this comment.
the subsequent analyze here is to fill in timezones on casts inserted by Optimize
There was a problem hiding this comment.
We should fill the time zone in the optimizer rule
SparkQA
commented
Mar 29, 2018
Test build #88717 has finished for PR 20914 at commit
|
| // Construct a project list from plan's output, while the value is always NULL. | ||
| private def nullValueProjectList(plan: LogicalPlan): Seq[NamedExpression] = | ||
| plan.output.map{ a => Alias(Literal(null), a.name)(a.exprId) } | ||
| plan.output.map{ a => Alias(Cast(Literal(null), a.dataType), a.name)(a.exprId) } |
SparkQA
commented
Mar 30, 2018
Test build #88759 has finished for PR 20914 at commit
|
robert3005
commented
Apr 3, 2018
@gatorsmile how does it look now? |
gatorsmile
commented
Apr 4, 2018
LGTM |
…esolved state ## What changes were proposed in this pull request? Add cast to nulls introduced by PropagateEmptyRelation so in cases they're part of coalesce they will not break its type checking rules ## How was this patch tested? Added unit test Author: Robert Kruszewski <robertk@palantir.com> Closes#20914 from robert3005/rk/propagate-empty-fix. (cherry picked from commit 5cfd5fa) Signed-off-by: gatorsmile <gatorsmile@gmail.com>
…esolved state ## What changes were proposed in this pull request? Add cast to nulls introduced by PropagateEmptyRelation so in cases they're part of coalesce they will not break its type checking rules ## How was this patch tested? Added unit test Author: Robert Kruszewski <robertk@palantir.com> Closesapache#20914 from robert3005/rk/propagate-empty-fix.
…esolved state ## What changes were proposed in this pull request? Add cast to nulls introduced by PropagateEmptyRelation so in cases they're part of coalesce they will not break its type checking rules ## How was this patch tested? Added unit test Author: Robert Kruszewski <robertk@palantir.com> Closesapache#20914 from robert3005/rk/propagate-empty-fix.
…esolved state Add cast to nulls introduced by PropagateEmptyRelation so in cases they're part of coalesce they will not break its type checking rules Added unit test Author: Robert Kruszewski <robertk@palantir.com> Closesapache#20914 from robert3005/rk/propagate-empty-fix. (cherry picked from commit 5cfd5fa) Signed-off-by: gatorsmile <gatorsmile@gmail.com> Change-Id: I9c673e572454a9fa43e296b7fe66e7f2fc569854
What changes were proposed in this pull request?
Add cast to nulls introduced by PropagateEmptyRelation so in cases they're part of coalesce they will not break its type checking rules
How was this patch tested?
Added unit test