Skip to main content
roshanbi
Gold ⭐️
July 1, 2021
Question

extract xml fields

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

ChethanYM
Gold ⭐️
Gold ⭐️
July 5, 2021

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

Translate
VidyaSargur
Community Manager
Community Manager
July 6, 2021

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. 

Translate
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.
robbiez
Gold ⭐️
Gold ⭐️
August 10, 2021

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.

Translate