You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/09/28 11:39:58 UTC

[GitHub] [iceberg] huleilei opened a new issue, #5878: Core: Serialize the params in Blob

huleilei opened a new issue, #5878:
URL: https://github.com/apache/iceberg/issues/5878

   ### Apache Iceberg version
   
   0.14.1 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   Using Spark to gen `Blob` for every DataFile,  I meet a problem:
   ```
   org.apache.spark.SparkException: Job aborted due to stage failure: task 19.0 in stage 1.0 (TID 20) had a not serializable result: org.apache.iceberg.puffin.Blob
   Serialization stack:
   	- object not serializable (class: org.apache.iceberg.puffin.Blob, value: org.apache.iceberg.puffin.Blob@23c56e35)
   	- writeObject data (class: java.util.ArrayList)
   	- object (class java.util.ArrayList, [org.apache.iceberg.puffin.Blob@23c56e35])
   ```
    In the `Blob`, the content in constructor is 
   ```
     public Blob(
         String type,
         List<Integer> inputFields,
         long snapshotId,
         long sequenceNumber,
         ByteBuffer blobData,
         @Nullable PuffinCompressionCodec requestedCompression,
         Map<String, String> properties) {
       Preconditions.checkNotNull(type, "type is null");
       Preconditions.checkNotNull(inputFields, "inputFields is null");
       Preconditions.checkNotNull(blobData, "blobData is null");
       Preconditions.checkNotNull(properties, "properties is null");
       this.type = type;
       **this.inputFields = ImmutableList.copyOf(inputFields);**
       this.snapshotId = snapshotId;
       this.sequenceNumber = sequenceNumber;
       this.blobData = blobData;
       this.requestedCompression = requestedCompression;
       **this.properties = ImmutableMap.copyOf(properties);**
     }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] huleilei closed issue #5878: Core: Serialize the params in Blob

Posted by GitBox <gi...@apache.org>.
huleilei closed issue #5878: Core: Serialize the params in Blob 
URL: https://github.com/apache/iceberg/issues/5878


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org