API Reference

resolve_fn


resolve_fn

resolve_fn(column_name, data_sources_path=None)

Context function that do not need to be imported.

In the expression {{resolve_fn(column_name, data_sources_path=['A', 'B'])}}, column_name represents name of the column in 'B' data source and data_sources_path represents join hierarchy.

# Column category from the joined table products
"CAST({{ resolve_fn('category', data_sources_path=['products']) }} AS STRING)"


Parameters

column_name : str
Name of the column.


data_sources_path : list[str]
Default: None
Table joins hierarchy.

Returns

Sanitized column name.