Skip to content

Commit

Permalink
Fix test demultiplex
Browse files Browse the repository at this point in the history
  • Loading branch information
berna396 committed Jan 25, 2024
1 parent bfa9488 commit 51ba307
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.metabolic.data.core.services.spark.transform
import com.holdenkarau.spark.testing.{DataFrameSuiteBase, SharedSparkContext}
import com.metabolic.data.core.services.spark.transformations.DemultiplexTransform
import org.apache.spark.sql.Row
import org.apache.spark.sql.functions.not
import org.apache.spark.sql.types.{StringType, StructField, StructType, TimestampType}
import org.scalatest.BeforeAndAfterAll
import org.scalatest.funsuite.AnyFunSuite
Expand Down Expand Up @@ -60,7 +61,10 @@ class DemultiplexTest extends AnyFunSuite
StructType(expectedSchema)
)

assertDataFrameNoOrderEquals(outputDF, expectedDf)
val set1 = outputDF.collect().toSet
val set2 = expectedDf.collect().toSet
assert(set1 == set2)


}

Expand Down

0 comments on commit 51ba307

Please sign in to comment.