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


##########
java-sdk/sdk/src/main/kotlin/org/apache/airflow/sdk/execution/ArgBinding.kt:
##########
@@ -70,7 +70,14 @@ internal fun decodeArgBindings(raw: Any?): List<ArgBinding> {
     check(entry is Map<*, *>) { "arg_bindings entry is not a map: $entry" }
     val name = checkNotNull(entry["name"] as? String) { "arg_bindings entry 
has no name: $entry" }
     check(seen.add(name)) { "arg_bindings entries have duplicate name: 
'$name'" }
-    when (val kind = entry["kind"]) {
+    val kind = entry["kind"]
+    if (kind == "sequence" || kind == "tuple") 
error(mappedTaskNotImplemented(name, "binding kind '$kind'"))
+    if (kind == "literal" || kind == "xcom") {
+      UNSUPPORTED_FIELDS.firstOrNull { entry[it] != null && entry[it] != false 
}?.let {

Review Comment:
   No existing test covers this.Same gap as in the Go and TS checks: no test 
sends `apply_map: false, kwarg: null, fallback: null` explicitly, which is what 
the supervisor sends for every binding. If this check becomes 
`entry.containsKey(it)`, `:sdk:test` still passes, but every stub task with 
arguments would fail. Please add a case to `TaskArgsTest` that binds an `xcom` 
and a `literal` with those fields present.
   



-- 
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