Support queries like:
MERGE INTO <dataset>
USING <source>
ON dataset.id = source.id
WHEN MATCHED AND target.text <> source.text THEN UPDATE
SET text = source.text,
updated_at = timestamp_now(),
text_embedding = embedding(source.text)
WHEN NOT MATCHED THEN INSERT
(text, created_at, updated_at, text_embedding)
VALUES
(source.text, timestamp_now(), timestamp_now(), embedding(source.text))
This would allow deferring computations, such as embedding functions, until we find they are actually needed.
Support queries like:
This would allow deferring computations, such as embedding functions, until we find they are actually needed.