Commit f6d40bc
authored
fix(query): view query should not cover the origin query (#18272)
Run `CREATE VIEW c AS SELECT * FROM hits.hits LIMIT `
query the query_history:
```sql
SELECT query_start_time, query_duration_ms, query_id, query_text FROM system_history.query_history;
```
In main :
│ 2025-06-30 04:54:06.178345 │ 0 │ 475d40329f8946fd9cc2310f79de643f │ SELECT * FROM hits.hits LIMIT 1 │
In pr:
│ 2025-06-30 04:59:20.485635 │ 82 │ 04319b72fff94aac8b6c4f72fae01414 │ CREATE VIEW c AS SELECT * FROM hits.hits LIMIT 1 │1 parent beca0a1 commit f6d40bc
File tree
2 files changed
+19
-8
lines changed- src/query/service/src/sessions
- tests/logging
2 files changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
634 | 638 | | |
635 | 639 | | |
636 | 640 | | |
| |||
649 | 653 | | |
650 | 654 | | |
651 | 655 | | |
652 | | - | |
653 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
654 | 660 | | |
655 | 661 | | |
656 | 662 | | |
657 | | - | |
658 | | - | |
659 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
660 | 668 | | |
661 | 669 | | |
662 | 670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
67 | | - | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | | - | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
0 commit comments