Hello,
I have a script on definition/query.sqlx:
Solved! Go to Solution.
Here is a solution:
I have created a pyhton script that can execute the query and produce a string : q = '[{"obj":"t1","val":"'ok'"},{"obj":"t2","val":"'ko'"}]'
The q string value is stored in a json file in dataform project. This task can be automated using airflow (I use the operator DataformWriteFileOperator to create the json file), for exemple : includes/q_string.json
The path of the json file can be considered as a variable in the dataform.json file