cloud-fan commented on code in PR #48031:
URL: https://github.com/apache/spark/pull/48031#discussion_r1749836161
##########
sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala:
##########
@@ -947,7 +947,10 @@ class CollationSuite extends DatasourceV2SQLBase with
AdaptiveSparkPlanHelper {
withTable(table) {
sql(s"create table $table (a array<string collate utf8_lcase>) using
parquet")
sql(s"insert into $table values (array('aaa')), (array('AAA'))")
- checkAnswer(sql(s"select distinct a from $table"), Seq(Row(Seq("aaa"))))
+ val result = sql(s"select distinct a from $table").collect()
+ assert(result.length === 1)
+ val data =
result.head.get(0).asInstanceOf[scala.collection.mutable.ArraySeq[String]]
+ assert(data === Array("aaa") || data === Array("AAA"))
Review Comment:
so the test becomes flaky? Reading the test query I think both `aaa` and
`AAA` are correct result. cc @stefankandic
--
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]