Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-43198

Fix "Could not initialise class ammonite..." error when using filter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • Connect
    • None

    Description

      When

      spark.range(10).filter(n => n % 2 == 0).collectAsList()`

       is run in the ammonite REPL (Spark Connect), the following error is thrown:

      io.grpc.StatusRuntimeException: UNKNOWN: ammonite/repl/ReplBridge$
        io.grpc.Status.asRuntimeException(Status.java:535)
        io.grpc.stub.ClientCalls$BlockingResponseStream.hasNext(ClientCalls.java:660)
        org.apache.spark.sql.connect.client.SparkResult.org$apache$spark$sql$connect$client$SparkResult$$processResponses(SparkResult.scala:62)
        org.apache.spark.sql.connect.client.SparkResult.length(SparkResult.scala:114)
        org.apache.spark.sql.connect.client.SparkResult.toArray(SparkResult.scala:131)
        org.apache.spark.sql.Dataset.$anonfun$collect$1(Dataset.scala:2687)
        org.apache.spark.sql.Dataset.withResult(Dataset.scala:3088)
        org.apache.spark.sql.Dataset.collect(Dataset.scala:2686)
        org.apache.spark.sql.Dataset.collectAsList(Dataset.scala:2700)
        ammonite.$sess.cmd0$.<init>(cmd0.sc:1)
        ammonite.$sess.cmd0$.<clinit>(cmd0.sc)

      Attachments

        Activity

          People

            vicennial Venkata Sai Akhil Gudesa
            vicennial Venkata Sai Akhil Gudesa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: