Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

extract xml fields

avatar
Contributor

Hello Team,

 

how can we extract XML values from the column below (type string) from Impala (Kudu)

 

roshanbi_0-1625139018834.png

Regards,

 

Roshan

4 REPLIES 4

avatar
Super Collaborator

Hello,

Have you tried with a query like this ->  select <column-name> from <table-name>;

If this is not your expectation let us know in detail regarding the requirement.

 

Regards,

Chethan YM

avatar
Community Manager

Hi @roshanbi, has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar
Contributor

Hi,

 

no it won't work.

avatar
Expert Contributor

You need a UDF to parse the XML string and extract the values. As far as I know, Impala doesn't have a native function to do it.