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
| Parameter | Type | Required | Description |
|---|---|---|---|
formula | VARCHAR | Yes | A constant formula string to evaluate |
type | TYPE | Yes | The 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