Uploaded image for project: 'Couchbase Spark Connector'
  1. Couchbase Spark Connector
  2. SPARKC-142

MutateIn RDD throws object not serializable error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.2.0
    • 3.0.0, 3.1.0
    • None
    • None
    • Databricks
    • 1
    • SDK46: Limit Err, CB++, Spark

    Description

      running the code below on Databricks environment thows an exception
      sc is the sparkContext thats available to you upon configuration. Other operations works perfectly fine. 

       Environment :  Scala 2.12 and Spark 3.1.1 or 3.1.2**

       

      import com.couchbase.client.scala.kv.LookupInSpec
      import com.couchbase.spark.kv.LookupIn
      import com.couchbase.spark._
      import com.couchbase.client.scala.json.JsonObject
       
      sc
       .couchbaseLookupIn(Seq(LookupIn("airline_10642", Seq(LookupInSpec.get("icao")))))
       .collect()
       .foreach(println)
      

       

       

       
      Job aborted due to stage failure: task 0.0 in stage 33.0 (TID 65) had a not serializable result: com.couchbase.client.core.msg.kv.SubDocumentField
      Serialization stack:

       object not serializable (class: com.couchbase.client.core.msg.kv.SubDocumentField, value: SubdocField{status=SUCCESS, value="JRB", path='icao'}) element of array (index: 0) array (class [Lcom.couchbase.client.core.msg.kv.SubDocumentField;, size 1) field (class: scala.collection.mutable.WrappedArray$ofRef, name: array, type: class [Ljava.lang.Object object (class scala.collection.mutable.WrappedArray$ofRef, WrappedArray(SubdocField{status=SUCCESS, value="JRB", path='icao'})) field (class: com.couchbase.client.scala.kv.LookupInResult, name: content, type: interface scala.collection.Seq) object (class com.couchbase.client.scala.kv.LookupInResult, LookupInResult(airline_10642,WrappedArray(SubdocField{status=SUCCESS, value="JRB", path='icao'}),33554432,1629927942956580864,None,com.couchbase.client.scala.codec.JsonTranscoder@6397a538)) element of array (index: 0) array (class [Lcom.couchbase.client.scala.kv.LookupInResult;, size 1) 

      •  

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              daschl Michael Nitschinger
              arun.vijayraghavan Arun Vijayraghavan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty