Madhan Sundararajan Devaki created HIVE-10496:
-------------------------------------------------

             Summary: 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: File Formats, Hive
    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'"

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)

Reply via email to