[
https://issues.apache.org/jira/browse/HIVE-10496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952904#comment-14952904
]
Anup Kumar Ray commented on HIVE-10496:
---------------------------------------
The same issue is encountered on MapR 4.0.3 as well.
> Hive xpath udf not getting the values within xml content
> --------------------------------------------------------
>
> Key: HIVE-10496
> URL: https://issues.apache.org/jira/browse/HIVE-10496
> Project: Hive
> Issue Type: Bug
> Components: Hive, HiveServer2, UDF
> Affects Versions: 0.13.1
> Environment: CDH5.2.x, CDH5.3.x
> Reporter: Madhan Sundararajan Devaki
> Priority: Blocker
>
> None of the following select statements return values, for an XML content
> stored as String in a Hive 0.13 external AVRO table.
> 1. select xpath(pcdata, '//ResponseData/*/text()') from tablewithXML where id
> = '10' and key = '111'"
> 2. select xpath(pcdata, '//FormResponse/ResponseData/*/text()') from
> tablewithXML where id = '10' and key = '111'"
> Only an empty array is returned.
> []
> For example, please find below the XML content.
> :
> <FormResponse>
> <ResponseData>7.11.250x</ResponseData>
> </FormResponse> <FormResponse>
> <ResponseData>356z</ResponseData>
> </FormResponse>
> :
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)