SQLTYPEOF

All functions > METADATA > SQLTYPEOF

Returns the type of the given expression in the target database.

Signatures

Returns: A string representing the database-specific SQL type

SQLTYPEOF(expr: T) → VARCHAR
sql
ParameterTypeRequiredDescription
exprTYesThe expression to get the SQL type of

Notes

  • Returns the target database's type name as a string
  • Type name varies by database engine (Trino, DuckDB, etc.)
  • Useful for debugging type translations
  • Shows how FeatureQL types map to SQL types
  • Type is determined at query translation time
  • Can differ from TYPEOF which shows FeatureQL types
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19