Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiyan committed Oct 21, 2022
1 parent de28764 commit 34bf52d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.spark.sql.hudi

import org.apache.hudi.common.util.BinaryUtil
import org.apache.spark.SparkConf
import org.apache.spark.serializer.{KryoSerializer, SerializerInstance}

Expand All @@ -34,7 +35,7 @@ object SerDeUtils {

def toBytes(o: Any): Array[Byte] = {
val buf = SERIALIZER_THREAD_LOCAL.get.serialize(o)
toBytes(buf)
BinaryUtil.toBytes(buf)
}

def toObject(bytes: Array[Byte]): Any = {
Expand Down

0 comments on commit 34bf52d

Please sign in to comment.