Actually, I had the same problem with spark. Spark 3.2.1 uses the old version of janino, calcite 1.29 uses the new version of janino and they are not compatible. If I downgrade janino version to version which spark uses I got an error not method found exception If I upgrade the janino version to the version which calcite uses I get the same error but with another method.
As a result, I built a separate calcite jar package where I shaded janino dependency On Fri, Feb 11, 2022 at 2:39 PM stanilovsky evgeny < estanilovs...@gridgain.com> wrote: > for example on a current calcite branch: > grep janino gradle.properties > janino.version=3.1.6 > > > > yes, we use drools in the same project, and drools uses janino > > too, is there a version list of janino which calcite supports? > > > > > > > > > > ---Original--- > > From: "Dmitry Sysolyatin"<dm.sysolya...@gmail.com> > > Date: Fri, Feb 11, 2022 18:30 PM > > To: "dev"<dev@calcite.apache.org>; > > Subject: Re: calcite multi-threading problem > > > > > > Hi! > > > It looks like a dependency issue, not like a multi-threading issue. Most > > > likely you have some dependency that use another version of janino but > > calcite requires another one > > > > > On Fri, Feb 11, 2022 at 12:18 PM xiaobo <guxiaobo1...@qq.com.invalid > > wrote: > > > > > Hi, > > > > > > > > > > we open a calcite connection with ReflectiveSchema in one thread, and > > > > execute sqls in other threads against the connection, but failed with > > > this error > > > > > > > > > > > > > > > com.google.common.util.concurrent.ExecutionError: > > > java.lang.NoSuchMethodError: > > > > > > > org.codehaus.commons.compiler.CompilerFactoryFactory.getDefaultCompilerFactory(Ljava/lang/ClassLoader;) > > > > > > Lorg/codehaus/commons/compiler/ICompilerFactory; > > > > > > > > > > do we miss anything regarding to multi-threading with calcite? >