नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
Applies to:
Databricks Runtime 15.3 and above
Casts the value expr to the target data type type with error toleration. This operator is a synonym for try_cast function.
Syntax
expr ?:: type
Arguments
expr: Any castable expression.
Returns
The result is type type.
Examples
> SELECT '20'?::INTEGER;
20
> SELECT 'twenty'?::INTEGER;
NULL
> SELECT typeof(NULL?::STRING);
string