Isn't _* varargs? So you should be able to use Java array?
On Tue, May 15, 2018, 06:29 onmstester onmstester
wrote:
> I could not find how to pass a list to isin() filter in java, something
> like this could be done with scala:
>
> val ids = Array(1,2)
>
I could not find how to pass a list to isin() filter in java, something like
this could be done with scala:
val ids = Array(1,2) df.filter(df("id").isin(ids:_*)).show
But in java everything that converts java list to scala Seq fails with
unsupported literal type exception: