calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Sitnikov <sitnikov.vladi...@gmail.com>
Subject Re: ProjectMergeRule
Date Tue, 21 Jul 2015 19:30:28 GMT
I did try using force=true, and:
1) I observed no Calcite test failures. That is strange, since I
expected a least a test or two fail due to column names
2) Example CSV failed with some assert, however a couple of subsequent
mvn install -rf :calcite-example-csv healed it somehow. So we might
have some race condition in metadata inialization:

testDateType(org.apache.calcite.test.CsvTest)  Time elapsed: 0.709 sec
 <<< FAILURE!

java.lang.AssertionError: no provider found (rel=HepRelVertex#171,
m=interface org.apache.calcite.rel.metadata.BuiltInMetadata$Collation);
a backstop provider is recommended
at org.apache.calcite.rel.AbstractRelNode.metadata(AbstractRelNode.java:272)
at org.apache.calcite.rel.metadata.RelMetadataQuery.collations(RelMetadataQuery.java:294)
at org.apache.calcite.rel.metadata.RelMdCollation.calc(RelMdCollation.java:180)
at org.apache.calcite.adapter.enumerable.EnumerableCalc$2.get(EnumerableCalc.java:94)
at org.apache.calcite.adapter.enumerable.EnumerableCalc$2.get(EnumerableCalc.java:92)
at org.apache.calcite.plan.RelTraitSet.replaceIfs(RelTraitSet.java:238)
at org.apache.calcite.adapter.enumerable.EnumerableCalc.create(EnumerableCalc.java:91)
at org.apache.calcite.adapter.enumerable.EnumerableFilterToCalcRule.onMatch(EnumerableFilterToCalcRule.java:47)
at org.apache.calcite.plan.AbstractRelOptPlanner.fireRule(AbstractRelOptPlanner.java:326)
at org.apache.calcite.plan.hep.HepPlanner.applyRule(HepPlanner.java:515)
at org.apache.calcite.plan.hep.HepPlanner.applyRules(HepPlanner.java:393)
at org.apache.calcite.plan.hep.HepPlanner.executeInstruction(HepPlanner.java:255)
at org.apache.calcite.plan.hep.HepInstruction$RuleInstance.execute(HepInstruction.java:125)
at org.apache.calcite.plan.hep.HepPlanner.executeProgram(HepPlanner.java:207)
at org.apache.calcite.plan.hep.HepPlanner.findBestExp(HepPlanner.java:194)
at org.apache.calcite.tools.Programs$2.run(Programs.java:198)
at org.apache.calcite.tools.Programs$SequenceProgram.run(Programs.java:320)
at org.apache.calcite.prepare.Prepare.optimize(Prepare.java:142)
at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:280)
at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:188)
at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:669)
at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:570)
at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:539)
at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:173)
at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:561)
at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:477)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:110)
at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:130)
at org.apache.calcite.test.CsvTest.testDateType(CsvTest.java:343)

Vladimir

Mime
View raw message