Relative Content

Tag Archive for macrosjinja2user-defined-functionsdbt

How to “call” one python UDF in another python UDF in DBT?

I have a udf in DBT in python in a macro as ‘is_valid’ and few others as ‘get_latest_value’ and ‘get_best_value’. I would essentially be using the logic for ‘is_valid’ in all other macros, is there a way to reuse the same code without essentially copy pasting?