Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/8535#discussion_r39117492
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/local/LocalNode.scala ---
@@ -29,10 +31,18 @@ import org.apache.spark.sql.types.StructType
* Before consuming the iterator, open function must be called.
* After consuming the iterator, close function must be called.
*/
-abstract class LocalNode extends TreeNode[LocalNode] {
+abstract class LocalNode(conf: SQLConf) extends TreeNode[LocalNode] with
Logging {
+
+ val codegenEnabled: Boolean = conf.codegenEnabled
+
+ val unsafeEnabled: Boolean = conf.unsafeEnabled
+
+ private[this] def isTesting: Boolean =
sys.props.contains("spark.testing")
--- End diff --
can be lazy val
---
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]