You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/10/30 16:39:02 UTC

[GitHub] [spark] gengliangwang commented on issue #26324: [SPARK-29462] The data type of "array()" should be array

gengliangwang commented on issue #26324: [SPARK-29462] The data type of "array()" should be array<null>
URL: https://github.com/apache/spark/pull/26324#issuecomment-547999191
 
 
   I think the proposal is reasonable.
   After https://github.com/apache/spark/pull/26107, we can't store string type into numeric type without explicit casting. 
   So, if we want to insert an empty array into a column of `array<int>`, simply using value `array()` will fail the analysis check. 
   Since Spark can insert null type to other types, the problem is resolved.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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