mirror of
https://github.com/apache/airflow.git
synced 2026-11-04 07:12:48 +00:00
Whether `cypher` or `sql` was passed is a property of how the Dag was written, not of the rendered value, and the constructor is the only place that can read it: under render_template_as_native_obj a supplied field can render to None, so the same check in execute reports an argument the author did provide as missing. Checking at construction also surfaces the mistake as a Dag import error instead of once per task instance. The execute guard stays: a passed field can still render to None and the hook needs a query string. related: #70503