You probably want to set render_template_as_native_obj=True
for your DAG:
render_template_as_native_obj – If True, uses a Jinja
NativeEnvironment
to render templates as native Python types. If False, a JinjaEnvironment
is used to render templates as string values.