Open alextroshin opened 1 month ago
Thanks for reporting @alextroshin! dag-factory
and astro-sdk
have not been tested together, but I suspect they won't play nicely as is since they are both abstractions to generate tasks and dags.
Based on the error message, load_csv
is being interpreted as a function arg for the operator, not a callable. Similar to python operators, dag-factory would need to support the equivalent of python_callable_name
and python_callable_file
to tell dag-factory where the callable function is located. The operators that support that are listed here: https://github.com/astronomer/dag-factory/blob/main/dagfactory/dagbuilder.py#L331
While I can't promise that it will work, it may be as simple as adding the operator to the list. Is this something you'd be willing to work on?
Hello! Sorry for the newbie question. How to use dag-factory with Astro Python SDK? Is this possible?
I'm trying to adapt the titanic example. There's a piece of code that loads the dataset:
I'm trying to rewrite via yaml:
Callable load_csv added to DAG generation script:
I get an error:
How to implement it correctly? Maybe there are some examples? Thanks in advance!