Assertions reference

An assertion is a query that should return 0 rows, and can be used to check the state of your tables as part of your pipeline.

For examples and usage, check out the assertions guide.

ref()

Returns the full, query-able name of the referenced table, and adds the table to dependencies.

ref(tableName)

Arguments

FieldTypeDescription
tableNamestringThe name of the table to reference

dependencies()

Specifies one or more tables, operations or assertions that this node depends on. Supports wildcard matches with "*".

dependencies(deps)

Arguments

FieldTypeDescription
depsstring | string[]Either a single dependency name, or a list