Skip to content

Type Alias: InferResultByFormat\<T, K, F\>

InferResultByFormat<T, K, F> = F extends "ARROW_STREAM" | "ARROW" ? TypedArrowTable<InferRowType<K>> : InferResult<T, K>

Conditionally infers result type based on format.

  • JSON format: Returns the typed array from QueryRegistry
  • ARROW format: Returns TypedArrowTable with row type preserved

T

K

F extends AnalyticsFormat