-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-4250] [SQL] Fix bug of constant null value mapping to ConstantObjectInspector #3114
Conversation
Test build #22941 has started for PR 3114 at commit
|
Test build #22941 has finished for PR 3114 at commit
|
Test FAILed. |
Test build #22978 has started for PR 3114 at commit
|
Test build #22978 has finished for PR 3114 at commit
|
Test PASSed. |
@marmbrus @rxin @liancheng Couple of PRs are (#3109, #2802) blocked by this, can you review this? |
case Literal(_, NullType) => | ||
HiveShim.getPrimitiveNullWritableConstantObjectInspector | ||
case Literal(value: Seq[_], ArrayType(dt, _)) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: why remove this to only have to add a more verbose .asInstanceOf
below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't bind a type here, just to keep consistent with pattern match above, and it is also helpful in debugging, you know, sometimes we just confused what type for catalyst array (Array
or Seq
), the .asInstanceOf
will be a strong check.
Hey, thanks for working on this. I'm a little confused about how we are handling |
Test build #23101 has started for PR 3114 at commit
|
Thank you @marmbrus for reviewing this. |
Test build #23101 has finished for PR 3114 at commit
|
Test PASSed. |
@marmbrus The problem @chenghao-intel pointed out can be illustrated by this Scala shell snippet:
That's why type annotations in |
Ah, thanks for the explanation! |
Thanks! Merged to master and 1.2. |
@marmbrus , but this PR seems still open, can you double-check if it's merged? |
…ObjectInspector Author: Cheng Hao <[email protected]> Closes #3114 from chenghao-intel/constant_null_oi and squashes the following commits: e603bda [Cheng Hao] fix the bug of null value for primitive types 50a13ba [Cheng Hao] fix the timezone issue f54f369 [Cheng Hao] fix bug of constant null value for ObjectInspector (cherry picked from commit fa77783) Signed-off-by: Michael Armbrust <[email protected]>
Github was lagging you can always check here: https://git-wip-us.apache.org/repos/asf?p=spark.git;a=summary |
No description provided.