aoelvp94 commented on PR #77249:
URL: https://github.com/apache/airflow/pull/77249#issuecomment-7085198206

   Thanks for the review; I replied in each thread. Testing and three open 
questions:
   
   `./gradlew test` passes on the branch rebased onto current `main` (`sdk`: 
420 tests), as do the docs builds `breeze verify` lists. An end-to-end run on 
Airflow 3.4.0, with the fix overlaid on `airflow-sdk` 1.0.0, shows the three 
cases: unpatched, patched without `jackson-module-scala`, and patched with it 
(https://github.com/aoelvp94/airflow-scala-spark-demo/tree/setxcom-loud-failure-demo/setxcom-demo).
   
   1. Without `jackson-module-scala`, a Scala `Seq`, `Map` or `Option` still 
has bean properties (`empty`, `traversableAgain`, `defined`), so it is stored 
as those rather than rejected; only empty objects such as a case class fail. 
The docs say Scala values need the module. Is that acceptable, or should the 
encoder also reject such values?
   2. `findAndRegisterModules()` throws if a module on the classpath does not 
match the SDK's Jackson version, for example `jackson-module-scala` 2.21 from 
Spark next to `jackson-databind` 2.22 from the SDK. Here that would fail the 
push, which `ConfBinding` already does today for Dag run conf. Should 
registration be guarded (skip the module with a warning), or is failing loudly 
right since such a bundle cannot run Spark either?
   3. `ConfBinding` and `ArgValues` read values with that same module-enabled 
mapper, so in a Scala bundle an `Object`-typed conf or argument field may come 
back as a Scala collection rather than a `java.util` one. I have not checked 
that path end to end. Is that intended there, or worth a separate issue?


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