Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Retrieves the type definition of an expression.

type_of(x:any) -> record

The type_of function returns the type definition of the given value x.

from {x: 1, y: "2"}
this = type_of(this)
{
name: "tenzir.from",
kind: "record",
attributes: [],
state: {
fields: [
{
name: "x",
type: {
name: null,
kind: "int64",
attributes: [],
state: null,
},
},
{
name: "y",
type: {
name: null,
kind: "string",
attributes: [],
state: null,
},
},
],
},
}

Last updated: