ulysses-you commented on code in PR #39624:
URL: https://github.com/apache/spark/pull/39624#discussion_r1131119650


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryTableScanExec.scala:
##########
@@ -166,4 +170,32 @@ case class InMemoryTableScanExec(
   protected override def doExecuteColumnar(): RDD[ColumnarBatch] = {
     columnarInputRDD
   }
+
+  // ==================================================================
+  // Methods for AQE
+  // ==================================================================
+
+  @transient
+  private lazy val future: FutureAction[Unit] = {
+    val rdd = cachedPlan.execute()
+    sparkContext.submitJob(
+      rdd,
+      (_: Iterator[InternalRow]) => (),
+      (0 until rdd.getNumPartitions).toSeq,
+      (_: Int, _: Unit) => (),
+      ()
+    )
+  }
+
+  override def isMaterialized: Boolean = relation.isMaterialized || 
super.isMaterialized

Review Comment:
   it seems `relation.isMaterialized` is not accuate enough, removed it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to