Github user mgaido91 commented on a diff in the pull request:
https://github.com/apache/spark/pull/21815#discussion_r203668475
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala
---
@@ -166,10 +166,10 @@ case class FileSourceScanExec(
override val tableIdentifier: Option[TableIdentifier])
extends DataSourceScanExec with ColumnarBatchScan {
- override val supportsBatch: Boolean = relation.fileFormat.supportBatch(
+ override lazy val supportsBatch: Boolean =
relation.fileFormat.supportBatch(
--- End diff --
nit: can we maybe add a comment about the reason we are making them lazy?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]