Eric Rodriguez
03/25/2024, 8:38 AMlocal[*]
and against a cluster on docjer-compose.
But then I began to save delta
forma instead of parquet
and now I get
cannot assign instance of java.lang.invoke.SerializedLambda to field org.apache.spark.sql.catalyst.expressions.ScalaUDF.f of type scala.Function1 in instance of org.apache.spark.sql.catalyst.expressions.ScalaUDF``
when I run against the cluster (works on lcoal). Any idea how I may debug this?Jolan Rensen [JB]
03/25/2024, 11:31 AMfreeCompilerArgs.add("-Xlambdas=class")
to see if that makes a difference. That has helped me in the pastEric Rodriguez
03/25/2024, 11:33 AMEric Rodriguez
03/25/2024, 1:13 PMJolan Rensen [JB]
03/25/2024, 1:14 PMJolan Rensen [JB]
03/25/2024, 1:14 PM<arg>-Xlambdas=class</arg>
Eric Rodriguez
03/25/2024, 1:51 PMJolan Rensen [JB]
03/25/2024, 1:52 PMEric Rodriguez
03/26/2024, 12:50 PMLocalDate
from the parameters:
sports.toDS()
.let { addDate(it, now.year, now.monthValue, now.dayOfMonth) }
instead of extracting the values and passing those:
val now = LocalDate.now()
val year = now.year
val month = now.monthValue
val day = now.dayOfMonth
sports.toDS()
.let { addDate(it, year, month, day) }