union_extract()

Extract the value with the named tags from the union. NULL if the tag is not currently selected

Arguments & returns

union_extract(union, tag)

Scalar
Overload link uniontag Returns
#01 UNIONVARCHAR ANY

Example

union_extract example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Guide example · Run to view results.

Catalog examples

SELECT
  union_extract(s, 'k');