Github user gatorsmile commented on the issue:
https://github.com/apache/spark/pull/14971
It does not break the existing behavior. If the MetastoreRelation has the
Hive-generated table statistics, we create a statistics
[here](https://github.com/gatorsmile/spark/blob/9e18ba104527d2bb14331f4b51194002dabb2556/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala#L405-L422).
If we have Spark-generated statistics, we overwrite the hive-generated one in
[restoreTableMetadata](https://github.com/apache/spark/blob/d6eede9a36766e2d2294951b054d7557008a5662/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala#L482-L484).
Thus, the current code completely matches what you wants. : )
---
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]