Github user wzhfy commented on the issue:

    https://github.com/apache/spark/pull/18248
  
    @cloud-fan Actually that is my first version.
    It also has problems: if we generate spark's stats first (through analyze 
command and `alterTableStats`), then do a regular alter table command, the 
stats will lost. Because we don't store stats info (which is 
from`CatalogStatistics`) through `alterTable`, and we don't know where the 
stats info come from (hive or spark), so we can't decide whether to store the 
stats or not in `alterTable`.


---
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]

Reply via email to