Skip to content

Commit 67b1c48

Browse files
committed
Use conf variable in SQLConf object
1 parent 4bdc42c commit 67b1c48

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ trait SQLConf {
4848
* Defaults to false as this feature is currently experimental.
4949
*/
5050
private[spark] def codegenEnabled: Boolean =
51-
if (get("spark.sql.codegen", "false") == "true") true else false
51+
if (get(CODEGEN_ENABLED, "false") == "true") true else false
5252

5353
/**
5454
* Upper bound on the sizes (in bytes) of the tables qualified for the auto conversion to
@@ -107,6 +107,7 @@ object SQLConf {
107107
val AUTO_CONVERT_JOIN_SIZE = "spark.sql.auto.convert.join.size"
108108
val SHUFFLE_PARTITIONS = "spark.sql.shuffle.partitions"
109109
val JOIN_BROADCAST_TABLES = "spark.sql.join.broadcastTables"
110+
val CODEGEN_ENABLED = "spark.sql.codegen"
110111

111112
object Deprecated {
112113
val MAPRED_REDUCE_TASKS = "mapred.reduce.tasks"

0 commit comments

Comments
 (0)