That's a compile error. If it said this were ambiguous, I'd say this is probably another instance where the legacy overloads for Java become ambiguous in 2.12 / 3.0 so you have to cast your function to the specific Scala overload. That's not quite the error though, but, might try it?
As you say you can also put in "Unit" at the end to 'fix' it as a workaround but shouldn't be necessary.
I'm not sure why the second overload doesn't apply as DataFrame is a Dataset[Row].
On Thu, Oct 22, 2020 at 9:02 AM German Schiavon <[hidden email]> wrote:
Sorry it does compile but when you run it, it fails.