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