Skip to content
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-25096][SQL] Loosen nullability if the cast is force-nullable. #22086

Closed

Conversation

ueshin
Copy link
Member

@ueshin ueshin commented Aug 13, 2018

What changes were proposed in this pull request?

In type coercion for complex types, if the found type is force-nullable to cast, we should loosen the nullability to be able to cast. Also for map key type, we can't use the type.

How was this patch tested?

Added some test.

@ueshin
Copy link
Member Author

ueshin commented Aug 13, 2018

cc @cloud-fan @gatorsmile

@cloud-fan
Copy link
Contributor

good catch! LGTM

@SparkQA
Copy link

SparkQA commented Aug 13, 2018

Test build #94664 has finished for PR 22086 at commit f480354.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

retest this please

@mgaido91
Copy link
Contributor

LGTM too

@SparkQA
Copy link

SparkQA commented Aug 13, 2018

Test build #94673 has finished for PR 22086 at commit f480354.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master.

@asfgit asfgit closed this in b270bcc Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants