cloud-fan commented on issue #26324: [SPARK-29462] The data type of "array()" should be array<null> URL: https://github.com/apache/spark/pull/26324#issuecomment-584011731 I don't agree we should revert it. The Hive behavior is really confusing and we shouldn't inherit it anymore. `concat(array(), array(1))` returns array of string, which doesn't make sense. Presto returns array of int. I think `map()` can be inferred as `map<void, void>`. The map key can be null type but can't be null, so this is fine as long as `map<void, void>` is empty. For CTAS, I don't think it's related. If we can create table with null-type column using CTAS, why not allow `array<void>` as well?
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
