EVAL_CONST

All functions > CORE > EVAL_CONST

Evaluates a constant formula and returns the result as a literal.

Syntax

EVAL_CONST(formula, type)
sql

Arguments

ParameterTypeRequiredDescription
formulaVARCHARYesA constant formula string to evaluate
typeTYPEYesThe expected result type

Returns

The evaluated constant value as a literal

Notes

  • Evaluates a constant formula at compile/definition time
  • The formula must be a constant expression (no runtime dependencies)
  • Result is materialized as a literal value
  • Type parameter specifies the expected return type
  • Restricted to offline use only
  • Useful for computed constants in feature definitions
  • Part of the FeatureMesh core system
Last update at: 2025/12/05 16:03:14
Last updated: 2025-12-05 16:07:55