andygrove commented on code in PR #7094:
URL: https://github.com/apache/datafusion-comet/pull/7094#discussion_r4308774392


##########
spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala:
##########
@@ -3483,6 +3484,36 @@ class CometExecSuite extends CometTestBase {
     }
   }
 
+  test("native scan loads the next file's metadata while it reads the current 
file") {
+    withTempPath { dir =>
+      val path = dir.getCanonicalPath
+      spark.range(0, 4000, 1, 4).toDF("id").write.parquet(path)
+      // `None` leaves the config unset: the prefetch is opt-in.
+      Seq(Some(true), Some(false), None).foreach { prefetch =>

Review Comment:
   Fixed. `CometExecIterator` always sends the value, so the unset run was a 
duplicate of `false`. The test runs `true` and `false` only, which saves a full 
query run. (6be7a15a49)



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to