Skip to main content
Table function
NULL array emits no rows. A NULL struct element emits one all-NULL row.

Syntax

Table

Arguments

Returns

  • Type: TABLE with the struct field types
  • NULL behavior: NULL array emits no rows. A NULL struct element emits one all-NULL row.
  • Empty input: No rows for an empty array.
  • Shape: The output has one column for each struct field, with the element field types.
  • Ordering: Input element order is preserved by expansion; SQL output order requires ORDER BY.

Properties

Usage notes

  • Deterministic: The same inputs and settings produce the same result.

Examples

Typical behavior

Expand structs with boolean fields

Limitations

  • Exactly one ARRAY<STRUCT> argument is required.
Last modified on October 15, 2026