[GitHub] spark pull request #22086: [SPARK-25096][SQL] Loosen nullability if the cast...

2018-08-13 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/spark/pull/22086


---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark pull request #22086: [SPARK-25096][SQL] Loosen nullability if the cast...

2018-08-12 Thread ueshin
GitHub user ueshin opened a pull request:

https://github.com/apache/spark/pull/22086

[SPARK-25096][SQL] Loosen nullability if the cast is force-nullable.

## 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.


You can merge this pull request into a Git repository by running:

$ git pull https://github.com/ueshin/apache-spark 
issues/SPARK-25096/fix_type_coercion

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/spark/pull/22086.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #22086


commit f48035479c248b85519f1bbc7f5b7661c66c0e67
Author: Takuya UESHIN 
Date:   2018-08-13T03:28:21Z

Loosen nullability if the cast is force-nullable.




---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org