Skip to content

Interface: UseAnalyticsQueryResult\<T\>

Result state returned by useAnalyticsQuery

T

data: T | null

Latest query result data


error: string | null

Error state of the query — sanitized human-readable message


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: boolean

Loading state of the query


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.