set hive.fetch.task.conversion=more;
DESCRIBE FUNCTION xpath_string ;
DESCRIBE FUNCTION EXTENDED xpath_string ;
SELECT xpath_string ('bbcc', 'a') FROM src tablesample (1 rows) ;
SELECT xpath_string ('bbcc', 'a/b') FROM src tablesample (1 rows) ;
SELECT xpath_string ('bbcc', 'a/c') FROM src tablesample (1 rows) ;
SELECT xpath_string ('bbcc', 'a/d') FROM src tablesample (1 rows) ;
SELECT xpath_string ('b1b2', '//b') FROM src tablesample (1 rows) ;
SELECT xpath_string ('b1b2', 'a/b[1]') FROM src tablesample (1 rows) ;
SELECT xpath_string ('b1b2', 'a/b[2]') FROM src tablesample (1 rows) ;
SELECT xpath_string ('b1b2', 'a/b[@id="b_2"]') FROM src tablesample (1 rows) ;