SQLTYPEOF()

All functions > METADATA > SQLTYPEOF()

Returns the name of the translated storage type for the expression (after FeatureQL is lowered for execution).

Signatures

Returns: A string naming the execution target's type for that expression

SQLTYPEOF(expr: T) → VARCHAR
sql
ParameterTypeRequiredDescription
exprTYesThe expression to describe

Notes

  • Spelling is defined by the active execution target, not by FeatureQL's type names
  • Compare with TYPEOF, which reports the FeatureQL type
  • Useful when debugging how a value is represented after translation

See also

Examples

Scalars (FeatureQL vs execution target)

FeatureQL
SELECT
    f1 := SQLTYPEOF(1) -- FeatureQL BIGINT may map to INTEGER in DuckDB
;
Result
f1 VARCHAR
INTEGER

Containers

FeatureQL
SELECT
    f1 := SQLTYPEOF(ARRAY[1, 2]) -- Array spelling follows the active backend
;
Result
f1 VARCHAR
BIGINT[]

Last update at: 2026/05/26 17:22:09