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
Throws an exception with expr
as the message.
raise_error(expr)
expr
: ASTRING
expression.
The NULL
type.
The function raises a runtime error with expr
as the error message.
Applies to: Databricks SQL
Databricks Runtime 14.2 and later
The returned error condition is USER_RAISED_EXCEPTION
and the SQLSTATE
is P0001
.
See Handling error conditions for details on handling error conditions.
> SELECT raise_error('custom error message');
[USER_RAISED_EXCEPTION] custom error message SQLSTATE: P0001