[jira] [Created] (CALCITE-4381) CoreQuidemTest#8 throws ArrayIndexOutOfBoundsException when enable ProjectJoinTransposeRule

2020-11-05 Thread Jiatao Tao (Jira)
Jiatao Tao created CALCITE-4381: --- Summary: CoreQuidemTest#8 throws ArrayIndexOutOfBoundsException when enable ProjectJoinTransposeRule Key: CALCITE-4381 URL: https://issues.apache.org/jira/browse/CALCITE-4381

Re: [HELP] NPE on WebSphere 9 when starting application using calcite library (potential circular dependency in class initialization)

2020-11-05 Thread Julian Hyde
The problem occurs at InferTypes line 41, which is a lambda: public static final SqlOperandTypeInference FIRST_KNOWN = (callBinding, returnType, operandTypes) -> { … }; And the error is to do with method handles, which are related to lambdas. Can you instead convert it

Re: [HELP] NPE on WebSphere 9 when starting application using calcite library (potential circular dependency in class initialization)

2020-11-05 Thread Ruben Q L
Thanks for the answers. Indeed, WebSphere uses IBM's own JVM, and my hypothesis is that its class loader follows a different (and unlucky) order to load Calcite classes. I will continue digging into it, see if I can isolate the problem, and open a Jira if there is in fact something to be addressed

[jira] [Created] (CALCITE-4380) Make class SqlNodeList implement List

2020-11-05 Thread Julian Hyde (Jira)
Julian Hyde created CALCITE-4380: Summary: Make class SqlNodeList implement List Key: CALCITE-4380 URL: https://issues.apache.org/jira/browse/CALCITE-4380 Project: Calcite Issue Type: Bug

Re: [DISCUSS] Make SqlNodeList implement ListSqlNode>

2020-11-05 Thread Julian Hyde
I don’t think it’s necessary to quantify the performance improvements. If it’s the right thing to do, and the incompatibilities are not significant, let’s just do it. I have logged https://issues.apache.org/jira/browse/CALCITE-4380 . > On

Re: [HELP] NPE on WebSphere 9 when starting application using calcite library (potential circular dependency in class initialization)

2020-11-05 Thread Julian Hyde
As you’re using Websphere, it’s possible you’re using IBM’s Java runtime. Is that so? Julian > On Nov 5, 2020, at 2:23 PM, Stamatis Zampetakis wrote: > > Hi Ruben, > > Since you mentioned WebSphere I am wondering if it is related to some weird > problem in the ClassLoader. > If it was only

Re: ASF builds meeting in 4 hours (1900 UTC)

2020-11-05 Thread Stamatis Zampetakis
Great summary Vladimir, thanks for the update! I'm glad that we don't need to do much on our side :) Best, Stamatis On Thu, Nov 5, 2020 at 12:29 AM Vladimir Sitnikov < sitnikov.vladi...@gmail.com> wrote: > Stamatis>overcome these limitations for Calcite but I am not yet sure we > need this > >

Re: [HELP] NPE on WebSphere 9 when starting application using calcite library (potential circular dependency in class initialization)

2020-11-05 Thread Stamatis Zampetakis
Hi Ruben, Since you mentioned WebSphere I am wondering if it is related to some weird problem in the ClassLoader. If it was only a JVM problem I guess it could be reproduced outside of WebSphere just by referencing a few Calcite classes in some specific order. Other than that, it is better to

Re: [DISCUSS] Make SqlNodeList implement ListSqlNode>

2020-11-05 Thread Rui Wang
+1 on potential performance gain. If I have some time, I will try to research and understand how fast the space preallocation can offer. -Rui On Thu, Nov 5, 2020 at 12:34 AM Fan Liya wrote: > IMO, the major advantage of Iterable over List is that we do not need to > know all the elements

[jira] [Created] (CALCITE-4379) Meta.Frame created with java float values in rows hits a ClassCastException in toProto()

2020-11-05 Thread Dmitri Bourlatchkov (Jira)
Dmitri Bourlatchkov created CALCITE-4379: Summary: Meta.Frame created with java float values in rows hits a ClassCastException in toProto() Key: CALCITE-4379 URL:

[HELP] NPE on WebSphere 9 when starting application using calcite library (potential circular dependency in class initialization)

2020-11-05 Thread Ruben Q L
Hello everyone, I'm getting a strange error on WebSphere 9 (on Ubuntu) when trying to start an application that uses Calcite (shaded) library. The exception message says: ** error [-]: Unexpected error. ** ... ** Caused by: java.lang.BootstrapMethodError:

[jira] [Created] (CALCITE-4378) Included ProjectJoinTransposeRule in the main optimizer process

2020-11-05 Thread Jiatao Tao (Jira)
Jiatao Tao created CALCITE-4378: --- Summary: Included ProjectJoinTransposeRule in the main optimizer process Key: CALCITE-4378 URL: https://issues.apache.org/jira/browse/CALCITE-4378 Project: Calcite

Re: [DISCUSS] Make SqlNodeList implement ListSqlNode>

2020-11-05 Thread Fan Liya
IMO, the major advantage of Iterable over List is that we do not need to know all the elements before traversing the collection. According to the current implementation, however, SqlNodeList is internally backed by a List, so the advantage of Iterable no longer exists. Therefore, I think it is

[jira] [Created] (CALCITE-4377) Fix the return nullability inference during rex simplification

2020-11-05 Thread Danny Chen (Jira)
Danny Chen created CALCITE-4377: --- Summary: Fix the return nullability inference during rex simplification Key: CALCITE-4377 URL: https://issues.apache.org/jira/browse/CALCITE-4377 Project: Calcite