Skip to content

Commit edab19b

Browse files
committed
Add default dt value to the event listener tables.
1 parent ac313ae commit edab19b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stage/event_listener_ddl.sql

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ create table presto_benchmarks.presto_query_creation_info
1919
transaction_id varchar(255) null,
2020
client_tags text null comment 'The clients tags are tags that are manually added by customers and also automatically added by Presto. These tags help with selecting various execution parameters like resource groups and other settings',
2121
resource_estimates varchar(255) null comment 'These are estimates about query execution metrics which can either be passed by a user manually or in certain situations predicted by the user. These estimates help in finding the best resource group to execute your query to optimize for latency and reliability',
22-
dt datetime(3) not null,
22+
dt datetime(3) default (now()) not null,
2323
primary key (query_id, dt)
2424
)
2525
partition by key (`dt`) partitions 365;
@@ -64,7 +64,7 @@ create table presto_benchmarks.presto_query_operator_stats
6464
spilled_data_size_bytes bigint null,
6565
info text null,
6666
runtime_stats text null,
67-
dt datetime(3) not null,
67+
dt datetime(3) default (now()) not null,
6868
primary key (query_id, stage_id, pipeline_id, operator_id, dt)
6969
)
7070
partition by key (`dt`) partitions 365;
@@ -76,7 +76,7 @@ create table presto_benchmarks.presto_query_plans
7676
plan longtext null,
7777
json_plan longtext null,
7878
environment varchar(255) null,
79-
dt datetime(3) not null,
79+
dt datetime(3) default (now()) not null,
8080
primary key (query_id, dt)
8181
)
8282
partition by key (`dt`,`query_id`) partitions 365;
@@ -97,7 +97,7 @@ create table presto_benchmarks.presto_query_stage_stats
9797
gc_statistics text null,
9898
cpu_distribution text null,
9999
memory_distribution text null,
100-
dt datetime(3) not null,
100+
dt datetime(3) default (now()) not null,
101101
primary key (query_id, stage_id, dt)
102102
)
103103
partition by key (`dt`,`query_id`,`stage_id`) partitions 365;
@@ -161,7 +161,7 @@ create table presto_benchmarks.presto_query_statistics
161161
total_split_cpu_time_ms bigint null comment 'The total CPU time consumed by a query',
162162
stage_count bigint null comment 'Total number of stages in a query',
163163
cumulative_total_memory double null comment 'Total amount of total memory used the query over the source of its execution. The unit is bytes-ms',
164-
dt datetime(3) not null,
164+
dt datetime(3) default (now()) not null,
165165
primary key (dt, query_id)
166166
)
167167
partition by key (`dt`) partitions 365;

0 commit comments

Comments
 (0)