You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2014/09/18 03:04:34 UTC

[jira] [Created] (OPTIQ-415) Assertion when running Tpch 02 with optiq tracing enabled

Aman Sinha created OPTIQ-415:
--------------------------------

             Summary: Assertion when running Tpch 02 with optiq tracing enabled
                 Key: OPTIQ-415
                 URL: https://issues.apache.org/jira/browse/OPTIQ-415
             Project: Optiq
          Issue Type: Bug
    Affects Versions: 0.9.0-incubating
            Reporter: Aman Sinha
            Assignee: Julian Hyde


I was trying to determine why TPCH query 02 was taking a long time during planning.  I ran the following JUnit test in TpchTest: 
  @Test public void testQuery02Conversion() 

I enabled tracing in optiq by setting the -Doptiq.debug and -Djava.util.logging.config.file 

and encountered the following assert: 
net.hydromatic.optiq.test.OptiqAssert$AssertQuery.convertMatches(OptiqAssert.java:1105)
	at net.hydromatic.optiq.impl.tpch.TpchTest.testQuery02Conversion(TpchTest.java:821)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
net.hydromatic.optiq.test.OptiqAssert.assertPrepare(OptiqAssert.java:461)
	... 25 more
Caused by: java.lang.reflect.UndeclaredThrowableException
	at com.sun.proxy.$Proxy20.getCumulativeCost(Unknown Source)
	at org.eigenbase.rel.metadata.RelMetadataQuery.getCumulativeCost(RelMetadataQuery.java:110)
	at org.eigenbase.relopt.AbstractRelOptPlanner.getCost(AbstractRelOptPlanner.java:245)
	at org.eigenbase.relopt.hep.HepPlanner.dumpGraph(HepPlanner.java:935)
	at org.eigenbase.relopt.hep.HepPlanner.setRoot(HepPlanner.java:123)
	at org.eigenbase.sql2rel.RelDecorrelator.removeCorrelationViaRule(RelDecorrelator.java:229)
	at org.eigenbase.sql2rel.RelDecorrelator.decorrelateQuery(RelDecorrelator.java:130)
	at org.eigenbase.sql2rel.SqlToRelConverter.decorrelateQuery(SqlToRelConverter.java:2767)
	at org.eigenbase.sql2rel.SqlToRelConverter.decorrelate(SqlToRelConverter.java:339)
	at net.hydromatic.optiq.prepare.OptiqPrepareImpl$OptiqPreparingStmt.decorrelate(OptiqPrepareImpl.java:729)
	at net.hydromatic.optiq.prepare.Prepare.prepareSql(Prepare.java:247)
	at net.hydromatic.optiq.prepare.Prepare.prepareSql(Prepare.java:178)
	at net.hydromatic.optiq.prepare.OptiqPrepareImpl.prepare2_(OptiqPrepareImpl.java:411)
	at net.hydromatic.optiq.prepare.OptiqPrepareImpl.prepare_(OptiqPrepareImpl.java:317)
	at net.hydromatic.optiq.prepare.OptiqPrepareImpl.prepareSql(OptiqPrepareImpl.java:286)
	at net.hydromatic.optiq.jdbc.OptiqConnectionImpl.parseQuery(OptiqConnectionImpl.java:164)
	at net.hydromatic.optiq.jdbc.OptiqConnectionImpl.prepareStatement(OptiqConnectionImpl.java:140)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)