You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by xiaobo <gu...@qq.com.INVALID> on 2022/02/11 15:01:13 UTC
回复:reply: calcite multi-threading problem
I mean it seems not a janino related problem, if we put the connection opening and sql executing operationes in the same thread the same error does not appear, but with a sql related problem with I sent in another mail.
------------------ 原始邮件 ------------------
发件人: "xiaobo " <guxiaobo1982@qq.com>;
发送时间: 2022年2月11日(星期五) 晚上10:46
收件人: "dev"<dev@calcite.apache.org>;
主题: reply: calcite multi-threading problem
we use maven and the effective pom contains only the 3.1.0 version of janino as following:
<properties>
...
<janino.version>3.1.0</janino.version>
...
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>commons-compiler</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>commons-compiler-jdk</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>3.1.0</version>
</dependency>
there is no other dependent versions of janino
------------------ 原始邮件 ------------------
发件人: "dev" <dm.sysolyatin@gmail.com>;
发送时间: 2022年2月11日(星期五) 晚上9:18
收件人: "dev"<dev@calcite.apache.org>;
主题: Re: calcite multi-threading problem
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 <
estanilovskiy@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,&nbsp; and drools uses janino
> > too, is there a version list of janino which calcite supports?
> >
> >
> >
> >
> > ---Original---
> > From: "Dmitry Sysolyatin"<dm.sysolyatin@gmail.com&gt;
> > Date: Fri, Feb 11, 2022 18:30 PM
> > To: "dev"<dev@calcite.apache.org&gt;;
> > Subject: Re: calcite multi-threading problem
> >
> >
> > Hi!
> >
> It&nbsp;looks&nbsp;like&nbsp;a&nbsp;dependency&nbsp;issue,&nbsp;not&nbsp;like&nbsp;a&nbsp;multi-threading&nbsp;issue.&nbsp;Most
> >
> likely&nbsp;you&nbsp;have&nbsp;some&nbsp;dependency&nbsp;that&nbsp;use&nbsp;another&nbsp;version&nbsp;of&nbsp;janino&nbsp;but
> > calcite&nbsp;requires&nbsp;another&nbsp;one
> >
> >
> On&nbsp;Fri,&nbsp;Feb&nbsp;11,&nbsp;2022&nbsp;at&nbsp;12:18&nbsp;PM&nbsp;xiaobo&nbsp;<guxiaobo1982@qq.com.invalid
> &gt;&nbsp;wrote:
> >
> > &gt;&nbsp;Hi,
> > &gt;
> > &gt;
> >
> &gt;&nbsp;we&nbsp;open&nbsp;a&nbsp;calcite&nbsp;connection&nbsp;with&nbsp;ReflectiveSchema&nbsp;in&nbsp;one&nbsp;thread,&nbsp;and
> >
> &gt;&nbsp;execute&nbsp;sqls&nbsp;in&nbsp;other&nbsp;&nbsp;threads&nbsp;against&nbsp;the&nbsp;connection,&nbsp;but&nbsp;failed&nbsp;with
> > &gt;&nbsp;this&nbsp;error
> > &gt;
> > &gt;
> > &gt;
> > &gt;
> > &gt;&nbsp;com.google.common.util.concurrent.ExecutionError:
> > &gt;&nbsp;java.lang.NoSuchMethodError:
> > &gt;
> >
> &gt;&nbsp;org.codehaus.commons.compiler.CompilerFactoryFactory.getDefaultCompilerFactory(Ljava/lang/ClassLoader;)
> > &gt;
> > &gt;&nbsp;Lorg/codehaus/commons/compiler/ICompilerFactory;
> > &gt;
> > &gt;
> >
> &gt;&nbsp;do&nbsp;we&nbsp;miss&nbsp;anything&nbsp;regarding&nbsp;to&nbsp;multi-threading&nbsp;with&nbsp;calcite?
>