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