Files
Jyun-An Chen dbb5c7ffff Fail Neo4jOperator argument mistakes at Dag parse time (#70508)
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
2026-07-30 09:22:05 +03:00
..