You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sergey Nuyanzin (JIRA)" <ji...@apache.org> on 2018/07/11 10:59:00 UTC
[jira] [Created] (CALCITE-2409) SparkAdapterTest fails on Windows
Sergey Nuyanzin created CALCITE-2409:
----------------------------------------
Summary: SparkAdapterTest fails on Windows
Key: CALCITE-2409
URL: https://issues.apache.org/jira/browse/CALCITE-2409
Project: Calcite
Issue Type: Bug
Reporter: Sergey Nuyanzin
Assignee: Julian Hyde
If there is no {{tmp}} folder on a disk where {{mvn clean install}} started it will fail with a trace as below.
Here it is a proposal to create the folder if it is absent (another option could be usage of {{System.getProperty("java.io.tmpdir")}} instead of {{"/tmp"}})
{noformat}
at org.apache.calcite.avatica.Helper.wrap(Helper.java:37)
at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:108)
at org.apache.calcite.prepare.CalcitePrepareImpl$CalcitePreparingStmt.implement(CalcitePrepareImpl.java:1237)
at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:331)
at org.apache.calcite.prepare.Prepare.prepareSql(Prepare.java:230)
at org.apache.calcite.prepare.CalcitePrepareImpl.prepare2_(CalcitePrepareImpl.java:772)
at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:636)
at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:606)
at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:229)
at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:550)
at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:675)
at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:156)
... 28 more
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: \tmp\CalciteProgram105359.java (The system cannot find the path specified)
at org.apache.calcite.adapter.spark.SparkHandlerImpl.compile(SparkHandlerImpl.java:139)
at org.apache.calcite.adapter.enumerable.EnumerableInterpretable.toBindable(EnumerableInterpretable.java:103)
... 38 more
Caused by: java.io.FileNotFoundException: \tmp\CalciteProgram105359.java (The system cannot find the path specified)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:299)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:238)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:188)
at org.apache.calcite.util.Util.printWriter(Util.java:2306)
at org.apache.calcite.adapter.spark.SparkHandlerImpl.compile(SparkHandlerImpl.java:112)
... 39 more
java.lang.RuntimeException: With materializationsEnabled=false, limit=0
at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:568)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1328)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1305)
at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1268)
at org.apache.calcite.test.SparkAdapterTest.testOrderByLimit(SparkAdapterTest.java:447)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)