Alessandro Solimando created HIVE-26772:
-------------------------------------------

             Summary: Add support for specific column statistics to ANALYZE 
TABLE command
                 Key: HIVE-26772
                 URL: https://issues.apache.org/jira/browse/HIVE-26772
             Project: Hive
          Issue Type: Improvement
          Components: Parser, Statistics
    Affects Versions: 4.0.0-alpha-2
            Reporter: Alessandro Solimando


Currently column statistics for table/partitions can be computed in an 
all-or-nothing fashion by the "ANALYZE TABLE $tableName COMPUTE STATISTICS FOR 
COLUMNS" command.

We propose to improve granularity and support the request to compute a single 
kind of statistics, BIT_VECTOR for instance.

The new syntax could beĀ "ANALYZE TABLE $tableName COMPUTE $statsKind STATISTICS 
FOR COLUMNS".

In the case of BIT_VECTOR this would translate into "ANALYZE TABLE $tableName 
COMPUTE BIT_VECTOR STATISTICS FOR COLUMNS".

The change would require to extend the parser and the statistics computation 
logic.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to