Skip to content

Commit ce71cca

Browse files
committed
Test more string comparison operators
1 parent 810c153 commit ce71cca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFilterSuite.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,14 @@ class ParquetFilterSuite extends QueryTest with ParquetTest with SharedSQLContex
566566
// scalastyle:off nonascii
567567
Seq("a", "é").toDF("name").write.parquet(path)
568568
// scalastyle:on nonascii
569+
569570
assert(spark.read.parquet(path).where("name > 'a'").count() == 1)
571+
assert(spark.read.parquet(path).where("name >= 'a'").count() == 2)
572+
573+
// scalastyle:off nonascii
574+
assert(spark.read.parquet(path).where("name < 'é'").count() == 1)
575+
assert(spark.read.parquet(path).where("name <= 'é'").count() == 2)
576+
// scalastyle:on nonascii
570577
}
571578
}
572579
}

0 commit comments

Comments
 (0)