Interface: UseAnalyticsQueryResult\<T\>
Result state returned by useAnalyticsQuery
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”data:
T|null
Latest query result data
error:
string|null
Error state of the query — sanitized human-readable message
errorCode
Section titled “errorCode”errorCode:
string|null
Structured upstream error code when the server attaches one to the
error payload (e.g. RESULT_TOO_LARGE_FOR_JSON_FALLBACK,
ARROW_DELIVERY_UNSUPPORTED, NOT_IMPLEMENTED). Prefer branching UI
on this stable identifier rather than substring-matching error,
which is a free-form sanitized message.
loading
Section titled “loading”loading:
boolean
Loading state of the query
warehouseStatus
Section titled “warehouseStatus”warehouseStatus:
WarehouseStatus|null
Latest warehouse status emitted by the server while waiting for the SQL
warehouse to reach RUNNING. null until the first status event arrives;
remains null for cache hits where the server skips the readiness check.