set hive.fetch.task.conversion=more;
DESCRIBE FUNCTION xpath ;
DESCRIBE FUNCTION EXTENDED xpath ;
SELECT xpath ('b1b2b3c1c2', 'a/text()') FROM src tablesample (1 rows) ;
SELECT xpath ('b1b2b3c1c2', 'a/*/text()') FROM src tablesample (1 rows) ;
SELECT xpath ('b1b2b3c1c2', 'a/b/text()') FROM src tablesample (1 rows) ;
SELECT xpath ('b1b2b3c1c2', 'a/c/text()') FROM src tablesample (1 rows) ;
SELECT xpath ('b1b2b3c1c2', 'a/*[@class="bb"]/text()') FROM src tablesample (1 rows) ;