Github user concretevitamin commented on a diff in the pull request:
https://github.com/apache/spark/pull/1238#discussion_r14902843
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala ---
@@ -263,6 +268,19 @@ private[hive] case class MetastoreRelation
new Partition(hiveQlTable, p)
}
+ // TODO: are there any stats in hiveQlTable.getSkewedInfo that we can
use?
+ @transient override lazy val statistics = new Statistics {
--- End diff --
We could certainly move it out of the Statistics class to reside in
`MetastoreRelation`, but does `new Statistics` incur extra overheads? Otherwise
I think the copy constructor may not be the good style here, as we have a long
comment and relatively long implementation for the field `sizeInBytes`.
---
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.
---