phanikumv commented on code in PR #77080:
URL: https://github.com/apache/airflow/pull/77080#discussion_r4691519070


##########
airflow-core/adr/lang-sdk/0016-mapped-tasks-across-lang-sdks.md:
##########
@@ -338,7 +349,7 @@ Before the runtime starts, the supervisor turns every 
binding into what the runt
 | `literal` | passes it on | `literal` |
 | `xcom` | GETs the row through the XCom backend, then takes `element_index` 
when set | `literal` |
 | `tuple` | reads every part and puts them in one array, in zip order | 
`literal` |
-| any of these with `kwarg`, no `apply_map` | then takes that key, else reads 
`fallback`; with neither, fails the task | `literal` |
+| any of these with `kwarg`, no `apply_map` | then takes that key, else reads 
`fallback`; with neither, fails the task. Fails the task on a key of the dict 
that no `kwarg` binding names | `literal` |

Review Comment:
   The conflict is between lines 455 and 456. If a `partial()` argument is sent 
as line 456 describes, line 352 takes the row's value and the new rule at lines 
247-253 never fires. If it's sent as line 455 describes, the unknown-key check 
does fail the row.
   
   Which tasks it affects: stub tasks called through `expand_kwargs()`, meaning 
bindings without spread. In practice that is:
   • a Python Dag with a `@task.stub` handler written in another language;
   • a YAML run: task using the $expand key form. Decision 5 at YAML ADR line 
93 points to this rule.
   • the apply_map gap affects only stubs using expand_kwargs(rows.map(f)). 
YAML defers $map, so it doesn't affect YAML yet.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to