Closed gowravshekar closed 6 years ago
withArgs
method is based on adapted-args
feature and if you use -Yno-adapted-args
compiler will always warn about that.
Also there is another way of composing parameters using &
:
(arg[Int]("x") & arg[Int]("y")).onSparkContext((x: Int, y:Int, sc: SparkContext) => ...
Similar issues are present upon passing more than 1 argument to
withArgs
. Any way to pass multiple arguments towithArgs
without this warning?