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 {
8888 *
8989 * Defaults to false as this feature is currently experimental.
9090 */
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
9392
9493 /**
9594 * Upper bound on the sizes (in bytes) of the tables qualified for the auto conversion to
@@ -113,7 +112,7 @@ trait SQLConf {
113112 * When set to true, we always treat byte arrays in Parquet files as strings.
114113 */
115114 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
117116
118117 /** ********************** SQLConf functionality methods ************ */
119118
You can’t perform that action at this time.
0 commit comments