[
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: [email protected]
For additional commands, e-mail: [email protected]