Skip to content

Commit

Permalink
fix: add assert to check the pojo-proto-roundtrip
Browse files Browse the repository at this point in the history
  • Loading branch information
Blizzara committed Nov 21, 2024
1 parent e374c85 commit ab104f5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ trait SubstraitPlanTestBase { self: SharedSparkSession =>

val extensionCollector = new ExtensionCollector;
val proto = new RelProtoConverter(extensionCollector).toProto(pojoRel)
new ProtoRelConverter(extensionCollector, SparkExtension.COLLECTION).from(proto)
val pojoFromProto = new ProtoRelConverter(extensionCollector, SparkExtension.COLLECTION).from(proto)
assertResult(pojoRel)(pojoFromProto)

pojoRel2.shouldEqualPlainly(pojoRel)
logicalPlan2
Expand Down

0 comments on commit ab104f5

Please sign in to comment.