MaxGekk commented on code in PR #49147:
URL: https://github.com/apache/spark/pull/49147#discussion_r1882955753
##########
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:
> This is the way intellij formats multi line strings by default
Just tune IDE once according to the style guide, and the issue will be fixed
forever.
--
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]