Correct factual/logical errors in a value using context (heavier sibling of FIX)
Per-row — runs once for each row.
CORRECT({{ value }}, '{{ context }}'){{ value }} CORRECTED BY '{{ context }}'| name | type | description |
|---|---|---|
| value | VARCHAR | — |
| context | VARCHAR | Context for correction: related fields, constraints, hints |
Zip corrected for city
SELECT
correct ('02101', 'city is San Francisco')Remove or mask personally identifiable information from text
Type-cast messy real-world values that trip up standard CAST
Return the canonical/official form of a value (auto-detects entity type)
Extracts 4-digit year from messy text, returns -1 if undetermined
LLM-backed year extraction (escape hatch for CLEAN_YEAR)
Pick the best non-null value from a group (quality-aware COALESCE)
Correct factual/logical errors in a value using context (heavier sibling of FIX)
Per-row — runs once for each row.
CORRECT({{ value }}, '{{ context }}'){{ value }} CORRECTED BY '{{ context }}'| name | type | description |
|---|---|---|
| value | VARCHAR | — |
| context | VARCHAR | Context for correction: related fields, constraints, hints |
Zip corrected for city
SELECT
correct ('02101', 'city is San Francisco')Remove or mask personally identifiable information from text
Type-cast messy real-world values that trip up standard CAST
Return the canonical/official form of a value (auto-detects entity type)
Extracts 4-digit year from messy text, returns -1 if undetermined
LLM-backed year extraction (escape hatch for CLEAN_YEAR)
Pick the best non-null value from a group (quality-aware COALESCE)