Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Applies to: Databricks SQL
Databricks Runtime
Returns the nth expression.
elt(index, expr1 [, ...])
index
: An INTEGER expression greater than 0.exprN
: Any expression that shares a least common type with allexprN
.
The result has the type of the least common type of the exprN
.
Index must be between 1 and the number of expr
. If index is out of bounds, an INVALID_ARRAY_INDEX error is raised.
Nóta
In Databricks Runtime, if spark.sql.ansi.enabled is false
, the function returns NULL
instead of an error if the index is out of bounds.
> SELECT elt(1, 'scala', 'java');
scala