File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
sql/core/src/test/scala/org/apache/spark/sql/execution/command Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -2297,21 +2297,23 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils {
22972297 }
22982298
22992299 test(s " basic DDL using locale tr - caseSensitive $caseSensitive" ) {
2300- withLocale(" tr" ) {
2301- val dbName = " DaTaBaSeI"
2302- withDatabase(dbName) {
2303- sql(s " CREATE DATABASE $dbName" )
2304- sql(s " USE $dbName" )
2305-
2306- val tabName = " tAbI"
2307- withTable(tabName) {
2308- sql(s " CREATE TABLE $tabName(c1 int) USING PARQUET " )
2309- sql(s " INSERT OVERWRITE TABLE $tabName SELECT 1 " )
2310- checkAnswer(sql(s " SELECT c1 FROM $tabName" ), Row (1 ) :: Nil )
2311- sql(s " DROP TABLE $tabName" )
2312- }
2300+ withSQLConf(SQLConf .CASE_SENSITIVE .key -> s " $caseSensitive" ) {
2301+ withLocale(" tr" ) {
2302+ val dbName = " DaTaBaSeI"
2303+ withDatabase(dbName) {
2304+ sql(s " CREATE DATABASE $dbName" )
2305+ sql(s " USE $dbName" )
2306+
2307+ val tabName = " tAbI"
2308+ withTable(tabName) {
2309+ sql(s " CREATE TABLE $tabName(c1 int) USING PARQUET " )
2310+ sql(s " INSERT OVERWRITE TABLE $tabName SELECT 1 " )
2311+ checkAnswer(sql(s " SELECT c1 FROM $tabName" ), Row (1 ) :: Nil )
2312+ sql(s " DROP TABLE $tabName" )
2313+ }
23132314
2314- sql(s " DROP DATABASE $dbName" )
2315+ sql(s " DROP DATABASE $dbName" )
2316+ }
23152317 }
23162318 }
23172319 }
You can’t perform that action at this time.
0 commit comments