stefankandic commented on code in PR #49147:
URL: https://github.com/apache/spark/pull/49147#discussion_r1882758341
##########
sql/core/src/test/scala/org/apache/spark/sql/collation/CollationTypePrecedenceSuite.scala:
##########
@@ -175,6 +175,115 @@ class CollationTypePrecedenceSuite extends QueryTest with
SharedSparkSession {
)
}
+ test("in subquery expression") {
+ val tableName = "subquery_tbl"
+ withTable(tableName) {
+ sql(
+ s"""
+ |CREATE TABLE $tableName (
+ | c1 STRING COLLATE UTF8_LCASE,
+ | c2 STRING COLLATE UNICODE
+ |) USING $dataSource
+ |""".stripMargin)
+
+ sql(s"INSERT INTO $tableName VALUES ('a', 'A')")
+
+ assertImplicitMismatch(
+ sql(
+ s"""
+ |SELECT * FROM $tableName
+ |WHERE c1 IN (SELECT c2 FROM $tableName)
+ |""".stripMargin))
Review Comment:
Why do we have to do this? This is the way intellij formats multi line
strings by default, and looking at the code base it seems like aligning the `|`
with the third quote is more often used anyways
--
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]