Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/17521#discussion_r109486383
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/CatalystConf.scala ---
@@ -0,0 +1,413 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.spark.sql.catalyst
+
+import java.util.{NoSuchElementException, Properties, TimeZone}
+
+import scala.collection.JavaConverters._
+
+import org.apache.hadoop.fs.Path
+
+import org.apache.spark.internal.Logging
+import org.apache.spark.internal.config.{ConfigEntry, ConfigReader,
OptionalConfigEntry}
+import org.apache.spark.sql.catalyst.analysis.Resolver
+import org.apache.spark.util.Utils
+
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// This file defines the configuration options for Catalyst
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+
+object CatalystConf {
+ import ConfEntries.{buildConf, buildStaticConf}
+
+ val OPTIMIZER_MAX_ITERATIONS =
buildConf("spark.sql.optimizer.maxIterations")
+ .internal()
+ .doc("The max number of iterations the optimizer and analyzer runs.")
+ .intConf
+ .createWithDefault(100)
+
+ val OPTIMIZER_INSET_CONVERSION_THRESHOLD =
+ buildConf("spark.sql.optimizer.inSetConversionThreshold")
+ .internal()
+ .doc("The threshold of set size for InSet conversion.")
+ .intConf
+ .createWithDefault(10)
+
+ val MAX_CASES_BRANCHES = buildConf("spark.sql.codegen.maxCaseBranches")
+ .internal()
+ .doc("The maximum number of switches supported with codegen.")
+ .intConf
+ .createWithDefault(20)
+
+ val ORDER_BY_ORDINAL = buildConf("spark.sql.orderByOrdinal")
+ .doc("When true, the ordinal numbers are treated as the position in
the select list. " +
+ "When false, the ordinal numbers in order/sort by clause are
ignored.")
+ .booleanConf
+ .createWithDefault(true)
+
+ val GROUP_BY_ORDINAL = buildConf("spark.sql.groupByOrdinal")
+ .doc("When true, the ordinal numbers in group by clauses are treated
as the position " +
+ "in the select list. When false, the ordinal numbers are ignored.")
+ .booleanConf
+ .createWithDefault(true)
+
+ val CASE_SENSITIVE = buildConf("spark.sql.caseSensitive")
+ .internal()
+ .doc("Whether the query analyzer should be case sensitive or not. " +
+ "Default to case insensitive. It is highly discouraged to turn on
case sensitive mode.")
+ .booleanConf
+ .createWithDefault(false)
+
+ val RUN_SQL_ON_FILES = buildConf("spark.sql.runSQLOnFiles")
+ .internal()
+ .doc("When true, we could use `datasource`.`path` as table in SQL
query.")
+ .booleanConf
+ .createWithDefault(true)
+
+ // Use lazy val here, as the default timezone may change after
`CatalystConf` is instantiated.
+ // TODO: we may need a `ConfigEntryWithDefaultFunction` so that the
default value of session
+ // location timezone is always the default timezone at the time we call
`getConf`.
+ lazy val SESSION_LOCAL_TIMEZONE =
--- End diff --
cc @ueshin
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]