jose-torres commented on code in PR #46247:
URL: https://github.com/apache/spark/pull/46247#discussion_r1600227231
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingQuerySuite.scala:
##########
@@ -1364,6 +1364,35 @@ class StreamingQuerySuite extends StreamTest with
BeforeAndAfter with Logging wi
)
}
+ test("Collation aware streaming") {
+ withTable("parquet_streaming_tbl") {
+ spark.sql(
+ """
+ |CREATE TABLE parquet_streaming_tbl
+ |(
+ | key STRING COLLATE UTF8_BINARY_LCASE,
+ | value_stream INTEGER
+ |) USING parquet""".stripMargin)
+
+ val streamDf = spark.readStream.table("parquet_streaming_tbl")
+ val filteredDf = streamDf.filter("key = 'aaa'")
+
+ val clock = new StreamManualClock()
+ testStream(filteredDf)(
+ StartStream(triggerClock = clock, trigger =
Trigger.ProcessingTime(100)),
+ Execute { _ =>
+ spark.createDataFrame(Seq("aaa" -> 1, "AAA" -> 2, "bbb" -> 3, "aa"
-> 4))
Review Comment:
Makes sense, I think I misread the test case the first time.
--
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]