Re: copy method in RelSubset class

2018-02-14 Thread Alessandro Solimando
those tests, so I can advance with the PR? Best regards, Alessandro On 12 February 2018 at 09:56, Alessandro Solimando < alessandro.solima...@gmail.com> wrote: > Hello Julian, > If I got it right, trimming the query plan for unused fields is a top-down > procedure removing any ref

subquery leading to a "java.lang.ClassCastException: RexSubQuery cannot be cast to RexLocalRef"

2018-02-14 Thread Alessandro Solimando
Hello, while executing this query Calcite tries to cast the subquery (RexSubQuery) to a local reference (RexLocalRef), resulting in a ClassCastException. Here is the query: > > *select ** > *from (values (1, 'a'), (2, 'b'), (3, 'b'), (4, 'c'), (2, 'c')) as t(x, y)* > *where exists (* > * select

Re: "org.codehaus.commons.compiler.CompileException"

2018-02-14 Thread Alessandro Solimando
Hi again, I have re-checked more carefully, the issue has indeed been fixed, sorry about that. On 14 February 2018 at 23:14, Alessandro Solimando < alessandro.solima...@gmail.com> wrote: > Hi Julian, > I exclude that because in that branch I have got the two mentioned in the > JIR

Re: "org.codehaus.commons.compiler.CompileException"

2018-02-14 Thread Alessandro Solimando
icate? > > > > On Feb 13, 2018, at 1:29 PM, Alessandro Solimando < > alessandro.solima...@gmail.com> wrote: > > > > Hello, > > the exception in the object is raised when the following query is issued > to > > Calcite: > > > > *select x* >

"org.codehaus.commons.compiler.CompileException"

2018-02-13 Thread Alessandro Solimando
Hello, the exception in the object is raised when the following query is issued to Calcite: *select x* > > > > > *from (values (1, 'a'), (2, 'b')) as t(x, y)where x > 1 unionselect xfrom > (values (1, 'a'), (2, 'b'), (1, 'b'), (2, 'c'), (2, 'c')) as t(x, y)where x > > 1* I found several

Re: copy method in RelSubset class

2018-02-12 Thread Alessandro Solimando
why you want to copy a RelSubset? > > A RelSubset is an equivalence class - a set of relational expressions that > always return the same results. So if you made a copy you’d be creating > another equivalent relational expression - that by definition should be in > the original Re

copy method in RelSubset class

2018-02-11 Thread Alessandro Solimando
Hello community, I am adding a SparkAdapter test with the following query: > select * > from *(values (1, 'a'), (2, 'b'), (3, 'b'), (4, 'c'), (2, 'c')) as t(x, y)* > where x between 3 and 4 > > When executed, an exception is thrown (the full stack trace is at the end of the email) in *copy*

Re: "INTERSECT ALL" query fails for SparkAdapter

2018-02-09 Thread Alessandro Solimando
. > > See https://issues.apache.org/jira/browse/CALCITE-1446. > > On Fri, Feb 9, 2018 at 2:17 PM, Alessandro Solimando > <alessandro.solima...@gmail.com> wrote: > > Hello, > > I am currently extending the unit tests for SparkAdapter. > > > > The fol

Re: mvn test fails for calcite-avatica

2018-01-21 Thread Alessandro Solimando
gt; > > > > > On 20 January 2018 at 15:55, Michael Mior <mm...@uwaterloo.ca> wrote: > > > >> All tests pass for me. I'm not too familiar with the Avatica side of > things > >> so I don't have any particular suggestions but I'm sure someone else > wil

[jira] [Created] (CALCITE-2145) Avatica tests fail depending on local timezone

2018-01-21 Thread Alessandro Solimando (JIRA)
Alessandro Solimando created CALCITE-2145: - Summary: Avatica tests fail depending on local timezone Key: CALCITE-2145 URL: https://issues.apache.org/jira/browse/CALCITE-2145 Project: Calcite

Re: mvn test fails for calcite-avatica

2018-01-20 Thread Alessandro Solimando
18 at 15:55, Michael Mior <mm...@uwaterloo.ca> wrote: > All tests pass for me. I'm not too familiar with the Avatica side of things > so I don't have any particular suggestions but I'm sure someone else will > chime in. > > -- > Michael Mior > mm...@apache.org >

mvn test fails for calcite-avatica

2018-01-20 Thread Alessandro Solimando
Hello everyone, I have tried to setup calcite-avatica in order to start working on [CALCITE-508], but mvn test fails: [...] > Results : > Failed tests: > > RemoteDriverTest.testBatchInsertWithDates:1379->eachConnection:228->access$1100:91->executeBatchInsertWithDates:1444 > Wrong day for row 0

presentation and setup issue with intellij

2018-01-05 Thread Alessandro Solimando
Hello everyone, I recently got to know Calcite, and given that I have been working on query processing optimization (XML, RDBMS and triple stores) during my PhD and postdoc, I thought it could be a good way to keep some concepts fresh and to broaden my knowledge of internals of different data

<    1   2   3