Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add test for set collation.
  • Loading branch information
jovanpavl-db committed Sep 23, 2024
commit 9635ab7a5dcee110d8c22c6c6d94fedeb01ce45b
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,13 @@ class SQLConfSuite extends QueryTest with SharedSparkSession {
"confName" -> "spark.sql.session.collation.default",
"proposals" -> "UNICODE"
))

withSQLConf(SQLConf.TRIM_COLLATION_ENABLED.key -> "false") {
checkError(
exception = intercept[AnalysisException](sql(s"SET COLLATION UNICODE_CI_TRIM")),
condition = "UNSUPPORTED_FEATURE.TRIM_COLLATION"
)
}
}

test("SPARK-43028: config not found error") {
Expand Down