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 {
46
46
// This is only used for the thriftserver
47
47
val THRIFTSERVER_POOL = " spark.sql.thriftserver.scheduler.pool"
48
48
49
+ val CASE_SENSITIVE = " spark.sql.caseSensitive"
50
+
49
51
object Deprecated {
50
52
val MAPRED_REDUCE_TASKS = " mapred.reduce.tasks"
51
53
}
@@ -148,6 +150,12 @@ private[sql] trait SQLConf {
148
150
private [spark] def columnNameOfCorruptRecord : String =
149
151
getConf(COLUMN_NAME_OF_CORRUPT_RECORD , " _corrupt_record" )
150
152
153
+ /**
154
+ * When set to true, analyzer is case sensitive
155
+ */
156
+ private [spark] def caseSensitive : Boolean =
157
+ getConf(CASE_SENSITIVE , " true" ).toBoolean
158
+
151
159
/** ********************** SQLConf functionality methods ************ */
152
160
153
161
/** 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)
65
65
66
66
@ transient
67
67
protected [sql] lazy val analyzer : Analyzer =
68
- new Analyzer (catalog, functionRegistry, caseSensitive = true )
68
+ new Analyzer (catalog, functionRegistry, caseSensitive)
69
69
70
70
@ transient
71
71
protected [sql] lazy val optimizer : Optimizer = DefaultOptimizer
You can’t perform that action at this time.
0 commit comments