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:
If you are using the Spark 3.0.1 version, the latest at the days I'm writing this answer, you have to select version 3.0.16 for the two janino dependencies for the @Maksym solution that works very well.