Retrieves the type definition of an expression.
type_of(x:any) -> recordDescription
Section titled “Description”The type_of function returns the type definition of the given value x.
Examples
Section titled “Examples”Retrieve the type definition of a schema
Section titled “Retrieve the type definition of a schema”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, }, }, ], },}