surfacecleaningcomplete
Cleaningscalar · returns varchar

COMPLETE

Fill in missing parts of a partial value using context

Per-row — runs once for each row.

cleaningllmtext

Syntax

COMPLETE({{ value }}, '{{ context }}')
{{ value }} COMPLETED AS '{{ context }}'

Arguments

nametypedescription
valueVARCHAR
contextVARCHARType and context: 'address', 'US phone', 'full name given email...'

About

Fill in the missing parts of a partial value using context — for example, expand an incomplete address into a full street/city/state form, or complete a truncated product name from its category. Takes the partial value plus a context string that describes what the full value should look like. Useful for data-entry cleanup, auto-completion on legacy records, or expanding abbreviations back to their full forms. Prefer FILL when the value is entirely null/empty and you want it inferred from scratch. COMPLETE assumes the input has the core of the answer and just needs missing pieces added.

Examples

Partial phone completed

SELECT
  complete ('555-1234', 'US phone number')

Nearby rabbit holes

same domain
Climb back to The Looking Glass