Skip to content

Commit 96f16ad

Browse files
committed
clippy
1 parent 328421e commit 96f16ad

File tree

3 files changed

+82
-1
lines changed

3 files changed

+82
-1
lines changed

src/query/service/src/persistent_log/global_persistent_log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ impl GlobalPersistentLog {
434434
pub async fn set_version_to_meta(&self, version: usize) -> Result<()> {
435435
self.meta_store
436436
.upsert_kv(UpsertKV::new(
437-
&format!("{}/persistent_log_work/version", self.tenant_id),
437+
format!("{}/persistent_log_work/version", self.tenant_id),
438438
MatchSeq::Any,
439439
Operation::Update(serde_json::to_vec(&version)?),
440440
None,

src/query/service/src/persistent_log/table_schemas.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ impl QueryLogTable {
6868
}
6969
}
7070
}
71+
impl Default for QueryLogTable {
72+
fn default() -> Self {
73+
Self::new()
74+
}
75+
}
7176

7277
impl PersistentLogTable for QueryLogTable {
7378
fn table_name(&self) -> String {
@@ -163,6 +168,11 @@ impl QueryDetailsTable {
163168
}
164169
}
165170
}
171+
impl Default for QueryDetailsTable {
172+
fn default() -> Self {
173+
Self::new()
174+
}
175+
}
166176

167177
impl PersistentLogTable for QueryDetailsTable {
168178
fn table_name(&self) -> String {
@@ -429,6 +439,11 @@ impl QueryProfileTable {
429439
}
430440
}
431441
}
442+
impl Default for QueryProfileTable {
443+
fn default() -> Self {
444+
Self::new()
445+
}
446+
}
432447

433448
impl PersistentLogTable for QueryProfileTable {
434449
fn table_name(&self) -> String {
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
query_details
2+
log_type:Int8 NULL
3+
log_type_name:String NULL
4+
handler_type:String NULL
5+
tenant_id:String NULL
6+
cluster_id:String NULL
7+
node_id:String NULL
8+
sql_user:String NULL
9+
sql_user_quota:String NULL
10+
sql_user_privileges:String NULL
11+
query_id:String NULL
12+
query_kind:String NULL
13+
query_text:String NULL
14+
query_hash:String NULL
15+
query_parameterized_hash:String NULL
16+
event_date:Date NULL
17+
event_time:Timestamp NULL
18+
query_start_time:Timestamp NULL
19+
query_duration_ms:Int64 NULL
20+
query_queued_duration_ms:Int64 NULL
21+
current_database:String NULL
22+
written_rows:UInt64 NULL
23+
written_bytes:UInt64 NULL
24+
join_spilled_rows:UInt64 NULL
25+
join_spilled_bytes:UInt64 NULL
26+
agg_spilled_rows:UInt64 NULL
27+
agg_spilled_bytes:UInt64 NULL
28+
group_by_spilled_rows:UInt64 NULL
29+
group_by_spilled_bytes:UInt64 NULL
30+
written_io_bytes:UInt64 NULL
31+
written_io_bytes_cost_ms:UInt64 NULL
32+
scan_rows:UInt64 NULL
33+
scan_bytes:UInt64 NULL
34+
scan_io_bytes:UInt64 NULL
35+
scan_io_bytes_cost_ms:UInt64 NULL
36+
scan_partitions:UInt64 NULL
37+
total_partitions:UInt64 NULL
38+
result_rows:UInt64 NULL
39+
result_bytes:UInt64 NULL
40+
bytes_from_remote_disk:UInt64 NULL
41+
bytes_from_local_disk:UInt64 NULL
42+
bytes_from_memory:UInt64 NULL
43+
client_address:String NULL
44+
user_agent:String NULL
45+
exception_code:Int32 NULL
46+
exception_text:String NULL
47+
server_version:String NULL
48+
query_tag:String NULL
49+
has_profile:Boolean NULL
50+
peek_memory_usage:Variant NULL
51+
query_profile
52+
timestamp:Timestamp NULL
53+
query_id:String NULL
54+
profiles:Variant NULL
55+
statistics_desc:Variant NULL
56+
query_log
57+
timestamp:Timestamp NULL
58+
path:String NULL
59+
target:String NULL
60+
log_level:String NULL
61+
cluster_id:String NULL
62+
node_id:String NULL
63+
warehouse_id:String NULL
64+
query_id:String NULL
65+
message:String NULL
66+
fields:Variant NULL

0 commit comments

Comments
 (0)