Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2075

SparkAdapterTest UT fails

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • None
    • None

    Description

      Below SparkAdapterTest UT fails.

      • testValues
      • testValuesFilter
        java.lang.RuntimeException: exception while executing [select *
        from (values (1, 'a'), (2, 'b'))]
        	at org.apache.spark.HttpServer.start(HttpServer.scala:51)
        	at org.apache.spark.broadcast.HttpBroadcast$.createServer(HttpBroadcast.scala:130)
        	at org.apache.spark.broadcast.HttpBroadcast$.initialize(HttpBroadcast.scala:101)
        	at org.apache.spark.broadcast.HttpBroadcastFactory.initialize(HttpBroadcast.scala:70)
        	at org.apache.spark.broadcast.BroadcastManager.initialize(Broadcast.scala:81)
        	at org.apache.spark.broadcast.BroadcastManager.<init>(Broadcast.scala:68)
        	at org.apache.spark.SparkEnv$.create(SparkEnv.scala:175)
        	at org.apache.spark.SparkContext.<init>(SparkContext.scala:139)
        	at org.apache.spark.SparkContext.<init>(SparkContext.scala:100)
        	at org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:53)
        	at org.apache.calcite.adapter.spark.SparkHandlerImpl.<init>(SparkHandlerImpl.java:45)
        	at org.apache.calcite.adapter.spark.SparkHandlerImpl.instance(SparkHandlerImpl.java:76)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at org.apache.calcite.jdbc.CalcitePrepare$Dummy.createHandler(CalcitePrepare.java:141)
        	at org.apache.calcite.jdbc.CalcitePrepare$Dummy.getSparkHandler(CalcitePrepare.java:131)
        	at org.apache.calcite.jdbc.CalciteConnectionImpl$ContextImpl.spark(CalciteConnectionImpl.java:428)
        	at org.apache.calcite.prepare.CalcitePrepareImpl.createPlanner(CalcitePrepareImpl.java:360)
        	at org.apache.calcite.prepare.CalcitePrepareImpl$1.apply(CalcitePrepareImpl.java:294)
        	at org.apache.calcite.prepare.CalcitePrepareImpl$1.apply(CalcitePrepareImpl.java:292)
        	at org.apache.calcite.prepare.CalcitePrepareImpl.prepare_(CalcitePrepareImpl.java:414)
        	at org.apache.calcite.prepare.CalcitePrepareImpl.prepareSql(CalcitePrepareImpl.java:388)
        	at org.apache.calcite.jdbc.CalciteConnectionImpl.parseQuery(CalciteConnectionImpl.java:179)
        	at org.apache.calcite.jdbc.CalciteMetaImpl.prepareAndExecute(CalciteMetaImpl.java:594)
        	at org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:638)
        	at org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:149)
        	at org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:217)
        	at org.apache.calcite.test.CalciteAssert.assertQuery(CalciteAssert.java:449)
        	at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1144)
        	at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1138)
        	at org.apache.calcite.test.CalciteAssert$AssertQuery.returns(CalciteAssert.java:1126)
        	at org.apache.calcite.test.SparkAdapterTest.testValues(SparkAdapterTest.java:37)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            yeshavora Yesha Vora
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment