englefly commented on PR #21543: URL: https://github.com/apache/doris/pull/21543#issuecomment-1628364550
The cost estimation can be more accurate if the statistics of partition are available. But we are running big data like 1T, can not really import. So now we want to extend this by injecting partition statistics. Syntax: ALTER TABLE table_name MODIFY COLUMN column_name SET STATS ('stat_name' = 'stat_value', ...) [ PARTITION (partition_name) ]; Explanation: - Table_name: The table to which the statistics are dropped. It can be a db_name.table_name form. Column_name: Specified target column. table_name Must be a column that exists in. Statistics can only be modified one column at a time. - Stat _ name and stat _ value: The corresponding stat name and the value of the stat info. Multiple stats are comma separated. Statistics that can be modified include row_count, ndv, num_nulls min_value max_value, and data_size. - Partition_name: specifies the target partition. Must be a partition existing in table_name. Multiple partitions are separated by commas. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org