Github user CodingCat commented on a diff in the pull request:
https://github.com/apache/spark/pull/20072#discussion_r158651308
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/HadoopFsRelation.scala
---
@@ -82,7 +84,15 @@ case class HadoopFsRelation(
}
}
- override def sizeInBytes: Long = location.sizeInBytes
+ override def sizeInBytes: Long = {
+ val size = location.sizeInBytes * hadoopFSSizeFactor
--- End diff --
this should be handled by `size` > Long.MaxValue, the double value is
overflowed only when the result value is Double.PositivyInfinity which would be
capped as Long.MaxValue
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]