From 619257a80a387dfb373a08e3b3085a4a0c0d34ee Mon Sep 17 00:00:00 2001 From: Tuan Pham Date: Wed, 7 Aug 2024 16:32:02 +1000 Subject: [PATCH] Remove unrelated tests --- .../spark/fast/tests/DataFrameComparerTest.scala | 1 - .../spark/fast/tests/DatasetComparerTest.scala | 1 - .../spark/fast/tests/SchemaComparerTest.scala | 16 ---------------- 3 files changed, 18 deletions(-) diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala index 6a60d6a..55a13da 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/DataFrameComparerTest.scala @@ -2,7 +2,6 @@ package com.github.mrpowers.spark.fast.tests import org.apache.spark.sql.types.{IntegerType, StringType} import SparkSessionExt._ -import com.github.mrpowers.spark.fast.tests.SchemaComparer.DatasetSchemaMismatch import org.scalatest.freespec.AnyFreeSpec class DataFrameComparerTest extends AnyFreeSpec with DataFrameComparer with SparkSessionTestWrapper { diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala index 507b7bd..07841cd 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/DatasetComparerTest.scala @@ -2,7 +2,6 @@ package com.github.mrpowers.spark.fast.tests import org.apache.spark.sql.types._ import SparkSessionExt._ -import com.github.mrpowers.spark.fast.tests.SchemaComparer.DatasetSchemaMismatch import org.scalatest.freespec.AnyFreeSpec object Person { diff --git a/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala b/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala index 7bd6fac..a71c0c8 100644 --- a/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala +++ b/src/test/scala/com/github/mrpowers/spark/fast/tests/SchemaComparerTest.scala @@ -125,21 +125,5 @@ class SchemaComparerTest extends AnyFreeSpec { ) assert(SchemaComparer.equals(s1, s2, ignoreColumnNames = true)) } - - "can ignore the column order when determining equality" in { - val s1 = StructType( - Seq( - StructField("these", StringType, true), - StructField("are", StringType, true) - ) - ) - val s2 = StructType( - Seq( - StructField("are", StringType, true), - StructField("these", StringType, true) - ) - ) - assert(SchemaComparer.equals(s1, s2)) - } } }