dbatomic commented on code in PR #45104:
URL: https://github.com/apache/spark/pull/45104#discussion_r1495056341
##########
sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala:
##########
@@ -174,4 +174,36 @@ class CollationSuite extends QueryTest with
SharedSparkSession {
Row(expected))
}
}
+
+
+ test("disable partition on collated string column") {
+ def createTable(partitionColumns: String*): Unit = {
+ val tableName = "test_partition_tbl"
+ withTable(tableName) {
+ sql(
+ s"""
+ |CREATE TABLE $tableName
+ |(id INT, c1 STRING COLLATE 'UNICODE', c2 string)
+ |USING parquet
+ |PARTITIONED BY (${partitionColumns.mkString(",")})
+ |""".stripMargin)
+ }
+
+ // should work fine on non collated columns
Review Comment:
Nit - on default collated columns :)
--
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]