Nota
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tidħol jew tibdel id-direttorji.
L-aċċess għal din il-paġna jeħtieġ l-awtorizzazzjoni. Tista’ tipprova tibdel id-direttorji.
Applies to: Databricks SQL
Databricks Runtime
Returns a DOUBLE value from an XML document.
xpath_number(xml, xpath)
xml
: A STRING expression of XML.xpath
: A STRING expression that is a well formed XPath.
A DOUBLE.
The result is zero if no match is found, or NaN
if a match is found but the value is non-numeric.
The function raises an error if xml
or xpath
are malformed.
> SELECT xpath_number('<a><b>1</b><b>2</b></a>', 'sum(a/b)');
1.0