Skip to content

Commit

Permalink
Use conf variable in SQLConf object
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Jul 29, 2014
1 parent 4bdc42c commit 67b1c48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala
Expand Up @@ -48,7 +48,7 @@ trait SQLConf {
* Defaults to false as this feature is currently experimental.
*/
private[spark] def codegenEnabled: Boolean =
if (get("spark.sql.codegen", "false") == "true") true else false
if (get(CODEGEN_ENABLED, "false") == "true") true else false

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

object Deprecated {
val MAPRED_REDUCE_TASKS = "mapred.reduce.tasks"
Expand Down

0 comments on commit 67b1c48

Please sign in to comment.