GitHub user mbasmanova opened a pull request:

    https://github.com/apache/spark/pull/18421

    [SPARK-21213][SQL] Support collecting partition-level statistics: row…

    …Count and sizeInBytes
    
    ## What changes were proposed in this pull request?
    
    Added support for ANALYZE TABLE table PARTITION (key=value,..) COMPUTE 
STATISTICS [NOSCAN] SQL command to calculate total number of rows and size in 
bytes for the specified partition. Calculated statistics are stores in Hive 
Metastore as user-defined properties attached to the partition object. Property 
names are the same as the ones used to store table-level row count and size in 
bytes. Specifically, spark.sql.statistics.totalSize and 
spark.sql.statistics.numRows.
    
    ## How was this patch tested?
    
    Added tests.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mbasmanova/spark mbasmanova-analyze-partition

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18421.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18421
    
----
commit e18f144a2c6b318a285fbb184bb5c78408f06039
Author: Masha Basmanova <mbasman...@fb.com>
Date:   2017-06-12T20:36:28Z

    [SPARK-21213][SQL] Support collecting partition-level statistics: rowCount 
and 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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to