You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/01/13 16:20:26 UTC
[jira] [Commented] (SPARK-19195) collection function:index
[ https://issues.apache.org/jira/browse/SPARK-19195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15821946#comment-15821946 ]
Sean Owen commented on SPARK-19195:
-----------------------------------
Deleting as a corrupted duplicate of SPARK-19194
> collection function:index
> -------------------------
>
> Key: SPARK-19195
> URL: https://issues.apache.org/jira/browse/SPARK-19195
> Project: Spark
> Issue Type: Sub-task
> Reporter: Chenzhao Guo
>
> Expression Index returns the value of index n (right) of the array/map (left).
> To be consistent with Hive, the left parameter should be of ArrayType or MapType, while the right parameter should be of AtomicType or NullType.
> Except the rules above, Hive won't throw any exceptions, even if there's a type mismatch, it will output NULL to indicate not found. This implementation follows the rule.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org