https://pulumi.com logo
Title
p

powerful-room-57148

05/18/2022, 2:41 AM
Is it possible to implement a “dynamic provider” with the Java SDK, at this point?
t

tall-librarian-49374

05/18/2022, 2:53 AM
No, dynamic providers aren’t supported for Java (and neither for .NET and Go)
m

mammoth-salesclerk-61945

05/18/2022, 3:18 AM
iirc dynamic providers rely on function serialization
p

powerful-room-57148

05/18/2022, 2:06 PM
got it — thank you!
Just a thought, with the caveat that I have zero idea why function serialization is involved with dynamic providers (and don’t really want to know) — but it would be pretty cool if at some point we had a way to create custom ad-hoc (non-dynamic) providers in Java, .NET, and Go. Speaking for myself, this would be super helpful.
e

enough-garden-22763

05/20/2022, 9:24 PM
Spark serializes closures somehow, at least in Scala. I was trying to find out how that happens. Perhaps https://stackoverflow.com/questions/22592811/task-not-serializable-java-io-notserializableexception-when-calling-function-ou
It should be possible on the JVM, but it’s unclear that it’s going to be an easy ride.
b

brave-dawn-64711

05/23/2022, 10:49 AM
java can serialize functions and lambdas, but I haven't looked yet at what dynamic providers require to work