File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ private[spark] object SQLConf {
4646 // This is only used for the thriftserver
4747 val THRIFTSERVER_POOL = " spark.sql.thriftserver.scheduler.pool"
4848
49+ val CASE_SENSITIVE = " spark.sql.caseSensitive"
50+
4951 object Deprecated {
5052 val MAPRED_REDUCE_TASKS = " mapred.reduce.tasks"
5153 }
@@ -148,6 +150,12 @@ private[sql] trait SQLConf {
148150 private [spark] def columnNameOfCorruptRecord : String =
149151 getConf(COLUMN_NAME_OF_CORRUPT_RECORD , " _corrupt_record" )
150152
153+ /**
154+ * When set to true, analyzer is case sensitive
155+ */
156+ private [spark] def caseSensitive : Boolean =
157+ getConf(CASE_SENSITIVE , " true" ).toBoolean
158+
151159 /** ********************** SQLConf functionality methods ************ */
152160
153161 /** Set Spark SQL configuration properties. */
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
6565
6666 @ transient
6767 protected [sql] lazy val analyzer : Analyzer =
68- new Analyzer (catalog, functionRegistry, caseSensitive = true )
68+ new Analyzer (catalog, functionRegistry, caseSensitive)
6969
7070 @ transient
7171 protected [sql] lazy val optimizer : Optimizer = DefaultOptimizer
You can’t perform that action at this time.
0 commit comments