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



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