Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/17591#discussion_r110639538
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileStatusCache.scala
---
@@ -94,13 +94,25 @@ private class SharedInMemoryCache(maxSizeInBytes: Long)
extends Logging {
// Opaque object that uniquely identifies a shared cache user
private type ClientId = Object
+ /* [[Weigher]].weigh returns Int so we could only cache objects < 2GB
+ * instead, the weight is divided by this factor (which is smaller
+ * than the size of one [[FileStatus]]).
+ * so it will support objects up to 64GB in size.
+ */
+ private val weightScale = 32
--- End diff --
Rather than make it a member variable, just a local variable in the
initializer for cache?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]