alexey-milovidov
18f1266dab
Merge pull request #4099 from yandex/mutations-fix-in
...
Get rid of IAST::range
2019-01-24 20:29:13 +03:00
Vitaly Baranov
67fca7e029
Add support for settings 'format_schema' in an output query.
...
This fixes syntax error when executing 'SELECT ... FORMAT ... SETTINGS format_schema=...'
2019-01-23 22:23:37 +03:00
Ivan Lezhankin
05ab15cc84
Merge IBlockInputStream
and IProfilingBlockInputStream
into one
2019-01-23 17:48:50 +03:00
Alexey Zatelepin
370c8c4e54
Merge branch 'master' into mutations-fix-in
...
Conflicts:
dbms/src/Parsers/IAST.h
2019-01-23 14:47:53 +03:00
Alexey Zatelepin
5154814bf9
try to get rid of IAST::range #4058
2019-01-23 14:19:22 +03:00
maiha
6c83beafdd
dbms: Fixed misspells in comments
2019-01-23 04:56:53 +09:00
chertus
dbb88e8cb4
helpers for ASTIdentifier (hide semantic and casts)
2019-01-14 21:15:04 +03:00
chertus
e8245f5935
basic support for multiple_joins_emulation CLICKHOUSE-3996
2018-12-27 19:12:42 +03:00
chertus
b38f805097
JoinToSubqueryTransformVisitor CLICKHOUSE-3996
2018-12-17 19:22:28 +03:00
chertus
3db00b7b98
Merge branch 'master' into issue-3578
2018-12-05 14:43:14 +03:00
Alexey Milovidov
35f6fb5ae6
Avoid memory over-allocation when large value of "max_query_size" is specified [#CLICKHOUSE-4169]
2018-11-30 18:36:41 +03:00
chertus
65d34ca231
do not override current_database in context [CLICKHOUSE-3578]
2018-11-15 18:03:13 +03:00
chertus
2fe3cdb3f5
restore lost commits [CLICKHOUSE-3578]
2018-11-12 17:52:30 +03:00
alesapin
b0ac729228
CLICKHOUSE-4094: Add ability to kill pending queries
2018-11-01 17:56:37 +03:00
chertus
ec8d3b388d
move DumpASTNode to own file, style fixes [CLICKHOUSE-4001]
2018-10-09 17:32:11 +03:00
Alexey Milovidov
fc27be314b
Avoid temporary nullptr references [#CLICKHOUSE-2]
2018-09-02 06:00:04 +03:00
Alexey Milovidov
a3cd1ea8cb
Enabling -Wshadow [#CLICKHOUSE-2]
2018-08-27 21:16:32 +03:00
Alexey Milovidov
b9778a3764
Speed up fuzz tests [#CLICKHOUSE-2]
2018-08-23 04:31:28 +03:00
Alexey Milovidov
56af576fe5
Removed duplicate query_id logging #2482
2018-08-16 01:39:19 +03:00
chertus
2cddb4b840
send metadata only for affected table
2018-07-16 17:52:02 +03:00
Vitaliy Lyudvichenko
358e4ae9bf
Fixed failures in utils, more precise test. [#CLICKHOUSE-2910]
2018-06-20 18:41:15 +03:00
Vitaliy Lyudvichenko
e13ba09004
Rewritten ThreadStatus via adding shared thread state. [#CLICKHOUSE-2910]
...
Fixed race condition in SystemLog.
2018-06-19 23:30:35 +03:00
Vitaliy Lyudvichenko
4cd230f85c
Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910
2018-06-14 16:04:00 +03:00
Vitaliy Lyudvichenko
95b42afcb9
Add test for profile events logging. [#CLICKHOUSE-2910]
2018-06-14 14:56:12 +03:00
Alexey Milovidov
045d5975b3
Fixed discrepancy between Query, SelectQuery, InsertQuery profile events [#CLICKHOUSE-3769]
2018-06-08 22:32:35 +03:00
Vitaliy Lyudvichenko
2b179b560b
Initialize external tables after enqueue query. [#CLICKHOUSE-2910]
2018-06-01 18:32:27 +03:00
proller
b1f4bf3199
CLICKHOUSE-3587 Always write client error to log
2018-05-30 19:15:35 +03:00
Vitaliy Lyudvichenko
bd4d8a6766
Add profile events and settings logging. [#CLICKHOUSE-2910]
2018-05-17 19:01:41 +03:00
Vitaliy Lyudvichenko
de6c48f4df
Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910
2018-05-14 19:09:00 +03:00
Vitaliy Lyudvichenko
864dc0546b
Add requested changes. [#CLICKHOUSE-3645]
2018-05-09 07:55:08 +03:00
Vitaliy Lyudvichenko
8fd72a6777
Add automatic DROP DNS CACHE, update of SYSTEM queries. [#CLICKHOUSE-3645]
2018-05-09 07:55:08 +03:00
Nikolai Kochetov
d3157d910c
minor fixes
2018-03-27 22:14:48 +03:00
Nikolai Kochetov
0d3ee2e07b
Merge branch 'read_query_body_fix' of https://github.com/silviucpp/ClickHouse into silviucpp-read_query_body_fix
2018-03-26 21:30:15 +03:00
Alexey Milovidov
5ff433b670
Merged Limits to Settings [#CLICKHOUSE-2021]
2018-03-11 03:15:26 +03:00
Alexey Milovidov
afbbd780e3
Fixed error with initialization of PartLog [#CLICKHOUSE-3354]
2018-03-10 22:57:13 +03:00
Alexey Milovidov
8ff0c520d0
Removed the possibility to use queries with empty query_id; better semantics #245
2018-03-10 02:04:26 +03:00
Vitaliy Lyudvichenko
efdda9cc9b
Introduced ThreadStatus. [#CLICKHOUSE-2910]
2018-03-07 14:35:10 +03:00
Alexey Milovidov
7e7fe3c441
Execute table functions once for a query [#CLICKHOUSE-3615]
2018-03-02 08:44:17 +03:00
Alexey Milovidov
6e93635275
Better UNION ALL: development #1947
2018-02-25 09:35:24 +03:00
Alexey Milovidov
12c521fa25
Added method "getHeader" in IBlockInputStream [#CLICKHOUSE-2]
2018-01-07 03:35:44 +03:00
Silviu Caragea
c5fedfc82d
Fix the way we read the request body.
...
Current implementation it's not working properly. This can be tested with any select query that's large than max_query_size. Only up to max_query_size size is read and sent to the parser which leads to an invalid query.
2017-12-13 16:13:30 +02:00
Alexey Milovidov
01e8adbfff
Removed "experimental" namespace [#CLICKHOUSE-2].
2017-11-20 07:15:43 +03:00
proller
c66228a746
Log query id in executeQuery; Better type mismatch error; change format in report tool ( #1372 )
...
* Log query id in executeQuery; Better type mismatch error; change format in report tool
* Better log query_id
* fix message
* Use c++11 thread_local instaed of gcc's __thread
* lock mutex before notifying waiting thread in sync insertion into distributed [#CLICKHOUSE-3379]
* Cmake: fix build without downloaded submodules (#1379 )
* fix
2017-10-23 20:32:39 +03:00
Marek Vavruša
2ac5a743cc
dbms: fix build with OS X built-in clang
...
The built-in clang doesn’t support value() for
`std::experimental::optional`. It however supports
dereference operator, which is basically the
same thing:
```
/clickhouse/dbms/src/DataStreams/NullableAdapterBlockInputStream.cpp:83:67: error: call to unavailable member function 'value':
res.insert({elem.column, elem.type, rename[i].value()});
~~~~~~~~~~^~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/experimental/optional:547:17: note: candidate function has been explicitly made unavailable
value_type& value()
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/experimental/optional:539:33: note: candidate function has been explicitly made unavailable
constexpr value_type const& value() const
```
2017-10-13 18:12:29 -07:00
Vitaliy Lyudvichenko
628de0a3ea
Fixed logging of DDL queries. [#CLICKHOUSE-3128]
2017-08-13 12:18:46 +03:00
Vitaliy Lyudvichenko
10c14cfccb
Small code enhancements according to clang-tidy. [#CLICKHOUSE-2931]
2017-08-04 17:35:36 +03:00
Alexey Milovidov
4c89570988
Don't limit the size of internal queries (this is for cache dictionaries with ClickHouse source) [#CLICKHOUSE-2].
2017-07-28 21:43:40 +03:00
Nikolai Kochetov
283810e8ab
merged with master
2017-07-13 23:59:34 +03:00
Nikolai Kochetov
75be0b81d8
removed typeid_cast from IColumn.h
2017-07-13 23:58:19 +03:00
Alexey Milovidov
1bab7fc344
Using lexer (incomplete) [#CLICKHOUSE-2].
2017-07-13 08:59:01 +03:00
Alexey Milovidov
4b1eeee1a3
Using lexer (incomplete) [#CLICKHOUSE-2].
2017-07-13 08:59:01 +03:00
Alexey Milovidov
310736cd7e
Moved headers and sources to same place [#CLICKHOUSE-3].
2017-04-01 12:22:42 +03:00
Alexey Milovidov
09e3134bf4
Revert "Using C++17 [#CLICKHOUSE-3]."
...
This reverts commit 431a735efe
.
2017-04-01 11:51:30 +03:00
Alexey Milovidov
ecb0b87bd8
Using C++17 [#CLICKHOUSE-3].
2017-04-01 11:51:30 +03:00
Alexey Milovidov
137ad95929
Changed tabs to spaces in code [#CLICKHOUSE-3].
2017-04-01 11:35:09 +03:00
Vitaliy Lyudvichenko
7e5a075ef3
Fixed long ProcessList lock in case of remote server timeout. [#CLICKHOUSE-2799]
2017-02-07 20:08:43 +04:00
Vitaliy Lyudvichenko
9f8a967e6c
Fix SHOW PROCESSLIST segfault. [#CLICKHOUSE-2120]
2017-01-30 16:24:42 +03:00
Vitaliy Lyudvichenko
649fd1922b
Add TOO_MUCH_SIMULTANEOUS_QUERIES exception. [#CLICKHOUSE-2120]
2017-01-27 03:59:39 +04:00
Vitaliy Lyudvichenko
6bd306ca8c
Improve KILL QUERY. [#CLICKHOUSE-2120]
2017-01-27 03:59:39 +04:00
Vitaliy Lyudvichenko
b1bccb0bb2
Query KILL QUERY. [#CLICKHOUSE-2120]
2017-01-27 03:59:39 +04:00
Alexey Milovidov
6894df0304
Sending progress in HTTP headers (continued) [#CLICKHOUSE-32].
2017-01-22 20:26:55 +03:00
Alexey Milovidov
c903a23864
Sending progress in HTTP headers (continued) [#CLICKHOUSE-32].
2017-01-22 19:12:30 +03:00
Alexey Zatelepin
f5a25c341c
translate comments [#CLICKHOUSE-3]
2017-01-19 03:48:59 +04:00
Alexey Zatelepin
5de1975bc4
parse INTO OUTFILE clause [#CLICKHOUSE-2133]
2017-01-19 03:48:59 +04:00
Alexey Milovidov
72888b48ef
Printing user name in exception messages about exceeded quota [#METR-19622].
2016-12-25 07:00:33 +03:00
Vitaliy Lyudvichenko
ea11f61433
Added requested changes. [#METR-19372]
2016-12-09 13:13:16 +03:00
Vitaliy Lyudvichenko
f8eb9028fd
Refined query_log, processes and merges metrics.
...
Also, dbms/CMakeLists.txt was rewritten.
2016-12-09 13:11:25 +03:00
Alexey Milovidov
daeac24f04
Added ClientInfo: passing original source of query during distributed query execution; improvement of per-user limits in ProcessList [#METR-23279].
2016-10-25 00:40:39 +03:00
Alexey Milovidov
9af5ce1e3b
Separate compilation of ProfileEvents; comments [#METR-23237].
2016-10-24 05:02:37 +03:00
Vitaliy Lyudvichenko
144d9018ba
Added port column into system.processes table. [#METR-22966]
2016-10-11 22:01:55 +03:00
Alexey Milovidov
9531d6413b
Statistics in JSON formats: development [#METR-22400].
2016-08-17 07:53:14 +03:00
Alexey Milovidov
db4950c868
Added address and query into (text) error log [#METR-22441].
2016-08-16 23:33:00 +03:00
Alexey Milovidov
0cf32c8aed
Renamed method [#METR-22400].
2016-08-13 05:21:17 +03:00
Alexey Milovidov
d9b8b74180
Added setting 'log_queries_cut_to_length' [#METR-21843].
2016-06-25 06:21:01 +03:00
Alexey Milovidov
7f16b70b85
Fixed off-by-one error in Quota [#METR-20539].
2016-03-22 02:20:00 +03:00
Alexey Milovidov
12363ed329
Added limited support for expressions in INSERT ... VALUES [#METR-20048].
2016-02-13 09:37:19 +03:00
Alexey Milovidov
13c7d0983a
dbms: cutting dependency [#METR-2944]..
2016-01-12 00:46:36 +03:00
Alexey Milovidov
fea8d76c77
dbms: fixed deadlock [#METR-18755].
2015-11-12 05:14:28 +03:00
Alexey Milovidov
89848a098a
dbms: setting Content-Type header in HTTP interface [#METR-18603].
2015-10-31 00:19:54 +03:00
Alexey Milovidov
8584faf609
dbms: don't log internal queries [#METR-18133].
2015-09-24 22:25:18 +03:00
Alexey Milovidov
0ca77545b2
dbms: added setting 'max_concurrent_queries_for_user' [#METR-17965].
2015-09-09 00:01:43 +03:00
Alexey Milovidov
6acbf3db3e
dbms: fixed progress bar for INSERT SELECT and CREATE AS SELECT queries [#METR-17470].
2015-07-25 13:38:52 +03:00
Alexey Milovidov
df4a33949b
dbms: logging query finish for queries without result [#METR-16946].
2015-07-14 06:05:10 +03:00
Alexey Milovidov
4505af81b3
dbms: QueryLog: development [#METR-16946].
2015-07-01 08:24:08 +03:00
Alexey Milovidov
5ed6a1d446
dbms: QueryLog: development [#METR-16946].
2015-07-01 08:18:54 +03:00
Alexey Milovidov
3ac04b49b2
dbms: QueryLog: development [#METR-16946].
2015-06-30 02:59:25 +03:00
Alexey Milovidov
cb223d360a
dbms: QueryLog: development [#METR-16946].
2015-06-30 02:54:33 +03:00
Alexey Milovidov
b5fd5fe490
dbms: QueryLog: development (incomplete) [#METR-16946].
2015-06-30 00:35:35 +03:00
Alexey Milovidov
c36fdf0e56
dbms: initial implementation of QueryLog [#METR-16946].
2015-06-26 23:48:10 +03:00
Alexey Arno
a522013939
Merge
2015-06-25 20:38:54 +03:00
Alexey Milovidov
6f3d8f0efc
dbms: added simple priorities system [#METR-16911].
2015-06-21 09:06:04 +03:00
Alexey Milovidov
ba29065d30
dbms: fixed comment [#METR-2944].
2015-06-18 05:41:35 +03:00
Alexey Milovidov
0719320758
dbms: improvement [#METR-2944].
2015-06-18 05:11:05 +03:00
Alexey Milovidov
e27323dd2e
dbms: addition to prev. revision [#METR-16277].
2015-06-18 03:34:39 +03:00
Alexey Milovidov
9245f053ca
dbms: log query and IP address in case of syntax error [#METR-16277].
2015-06-18 03:27:25 +03:00
Alexey Milovidov
1b61065f50
dbms: more uniform logging of query, logging client IP address [#METR-16277].
2015-06-18 00:34:15 +03:00
Alexey Milovidov
114b3de689
dbms: cut dependencies [#METR-2944].
2015-04-16 09:12:35 +03:00
Alexey Milovidov
c4ea83a906
dbms: cut dependencies [#METR-2944].
2015-04-14 05:45:30 +03:00
Alexey Milovidov
9ec393df61
dbms: better diagnostics on syntax error [#METR-15933].
2015-04-11 06:10:23 +03:00
Alexey Milovidov
8eaa75dadb
dbms: logging query in one line [#METR-15530].
2015-03-18 06:13:34 +03:00
Alexey Milovidov
0828dba841
dbms: preparation [#METR-2944].
2015-03-02 04:10:58 +03:00
Alexey Milovidov
108a7850a5
dbms: improved performance on short queries [#METR-11571].
2014-06-26 04:58:14 +04:00
Alexey Milovidov
5e153b2bb9
dbms: support for JOINs in parser [#METR-11370].
2014-06-12 04:48:56 +04:00
Alexey Milovidov
0abc554493
dbms: tracking amount of memory usage per query [#METR-11015].
2014-05-04 02:57:43 +04:00
Alexey Milovidov
4f1852c399
dbms: fixed error with 'replace running query' [#METR-2944].
2014-05-03 23:52:35 +04:00
Alexey Milovidov
813406b01b
dbms: added line and column information in case of syntax error in multiline query [#METR-10728].
2014-04-13 12:52:50 +04:00
Alexey Milovidov
9dad91788b
Improvement [#METR-2807].
2014-04-08 11:47:51 +04:00
Alexey Milovidov
8a834d3025
dbms: added checking of max_query_size [#METR-10718].
2014-04-04 06:27:01 +04:00
Alexey Milovidov
eb1e9ddbab
dbms: removed useless memset, lowered default max_query_size [#METR-10718].
2014-04-02 22:38:17 +04:00
Alexey Milovidov
88058d9971
dbms: improved performance of short queries [#METR-2944].
2014-03-10 16:25:37 +04:00
Alexey Milovidov
bd2be6023a
dbms: don't log and use in processlist INSERT data [#METR-10258].
2014-03-03 00:37:11 +04:00
Sergey Fedorov
b75fe2f6eb
dbms: query Id is String valued now, show process list also shows query_id, query_id is stored in processlist, now query could be replaced [METR-8818]
2014-02-12 17:31:02 +00:00
Alexey Milovidov
fd414800d5
dbms: added ProfileEvents system [#METR-2944].
2014-01-03 08:20:13 +00:00
Alexey Milovidov
5190fb4de9
dbms: fixed diagnostic 'Empty query' [#METR-9342].
2013-11-28 20:09:38 +00:00
Alexey Milovidov
9437657b7b
dbms: modified Limits, Quotas, Progress, ProcessList [#METR-8459], [#METR-8894].
2013-11-03 05:32:42 +00:00
Alexey Milovidov
c145c316de
dbms: better exception message [#METR-2944].
2013-10-26 03:53:51 +00:00
Alexey Milovidov
23be968064
dbms: added waiting when too much queries [#CONV-8692].
2013-09-07 04:54:59 +00:00
Alexey Milovidov
7d011561e0
dbms: addition to prev. revision [#CONV-8665].
2013-09-03 23:58:05 +00:00
Alexey Milovidov
069466795d
dbms: addition to prev. revision [#CONV-8665].
2013-09-03 20:31:27 +00:00
Alexey Milovidov
d055d54380
dbms: added SHOW PROCESSLIST query and 'max_concurrent_queries' setting [#CONV-8665] [#CONV-8664].
2013-09-03 20:21:28 +00:00
Alexey Milovidov
4001d37bb7
dbms: quotas: development [#CONV-8459].
2013-08-12 00:36:18 +00:00
Alexey Milovidov
f38b00b36f
dbms: Server: HTTP interface: allowed to specify default_format in URL parameter [#CONV-2944].
2013-06-29 18:03:57 +00:00
Alexey Milovidov
fe0dd1d0b2
dbms: improvement [#CONV-2944].
2013-06-21 20:34:19 +00:00
Alexey Milovidov
bc14fabf98
dbms: server: logging HTTP queries [#CONV-2944].
2013-06-15 06:44:22 +00:00
Alexey Milovidov
24df661bdd
dbms: development of limits [#CONV-2944].
2012-12-26 20:29:28 +00:00
Alexey Milovidov
061a75785b
dbms: development [#CONV-2944].
2012-08-02 17:33:31 +00:00
Alexey Milovidov
480b1c832e
dbms: development [#CONV-2944].
2012-06-25 03:56:45 +00:00
Alexey Milovidov
e727d7cf90
dbms: development [#CONV-2944].
2012-05-22 18:32:45 +00:00
Alexey Milovidov
3a630c0d13
dbms: development [#CONV-2944].
2012-03-26 04:17:17 +00:00
Alexey Milovidov
70b8947933
dbms: development [#CONV-2944].
2012-03-11 08:52:56 +00:00
Alexey Milovidov
7d9f303599
dbms: development [#CONV-2944].
2012-03-05 00:09:41 +00:00
Alexey Milovidov
42abc4cebd
dbms: development [#CONV-2944].
2012-02-27 06:28:20 +00:00
Alexey Milovidov
b9822b02b8
dbms: development [#CONV-2944].
2012-01-09 19:20:48 +00:00
Alexey Milovidov
aef03f0478
dbms: development [#CONV-2944].
2011-11-06 20:47:07 +00:00
Alexey Milovidov
69ce664c9c
dbms: development [#CONV-2944].
2011-10-30 11:30:52 +00:00