File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
sql/core/src/main/scala/org/apache/spark/sql Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,7 @@ trait SQLConf {
88
88
*
89
89
* Defaults to false as this feature is currently experimental.
90
90
*/
91
- private [spark] def codegenEnabled : Boolean =
92
- if (getConf(CODEGEN_ENABLED , " false" ) == " true" ) true else false
91
+ private [spark] def codegenEnabled : Boolean = getConf(CODEGEN_ENABLED , " false" ).toBoolean
93
92
94
93
/**
95
94
* Upper bound on the sizes (in bytes) of the tables qualified for the auto conversion to
@@ -113,7 +112,7 @@ trait SQLConf {
113
112
* When set to true, we always treat byte arrays in Parquet files as strings.
114
113
*/
115
114
private [spark] def isParquetBinaryAsString : Boolean =
116
- if ( getConf(PARQUET_BINARY_AS_STRING , " false" ) == " true " ) true else false
115
+ getConf(PARQUET_BINARY_AS_STRING , " false" ).toBoolean
117
116
118
117
/** ********************** SQLConf functionality methods ************ */
119
118
You can’t perform that action at this time.
0 commit comments