infvg commented on code in PR #12962:
URL: https://github.com/apache/gluten/pull/12962#discussion_r3926754262
##########
gluten-iceberg/src/main/scala/org/apache/iceberg/spark/source/GlutenIcebergSourceUtil.scala:
##########
@@ -42,8 +42,13 @@ object GlutenIcebergSourceUtil {
private val InputFileBlockStartCol = "input_file_block_start"
private val InputFileBlockLengthCol = "input_file_block_length"
- def getClassOfSparkBatchQueryScan(): Class[SparkBatchQueryScan] = {
- classOf[SparkBatchQueryScan]
+ def supportsScan(sparkScan: Scan): Boolean = sparkScan match {
+ case _: SparkBatchQueryScan => true
+ case scan: SparkStagedScan =>
+ val tasks = getScanTasks(scan)
+ tasks.nonEmpty &&
+ (tasks.forall(_.isFileScanTask) ||
tasks.forall(_.isInstanceOf[CombinedScanTask]))
Review Comment:
removed
--
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]