Errors, refusals and diagnostic fields#
Use the interface that produced a diagnostic to interpret its fields. A compilation diagnostic describes a problem admitting the request. An execution diagnostic can describe a refusal or an error after admission.
Diagnostic fields by interface#
Interface |
Fields to inspect |
|---|---|
SQL compilation |
Code, SQLSTATE mapping, subject and, when present, source position. |
Execution |
Outcome, refusal class when present, stage, layer, cause and deciding metadata. |
|
Machine-readable status and layer. Human-readable subject and reason. |
SDK and adapters |
The SDK status and the cuDF interop exception or Velox engine failure that carries it. Use the contract of the interface that declared the classification. |
Velox pre-execution budget refusal |
The declared limit and refusal classification. This decision precedes device work. |
When a cause or deciding metadata supplies an authoritative code or SQLSTATE, preserve it. Applications can branch on structured fields and display the subject and reason to a person.
Refusal class and next check#
Class or outcome |
Next check |
|---|---|
|
Identify the semantics the request asks for. |
|
Inspect the required provider or build route. |
|
Inspect the stated budget or bound. |
|
Inspect the cause and deciding metadata. This outcome has no refusal class and includes I/O failures. |
Wrong argument or unsupported form#
A wrong-type ST_Transform target reaches argument and overload checking, where invalid or ambiguous SQL can be diagnosed. An integer target supplied by a column can be well typed and still be refused: the target must be a literal. For accepted target forms, see the ST_Transform rows in Spatial functions and geometry semantics.