From 3c550b7654e36a430b23396f3e26237fbbed80b7 Mon Sep 17 00:00:00 2001 From: Terry Wang Date: Fri, 13 Dec 2024 17:06:11 +0800 Subject: [PATCH] fix ut error --- .../execution/unsafe/UnsafeColumnarBuildSideRelation.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backends-velox/src/main/scala/org/apache/spark/sql/execution/unsafe/UnsafeColumnarBuildSideRelation.scala b/backends-velox/src/main/scala/org/apache/spark/sql/execution/unsafe/UnsafeColumnarBuildSideRelation.scala index d18041fc983a..7d971ae915d0 100644 --- a/backends-velox/src/main/scala/org/apache/spark/sql/execution/unsafe/UnsafeColumnarBuildSideRelation.scala +++ b/backends-velox/src/main/scala/org/apache/spark/sql/execution/unsafe/UnsafeColumnarBuildSideRelation.scala @@ -63,6 +63,11 @@ case class UnsafeColumnarBuildSideRelation( with Logging with KryoSerializable { + // Needed for serialization + def this() = { + this(null, null, null) + } + def this(output: Seq[Attribute], bytesBufferArray: Array[Array[Byte]], mode: BroadcastMode) = { // only used in driver side when broadcast the whole batches this(