zhengruifeng commented on code in PR #49212:
URL: https://github.com/apache/spark/pull/49212#discussion_r1906548039


##########
core/src/test/scala/org/apache/spark/SparkFunSuite.scala:
##########
@@ -463,6 +463,27 @@ abstract class SparkFunSuite
       condition = "TABLE_OR_VIEW_ALREADY_EXISTS",
       parameters = Map("relationName" -> tableName))
 
+  protected def roundtripSerialize[T](obj: T): T = {
+    deserializeFromBytes(serializeToBytes(obj))
+  }
+
+  protected def serializeToBytes[T](o: T): Array[Byte] = {

Review Comment:
   ah, there is behavior difference in serdes, so I just add a helper class 
instead



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to