Statistics for the epoch column
Thank you for all your help.
Premise
Currently we are loading Vertica tables using the COPY command.
Vertica tables are reference only and not updated.
(Deletion by truncate may be performed)After the load process, use
select analyze_statistics('public.table_name', 10);
.- The WLA is automatically executed at 18:00 every day.
The phenomenon
When I checked today after my vacation, the following messages were output to Workload Analyzer.
analyze statistics on table column public.table_name.column_name
When I checked the details, I found that most of them were for the epoch
column.
The statistics on table column public.table_name.column_name
Is it possible that the statistics of the epoch
column are not retrieved by simply retrieving the statistics when the table is loaded?
I will try to retrieve the statistics again according to the Management Console.
If you know the cause of the output, please reply.
Answers
Pretty sure that Vertica does not collect stats on the Epoch columns in projections.
The WLA rule is simply querying the dc_optimizer_events for PREDICATE OUTSIDE HISTOGRAM anf NO HISTOGRAM events.
For it to report that you need analyze stats on the Epoch column, somone must be using the EPOCH column as a predicate?
Example:
Thanks for the reply.
I double-checked the process, but there is no part where the EPOCH column is explicitly written as a predicate.
I compared the time in dc_optimizer_events.time and vertica.log, and the process before and after the time is as follows.
truncate table mytable;
copy mytable from stdin delimiter U&'\0001' record terminator E'[EOL]\n' no escape abort on error;
begin txn
copy mytable from stdin delimiter U&'\0001' record terminator E'[EOL]\n' no escape abort on error;
Starting commit
select get_num_accepted_rows();
select analyze_statistics('mytable', 10);
Is there any process that refers to the EPOCH column internally?