Closed fritz-astronomer closed 2 months ago
acc'd to this https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/operators.html#jinja-templating
it looks like ObjectStoragePath doesn't have template_fields =
I tried a few things:
ObjectStoragePath.template_fields = (...)
doesn't work, because the init field is *args
(I tried with args
)
I can't do render_template(...)
in my operator, I think, because ObjectStoragePath
is read-only
The current render_template
does not handle the case when value is ObjectStoragePath, and I think it can be added.
As a workaround before it's added, I think you can override render_template
in your operator to render and rebuild the path.
Description
ObjectStoragePath
should be able to handle Jinja TemplatesUse case/motivation
If I have an operator, that has an ObjectStoragePath argument
and am using it in a DAG, with templating
Templating didn't seem to work
Related issues
No response
Are you willing to submit a PR?
Code of Conduct