Amos Bird
8e0862a0c3
BlockIO can be empty.
2020-10-10 23:25:50 +08:00
Amos Bird
dbc14655fc
Code refactoring.
2020-10-10 18:22:33 +08:00
Amos Bird
c9ab87ed17
Fix explain syntax
2020-10-08 17:06:04 +08:00
bharatnc
b27579e3f7
Use std::chrono instead of clock_gettime
2020-09-25 10:39:37 -07:00
bharatnc
324a06145c
EventTime - construct time in s and us from same timespec
2020-09-25 10:39:37 -07:00
bharatnc
f252523442
Query,QueryThread Logs - add event_time_microseconds field
2020-09-25 10:39:37 -07:00
tavplubix
28a6b7e622
Merge pull request #14831 from bharatnc/ncb/fix-timespec-construct
...
construct query_start_time & query_start_time_microseconds from the same timespec
2020-09-16 15:42:19 +03:00
bharatnc
dc765b77e7
Use std::chrono instead of clock_gettime
2020-09-15 09:37:32 -07:00
Nikolai Kochetov
6eac433c55
Review fixes.
2020-09-15 13:40:39 +03:00
bharatnc
e4e3105014
Construct query_start_time(_microseconds) from same timespec
2020-09-14 20:04:16 -07:00
Nikolai Kochetov
bcfc83022a
Return query plan from storage.
2020-09-14 17:13:58 +03: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
Azat Khuzhin
42dd661b6a
Fix gcc10 build by reducing storage of the lambdas in executeQuery
...
There is no need to capture query AST for the status_info_to_query_log,
since callers already captured it anyway.
gcc10 reports:
../src/Interpreters/executeQuery.cpp: In member function ‘void std::__1::function<_Rp(_ArgTypes ...)>::swap(std::__1::function<_Rp(_ArgTypes ...)>&) [with _Rp = void; _ArgTypes = {DB::IBlockInputStream*, DB::IBlockOutputStream*, DB::QueryPipeline*}]’:
../src/Interpreters/executeQuery.cpp:490:49: error: array subscript 35 is outside array bounds of ‘std::__1::aligned_storage<32, 16>::type [1]’ [-Werror=array-bounds]
490 | auto status_info_to_query_log = [ast](QueryLogElement &element, const QueryStatusInfo &info) mutable
| ^
In file included from ../contrib/libcxx/include/algorithm:644,
from ../contrib/libcxx/include/__string:57,
from ../contrib/libcxx/include/string_view:175,
from ../contrib/libcxx/include/string:504,
from ../src/Common/formatReadable.h:3, from ../src/Interpreters/executeQuery.cpp:1:
../contrib/libcxx/include/functional:1877:60: note: while referencing ‘__tempbuf’
1877 | typename aligned_storage<sizeof(__buf_)>::type __tempbuf;
| ^~~~~~~~~
2020-08-19 21:25:28 +03:00
Azat Khuzhin
df359bd289
Fix logging Settings.Names/Values when log_queries_min_type > QUERY_START
2020-08-15 00:42:59 +03:00
Alexander Kuzmenkov
ddf0fe30b3
Merge pull request #13336 from ianton-ru/select_insert_time
...
Add QueryTimeMicroseconds, SelectQueryTimeMicroseconds and InsertQueryTimeMicroseconds
2020-08-08 01:05:46 +03:00
Anton Ivashkin
327090b7ea
Add QueryTimeMicroseconds, SelectQueryTimeMicroseconds and InsertQueryTimeMicroseconds to system.events, second attempt
2020-08-04 19:38:13 +03:00
alexey-milovidov
65c755190e
Revert "Add QueryTimeMicroseconds, SelectQueryTimeMicroseconds and InsertQuer…"
2020-08-04 01:18:59 +03:00
Alexander Kuzmenkov
efb09d7ff5
Cleanup for #12999 . NFC.
2020-07-31 17:53:41 +03:00
Anton Ivashkin
f4efe3c2fd
Add QueryTimeMicroseconds, SelectQueryTimeMicroseconds and InsertQueryTimeMicroseconds to system.events
2020-07-29 13:32:18 +03:00
Amos Bird
63eebd7f6c
Add current_database to system.query_log
2020-07-22 12:00:16 +08:00
Nikolai Kochetov
57d727d078
Fix result_rows and result_bytes metrics for selects.
2020-07-02 17:51:10 +03:00
alesapin
2fac3290f0
Merge branch 'master' into atomic_metadata5
2020-06-17 11:14:03 +03:00
alesapin
1ddeb3d149
Buildable getSampleBlock in StorageInMemoryMetadata
2020-06-16 18:51:29 +03:00
Alexey Milovidov
511fa106af
Better comment
2020-06-15 23:05:21 +03:00
Alexey Milovidov
1976b10ee0
Proper query formatting in logs #3853
2020-06-15 23:01:58 +03:00
Alexey Milovidov
25f941020b
Remove namespace pollution
2020-05-31 00:57:37 +03:00
Alexey Milovidov
5aff138956
Preparation for structured logging
2020-05-31 00:35:52 +03:00
Nikolai Kochetov
1fa795988f
Remove some code.
2020-05-28 11:24:59 +03:00
Nikolai Kochetov
2dcee3db5c
Merge branch 'master' into remove-experimental-use-processors-flag-3
2020-05-27 21:25:34 +03:00
Nikolai Kochetov
e93882c977
Insert select using PipelineExecutor.
2020-05-27 21:20:26 +03:00
Alexey Milovidov
7e1813825b
Return old names of macros
2020-05-24 01:24:01 +03:00
Alexey Milovidov
c87fb91532
Progress on task
2020-05-24 00:41:35 +03:00
Alexey Milovidov
ce0619dabf
Progress on task
2020-05-24 00:26:45 +03:00
Alexey Milovidov
eacff92d0e
Progress on task
2020-05-23 22:35:08 +03:00
Alexey Milovidov
a2ad11897f
Remove duplicate whitespaces (preparation)
2020-05-23 21:53:58 +03:00
Alexey Milovidov
1f13515a65
Make all LOG in single line (preparation)
2020-05-23 21:31:37 +03:00
Alexey Milovidov
ee4ffbc332
find {base,src,programs} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'LOG_\w+\([^,]+, "[^"]+" << [^<]+\);' | xargs sed -i -r -e 's/(LOG_\w+)\(([^,]+), "([^"]+)" << ([^<]+)\);/\1_FORMATTED(\2, "\3{}", \4);/'
2020-05-23 19:47:56 +03:00
tavplubix
6ece9649f1
Merge pull request #11151 from naorlov/CLICKHOUSE-7224
...
Add `FailedQuery`, `FailedSelectQuery` and `FailedInsertQuery`
2020-05-23 18:47:44 +03:00
Nikita Orlov
09255b7c46
issue-7224 Codestyle changes
2020-05-23 02:37:14 +03:00
Nikita Orlov
dffd15f643
issue-7224 Add failed Insert and Select query counters to ProfileEvents
2020-05-23 01:00:15 +03:00
Nikolai Kochetov
f7456f8320
Merge pull request #11004 from ClickHouse/remove-experimental-use-processors-flag-2
...
Remove allow_processors flag from executeQuery()
2020-05-22 10:47:15 +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
Nikolai Kochetov
6109e87aed
Try fix compatibility.
2020-05-19 18:40:15 +03:00
Nikolai Kochetov
b0d9552e1e
Try fix compatibility.
2020-05-19 17:06:33 +03:00
Nikolai Kochetov
0e48cb1f80
Removed allow_processors flag from executeQuery().
2020-05-18 16:55:07 +03:00
Nikolai Kochetov
fb38c2a30b
Remove experimental_use_processors setting, part 1. ( #10924 )
...
Remove experimental_use_processors setting, part 1.
2020-05-15 22:28:10 +03:00
Vitaliy Zakaznikov
664a09e55d
Simplifying code related to auto set output_format_enable_streaming option.
2020-04-28 18:37:15 +02:00
Vitaliy Zakaznikov
4749122734
Adding support to auto set output_format_enable_streaming option
...
based on the query type.
2020-04-28 17:50:50 +02:00
Alexey Milovidov
d01bd44f14
Merge branch 'master' into execute-query-flush-format-2
2020-04-26 03:31:46 +03:00
Alexey Milovidov
0a7edce036
Checkpoint
2020-04-22 09:01:33 +03:00