PREHOOK: query: DESCRIBE FUNCTION xpath_number
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION xpath_number
POSTHOOK: type: DESCFUNCTION
xpath_number(xml, xpath) - Returns a double value that matches the xpath expression
PREHOOK: query: DESCRIBE FUNCTION EXTENDED xpath_number
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION EXTENDED xpath_number
POSTHOOK: type: DESCFUNCTION
xpath_number(xml, xpath) - Returns a double value that matches the xpath expression
Synonyms: xpath_double
Example:
> SELECT xpath_number('12','sum(a/b)') FROM src LIMIT 1;
3.0
PREHOOK: query: DESCRIBE FUNCTION xpath_double
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION xpath_double
POSTHOOK: type: DESCFUNCTION
xpath_double(xml, xpath) - Returns a double value that matches the xpath expression
PREHOOK: query: DESCRIBE FUNCTION EXTENDED xpath_double
PREHOOK: type: DESCFUNCTION
POSTHOOK: query: DESCRIBE FUNCTION EXTENDED xpath_double
POSTHOOK: type: DESCFUNCTION
xpath_double(xml, xpath) - Returns a double value that matches the xpath expression
Synonyms: xpath_number
Example:
> SELECT xpath_double('12','sum(a/b)') FROM src LIMIT 1;
3.0
PREHOOK: query: SELECT xpath_double ('this is not a number', 'a') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('this is not a number', 'a') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
NaN
PREHOOK: query: SELECT xpath_double ('this 2 is not a number', 'a') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('this 2 is not a number', 'a') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
NaN
PREHOOK: query: SELECT xpath_double ('200000000040000000000', 'a/b * a/c') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('200000000040000000000', 'a/b * a/c') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
8.0E19
PREHOOK: query: SELECT xpath_double ('try a boolean', 'a = 10') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('try a boolean', 'a = 10') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
0.0
PREHOOK: query: SELECT xpath_double ('1248', 'a/b') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('1248', 'a/b') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
1.0
PREHOOK: query: SELECT xpath_double ('1248', 'sum(a/*)') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('1248', 'sum(a/*)') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
15.0
PREHOOK: query: SELECT xpath_double ('1248', 'sum(a/b)') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('1248', 'sum(a/b)') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
7.0
PREHOOK: query: SELECT xpath_double ('1248', 'sum(a/b[@class="odd"])') FROM src tablesample (1 rows)
PREHOOK: type: QUERY
PREHOOK: Input: default@src
#### A masked pattern was here ####
POSTHOOK: query: SELECT xpath_double ('1248', 'sum(a/b[@class="odd"])') FROM src tablesample (1 rows)
POSTHOOK: type: QUERY
POSTHOOK: Input: default@src
#### A masked pattern was here ####
5.0