Running a Spark SQL (v2.1.0_2.11) program in Java immediately fails with the following exception, as soon as the first action is called on a dataframe:
java.lang
this error still arises with org.apache.spark:spark-sql_2.12:2.4.6, but the Janino version have to be used is 3.0.16 With Gradle:
implementation 'org.codehaus.janino:commons-compiler:3.0.16' implementation 'org.codehaus.janino:janino:3.0.16'