Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
更新しました 2024/12/10
Send us feedback
xpath_int
Applies to: Databricks SQL Databricks Runtime
Returns an INTEGER value from an XML document.
xpath_int(xml, xpath)
xml: A STRING expression of XML.
xml
xpath: A STRING expression that is a well formed XPath.
xpath
An INTEGER.
The result is zero if no match is found, or a match is found but the value is non-numeric.
The function raises an error if xml or xpath are malformed.
> SELECT xpath_int('<a><b>1</b><b>2</b></a>', 'sum(a/b)'); 3
xpath function
xpath_boolean function
xpath_double function
xpath_float function
xpath_long function
xpath_number function
xpath_short function
xpath_string function