[ 
https://issues.apache.org/jira/browse/HIVE-8648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503151#comment-14503151
 ] 

Ashutosh Chauhan commented on HIVE-8648:
----------------------------------------

This really depends on *type* of alter command which one is performing. Some 
alter command may invalidate stats, others may not. Problem is currently IIRC 
HiveAlterTableHandler, doesnt pay any attention to type of alter statement, it 
blindly tries to invalidate, where it actually should look at the context.
Also, at the very least we need to test this with documented alter statements 
on 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-AlterTable/Partition/Column

just as an example in case of alter table touch we may not need to invalidate, 
but for alter table replace columns we may need to. HiveAlterTableHandler 
doesnt pay attention to this context yet, tries to be conservative and 
invalidate in all cases. 

> numRows cannot be set by user
> -----------------------------
>
>                 Key: HIVE-8648
>                 URL: https://issues.apache.org/jira/browse/HIVE-8648
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.0, 0.14.0, 0.13.1
>            Reporter: Brock Noland
>            Assignee: Brock Noland
>         Attachments: HIVE-8648.1.patch, HIVE-8648.patch
>
>
> Since HIVE-3777 users who want to set the number of rows for a table, must do 
> as follows:
> {noformat}
> alter table ... set tblproperties ('numRows' = '12345', 
> 'STATS_GENERATED_VIA_STATS_TASK' = 'true');
> {noformat}
> Which is strange because (1) users can know the numbers of rows and (2) the 
> stat is not generated by a stats task.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to