[SPARK-8075][SQL] apply type check interface to more expressions#6723
[SPARK-8075][SQL] apply type check interface to more expressions#6723cloud-fan wants to merge 3 commits intoapache:masterfrom
Conversation
|
Test build #34506 has finished for PR 6723 at commit
|
6f09d05 to
305be74
Compare
There was a problem hiding this comment.
Do we really want this? There are a lot of expressions that don't need type check...
There was a problem hiding this comment.
ok i agree with you maybe we should implement this by default to be always "success", so we don't need to define this for every expression.
|
Test build #34509 has finished for PR 6723 at commit
|
|
Test build #34508 has finished for PR 6723 at commit
|
8423bc7 to
3c3c87b
Compare
There was a problem hiding this comment.
I'm thinking of making resolved final, and add a overridable method like extraResolveLogic, so that people won't forget to check types when they override resolved.
|
Test build #34684 has finished for PR 6723 at commit
|
772866d to
0faa15a
Compare
|
Test build #35244 has finished for PR 6723 at commit
|
There was a problem hiding this comment.
I checked with hive, CreateArray should cast input to string, but with some rules like Coalesce did. For example we should not cast boolean to string for CreateArray.
|
Test build #35387 has finished for PR 6723 at commit
|
|
Test build #35388 has finished for PR 6723 at commit
|
|
Test build #35392 has finished for PR 6723 at commit
|
|
Test build #35637 has finished for PR 6723 at commit
|
|
cc @rxin |
|
Thanks! Merging to master. |
a follow up of #6405.
Note: It's not a big change, a lot of changing is due to I swap some code in
aggregates.scalato make aggregate functions right below its corresponding aggregate expressions.