Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> xpath UDF in hive support namespace?

Copy link to this message
RE: xpath UDF in hive support namespace?

Hi, Mark:
Thanks for your response. I am thinking how to change it to support the namespace. The easy way is allow end user to pass into properties of mapping of (prefix and URI), but from the HIVE UDF, it is not easy to allow end users to pass in any properties like Serde. Maybe that's the reason why it isn't supported initially.

> Date: Wed, 19 Dec 2012 14:04:20 -0800
> Subject: Re: xpath UDF in hive support namespace?
> Hi, the source code for the xpath UDFs is at
> https://github.com/apache/hive/tree/trunk/ql/src/java/org/apache/hadoop/hive/ql/udf/xml
> I checked and saw that there were no changes made to these UDFs after
> there initial creation by HIVE-1027. So, that's all we have. Sorry.
> However, if you would like make additions to those UDFs, you are
> welcome to do so by creating a JIRA and posting a patch. UDFs are an
> easy and excellent way to contribute back to the Hive community.
> Thanks!
> Mark
> On Wed, Dec 19, 2012 at 8:52 AM, java8964 java8964 <[EMAIL PROTECTED]> wrote:
> > Hi, I have a question related to the XPATH UDF currently in HIVE.
> >
> > From the original Jira story about this UDF:
> > https://issues.apache.org/jira/browse/HIVE-1027, It looks like the UDF won't
> > support namespace in the XML, is that true?
> >
> > Any later HIVE version does support namespace, if so, what is the version?
> > And also if this UDF does support namespace, does anyone have some examples
> > how to do it in xpath UDF of hive? All the examples in the wiki page are
> > without name space.
> >
> >
> > Thanks
> >
> > Yong