Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime
Returns a FLOAT value from an XML document.
Syntax
xpath_float(xml, xpath)
Arguments
xml: ASTRINGexpression of XML.xpath: ASTRINGexpression that is a well formed XPath.
Returns
The result is FLOAT.
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.
Examples
> SELECT xpath_float('<a><b>1</b><b>2</b></a>', 'sum(a/b)');
3.0