set hive.fetch.task.conversion=more;
DESCRIBE FUNCTION xpath_short ;
DESCRIBE FUNCTION EXTENDED xpath_short ;
SELECT xpath_short ('this is not a number', 'a') FROM src tablesample (1 rows) ;
SELECT xpath_short ('this 2 is not a number', 'a') FROM src tablesample (1 rows) ;
SELECT xpath_short ('200000000040000000000', 'a/b * a/c') FROM src tablesample (1 rows) ;
SELECT xpath_short ('try a boolean', 'a = 10') FROM src tablesample (1 rows) ;
SELECT xpath_short ('1248', 'a/b') FROM src tablesample (1 rows) ;
SELECT xpath_short ('1248', 'sum(a/*)') FROM src tablesample (1 rows) ;
SELECT xpath_short ('1248', 'sum(a/b)') FROM src tablesample (1 rows) ;
SELECT xpath_short ('1248', 'sum(a/b[@class="odd"])') FROM src tablesample (1 rows) ;