MaxGekk commented on code in PR #49075:
URL: https://github.com/apache/spark/pull/49075#discussion_r1876361253
##########
sql/core/src/test/scala/org/apache/spark/sql/collation/CollationTypePrecedenceSuite.scala:
##########
@@ -438,6 +438,32 @@ class CollationTypePrecedenceSuite extends QueryTest with
SharedSparkSession {
sql(s"SELECT map('key1', 'val1' collate utf8_lcase, 'key2', 'val2'
collate unicode)"))
}
+ test("user defined cast on maps") {
+ checkAnswer(
+ sql(s"""
+ |SELECT map_contains_key(
+ | map('a' collate utf8_lcase, 'b'),
+ | 'A' collate utf8_lcase)
+ |""".stripMargin),
Review Comment:
Should 2 spaces indentation to `sql` (see
https://github.com/databricks/scala-style-guide?tab=readme-ov-file#spacing-and-indentation).
Please, fix here and below.
```suggestion
sql(s"""
|SELECT map_contains_key(
| map('a' collate utf8_lcase, 'b'),
| 'A' collate utf8_lcase)""".stripMargin),
```
--
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]