pan3793 commented on code in PR #5852:
URL: https://github.com/apache/kyuubi/pull/5852#discussion_r1535366410
##########
extensions/spark/kyuubi-extension-spark-3-5/src/main/scala/org/apache/kyuubi/sql/watchdog/MaxScanStrategy.scala:
##########
@@ -232,6 +234,54 @@ case class MaxScanStrategy(session: SparkSession)
logicalRelation.catalogTable)
}
}
+ case ScanOperation(
+ _,
+ _,
+ _,
+ relation @ DataSourceV2ScanRelation(_, _, _, _, _)) =>
+ val table = relation.relation.table
+ if (table.partitioning().nonEmpty &&
+ relation.scan.isInstanceOf[SupportsReportPartitioning]) {
+ val partitionColumnNames = table.partitioning().map(_.describe())
+ val stats = relation.computeStats()
+ lazy val scanFileSize = stats.sizeInBytes
+ lazy val scanPartitions =
relation.scan.asInstanceOf[SupportsReportPartitioning]
+ .outputPartitioning()
+ .numPartitions()
Review Comment:
I think it is the task number of RDD/stage, instead of the table's partition
number, does taskGroups in Iceberg means same thing?
--
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]