LuciferYang opened a new issue, #13758: URL: https://github.com/apache/gluten/issues/13758
`SparkResourceUtil.getTotalCores` matches `spark.master` against `local*`, `yarn`/`k8s:` and `spark:`, with no default case. Any other master throws `scala.MatchError`, for example `mesos://host:5050` (Mesos is still supported by Spark 3.4 and 3.5) or a master served by an `ExternalClusterManager` plugin. The ClickHouse backend calls it every time it builds file partitions, in `CHPartitionsUtil` and `MergeTreePartsPartitionsUtil`. The call happens before the files-per-partition threshold is checked, so file scans on those masters fail even though the threshold is off by default and the result would not be used. This issue was written with the assistance of AI (Claude Opus). -- 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]
