Nikita Mikhaylov
8edab24189
Add comments to all columns of system tables ( #58356 )
2024-01-12 16:39:22 +01:00
Alexey Gerasimchuck
60c9dd226d
Update src/Interpreters/QueryLog.h
...
Co-authored-by: Dmitry Novik <mrnovikd@gmail.com>
2023-09-12 10:10:05 +10:00
Alexey Gerasimchuck
c2f4dc0f14
Implemented peak_threads_usage
2023-09-07 01:32:39 +00:00
Robert Schulze
c755fde3a4
Include query cache usage in SYSTEM.QUERY_LOG
2023-07-24 16:24:36 +00:00
helifu
2255b0287a
Add 'partitions' field for system.query_log
2023-05-24 20:42:31 +08:00
Azat Khuzhin
2c40dd6a4c
Switch Block::NameMap to google::dense_hash_map over HashMap
...
Since HashMap creates 2^8 elements by default, while dense_hash_map
should be good here.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-12 05:52:57 +02:00
kssenii
b0b865c32e
Resubmit prefetches
2023-02-08 21:26:24 +01:00
Alexey Milovidov
ebbc22bcf1
Fix error
2023-02-03 02:16:30 +01:00
Alexey Milovidov
9b908a0be0
Fix trash around query kind, part 2
2023-02-01 03:31:31 +01:00
Alexander Tokmakov
1413b9537c
make error patterns more useful
2023-01-17 20:04:25 +01:00
Vladimir Chebotaryov
6d5d31e49c
Removed UUID's.
2022-10-27 10:42:26 +03:00
Vladimir Chebotaryov
c28e439c33
Review fixes.
2022-10-27 10:42:22 +03:00
Vladimir Chebotaryov
4cabe1f57c
Added applied row-level policies to system.query_log
.
2022-10-27 10:41:47 +03:00
Alexey Milovidov
4c09e2d30a
Custom column list for system.asynchronous_metric_log
2022-04-17 23:49:39 +02:00
Alexander Tokmakov
e9a5a64a71
Merge branch 'master' into mvcc_prototype
2022-01-19 21:41:23 +03:00
Azat Khuzhin
aee034a597
Use explicit template instantiation for SystemLog
...
- Move some code into module part to avoid dependency from IStorage in SystemLog
- Remove extra headers from SystemLog.h
- Rewrite some code that was relying on headers that was included by SystemLog.h
v2: rebase
v3: squash move into module part with explicit template instantiation
(to make each commit self compilable after rebase)
2022-01-10 22:01:41 +03:00
Alexander Tokmakov
5656203bc6
minor fixes
2021-11-11 21:23:42 +03:00
Alexander Tokmakov
92eec74ad7
Merge branch 'master' into mvcc_prototype
2021-11-06 21:08:36 +03:00
Dmitry Novik
a33610aa32
Make read of Counters snapshot non-atomic
2021-10-12 13:46:32 +03:00
Alexander Tokmakov
72b1b2e360
Merge branch 'master' into mvcc_prototype
2021-09-23 22:53:27 +03:00
Raúl Marín
d1d47658f5
Merge remote-tracking branch 'blessed/master' into materialization_log
2021-08-10 10:49:05 +02:00
Amos Bird
5ef59d4828
Add setting to log formatted query into system.query_log
2021-08-07 14:26:38 +08:00
Alexander Tokmakov
c74bfbf991
Merge branch 'master' into mvcc_prototype
2021-07-28 22:21:48 +03:00
Raúl Marín
f0125262b7
Add views and it's tables to system.query_log
2021-07-27 16:29:33 +02:00
Maksim Kita
352e1f27ff
Update using Map datatyle in system log tables before merge
2021-06-28 14:42:21 +03:00
Alexander Tokmakov
df2849be90
Merge branch 'master' into mvcc_prototype
2021-05-13 21:48:36 +03:00
Amos Bird
264cff6415
Projections
...
TODO (suggested by Nikolai)
1. Build query plan fro current query (inside storage::read) up to WithMergableState
2. Check, that plan is simple enough: Aggregating - Expression - Filter - ReadFromStorage (or simplier)
3. Check, that filter is the same as filter in projection, and also expression calculates the same aggregation keys as in projection
4. Return WithMergableState if projection applies
3 will be easier to do with ActionsDAG, cause it sees all functions, and dependencies are direct (but it is possible with ExpressionActions also)
Also need to figure out how prewhere works for projections, and
row_filter_policies.
wip
2021-05-11 18:12:23 +08:00
Alexander Tokmakov
f596906f47
add transaction counters
2021-04-05 14:41:34 +03:00
Alexey Milovidov
cfd47b2980
Merge branch 'master' into issue18494
2021-01-25 22:18:23 +03:00
kssenii
0d940c6137
Add AggregateFunctionCombinatorFactory, better names
2021-01-23 12:07:37 +00:00
kssenii
daab2c91bb
Better
2021-01-21 21:15:11 +00:00
kssenii
c1702f34ee
Add factories info into system.query_log
2021-01-21 15:46:37 +00:00
alfredlu
7ec8a73cc3
fix build
2020-12-28 10:38:16 +08:00
Amos Bird
d9e62581b3
Fix MSan
2020-12-18 14:13:59 +08:00
Amos Bird
2a28c127eb
Better code for real
2020-12-18 14:13:59 +08:00
Amos Bird
272311f6bd
Extensive information in system.query_log
2020-12-18 14:13:58 +08:00
nikitamikhaylov
bf1ea39392
fix logs
2020-11-03 16:59:17 +03:00
bharatnc
f252523442
Query,QueryThread Logs - add event_time_microseconds field
2020-09-25 10:39:37 -07:00
bharatnc
44e168bea7
query_start_time_microseconds field in system.query_log
...
Add a new field called `query_start_time_microseconds` that will add
`microseconds`. This new field will be of type `DateTime64`.
2020-09-04 09:42:18 -07:00
Vitaly Baranov
18e3f1f60d
Split SettingsCollection.h into 3 files: SettingsFields.h, SettingsEnums.h, SettingsCollection.h
2020-07-31 19:11:27 +03:00
Amos Bird
63eebd7f6c
Add current_database to system.query_log
2020-07-22 12:00:16 +08:00
alexey-milovidov
10fd2dd17d
Merge pull request #11118 from ClickHouse/aku/trace-log-overflow-followup
...
A follow-up for trace log overflow in perftests
2020-05-22 14:29:11 +03:00
Alexander Kuzmenkov
087d8ab020
A follow-up for trace log overflow in perftests
...
The start was in https://github.com/ClickHouse/ClickHouse/pull/11026
It turned out that the problem was due to the incorrect mutate()
implementation that lead to quadratic amount of column copying. This
problem has since been fixed.
Remove the excessively verbose logging, and also change appendToBlock of
LogElement's to accept mutable columns instead of accepting a block and
mutating it on each call. It looks wasteful, even though it is almost a
noop.
2020-05-21 23:40:23 +03:00
Azat Khuzhin
d93b9a57f6
Forward declaration for Context as much as possible.
...
Now after changing Context.h 488 modules will be recompiled instead of 582.
2020-05-21 01:53:18 +03:00
Azat Khuzhin
365b5207b7
Add log_queries_min_type to filter which entries will be written to query_log
...
Can be used to write into query_log only failed queries (i.e. on memory
exceeded error), by using:
set log_queries_min_type='EXCEPTION_WHILE_PROCESSING'
2020-04-12 10:46:36 +03:00
Ivan Lezhankin
06446b4f08
dbms/ → src/
2020-04-03 18:14:31 +03:00