Skip to content

Commit eb78d84

Browse files
millintomasfarias
authored andcommitted
fix: add comment for regexp
1 parent eb111bc commit eb78d84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

airflow_dbt_python/hooks/target.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def get_dbt_details_from_connection(self, conn: Connection) -> dict[str, Any]:
220220
conn = copy(conn)
221221
extra_dejson = conn.extra_dejson
222222
options = extra_dejson.pop("options")
223+
# This is to pass options (e.g. `-c search_path=myschema`) to dbt in the required form
223224
for k, v in re.findall(r"-c (\w+)=(.*)$", options):
224225
extra_dejson[k] = v
225226
conn.extra = json.dumps(extra_dejson)

0 commit comments

Comments
 (0)