Commit Graph

19926 Commits

Author SHA1 Message Date
alexey-milovidov
5537b151d9
Merge pull request #6305 from yandex/fix-fpe-in-yandex-consistent-hash
Fix FPE in yandexConsistentHash function
2019-08-03 04:05:38 +03:00
Alexey Milovidov
4f8d1872d2 Merge branch 'master' of github.com:yandex/ClickHouse into fix-thread-pool-hang-if-full 2019-08-03 02:51:46 +03:00
alexey-milovidov
0ee60229ea
Merge pull request #6303 from yandex/part-name-more-checks
More validation of part_name
2019-08-03 02:27:06 +03:00
Alexey Milovidov
11762f6eec Updated SIMDJSON 2019-08-03 02:24:50 +03:00
Alexey Milovidov
da2bd59237 Updated test 2019-08-03 02:08:04 +03:00
Alexey Milovidov
67f167605b Merge branch 'master' of github.com:yandex/ClickHouse into fastops 2019-08-03 01:58:53 +03:00
Alexey Milovidov
a5a6aaf8b1 Merge branch 'master' into fastops 2019-08-03 01:58:38 +03:00
alexey-milovidov
9a0c3f4b82
Merge pull request #6271 from a-rodin/bad-request-for-malformed-inserts
Return Bad Request for INCORRECT_DATA and TYPE_MISMATCH errors
2019-08-03 01:56:26 +03:00
alexey-milovidov
9af4542230
Merge pull request #6278 from yandex/fix_bool_settings_parsing
Fix bool settings parsing
2019-08-03 01:55:42 +03:00
alexey-milovidov
149ed67462
Merge pull request #6281 from yandex/fix-low-cardinality-aggregate-arguments
Fix LowCardinality arguments conversion in AggregateFunctionFactory
2019-08-03 01:50:21 +03:00
Alexey Milovidov
9cdbc6c663 Added a test 2019-08-03 01:45:25 +03:00
Alexey Milovidov
7394d3e73a Fixed exception message 2019-08-03 01:42:21 +03:00
Alexey Milovidov
62053314bb Fixed FPE in yandexConsistentHash 2019-08-03 01:40:28 +03:00
Alexey Milovidov
5774ef1ed1 Removed test 2019-08-03 00:49:50 +03:00
Alexey Milovidov
21cb7de777 More validation of part_name 2019-08-02 23:21:31 +03:00
Alexey Milovidov
2fb71013af Added performance test to show degradation of performance in gcc-9 in more isolated way 2019-08-02 23:18:03 +03:00
Alexey Milovidov
5e942d2d79 Added performance test to show degradation of performance in gcc-9 in more isolated way 2019-08-02 23:16:02 +03:00
alexey-milovidov
f149e3b436
Merge pull request #6277 from yandex/aku/pairnoinit
Make PairNoInit a simple struct.
2019-08-02 22:56:12 +03:00
alexey-milovidov
f8980e691e
Merge pull request #6274 from CurtizJ/ttl-old-parts
TTL improvements.
2019-08-02 22:51:28 +03:00
alexey-milovidov
12a8bf20eb
Merge pull request #6297 from 4ertus2/bugs
Fix crash on CAST exotic types to Decimal
2019-08-02 22:47:27 +03:00
Nikita Vasilev
bfa9a2c86f fixed index condition 2019-08-02 22:21:55 +03:00
alexey-milovidov
3e0ce7df58
Merge pull request #6249 from 4ertus2/joins
Fix join_use_nulls. Nulls in JOIN keys issue
2019-08-02 22:07:03 +03:00
Alexey Milovidov
e3927cf176 Merge branch 'master' into fastops 2019-08-02 22:04:38 +03:00
Alexey Milovidov
aaf7480c15 Updated test 2019-08-02 22:04:20 +03:00
Alexey Milovidov
73faf623f2 Adjusted precision in test 2019-08-02 22:00:22 +03:00
Alexey Milovidov
35a71506a5 Fixed error 2019-08-02 21:59:19 +03:00
Alexey Milovidov
a5105f85cf Removed table function "catBoostPool" and storage "CatBoostPool" 2019-08-02 21:52:43 +03:00
Alexey Milovidov
994ef14393 Fixed "unbundled" build 2019-08-02 21:51:39 +03:00
Nikolai Kochetov
a92f086600 Remove XMLRowOutputStream. 2019-08-02 20:39:24 +03:00
Nikolai Kochetov
6e3274ef98 Remove VerticalRowOutputStream. 2019-08-02 20:37:24 +03:00
Nikolai Kochetov
6234cb865a Remove ValuesRowOutputStream. 2019-08-02 20:19:10 +03:00
Nikolai Kochetov
1f6a16b03a Remove ValuesRowInputStream. 2019-08-02 20:16:58 +03:00
Alexey Milovidov
67d91c4b88 Fixed the possibility of hanging queries when server is overloaded 2019-08-02 20:14:04 +03:00
Nikolai Kochetov
e6b3f3f03a Remove TSKVRowInputStream. 2019-08-02 20:00:38 +03:00
Nikolai Kochetov
f820fff794 Remove TSKVRowInputStream. 2019-08-02 19:59:50 +03:00
Nikolai Kochetov
c336c514fb Remove TSKVRowInputStream. 2019-08-02 19:58:52 +03:00
Nikolai Kochetov
422b593570 Remove TSKVRowInputStream. 2019-08-02 19:56:52 +03:00
Nikolai Kochetov
ab914010e1 Remove TSKVRowInputStream. 2019-08-02 19:56:16 +03:00
Nikolai Kochetov
6ab2e19410 Remove TSKVRowInputStream. 2019-08-02 19:51:33 +03:00
Nikolai Kochetov
f809de0949 Remove TabSeparatedRowOutputStream and TSKVRowOutputStream. 2019-08-02 19:48:50 +03:00
Nikolai Kochetov
afb3c20778 Remove CSVRowOutputStream. 2019-08-02 19:37:33 +03:00
Nikolai Kochetov
e5d67cbe61 Remove ProtobufRowOutputStream. 2019-08-02 19:34:20 +03:00
Nikolai Kochetov
5fb548c994 Remove ProtobufRowOutputStream. 2019-08-02 19:31:17 +03:00
Nikolai Kochetov
8c66d106e4 Remove ProtobufRowInputStream. 2019-08-02 19:23:44 +03:00
Nikolai Kochetov
bd4f0182e4 Remove PrettyBlockOutputStreams. 2019-08-02 19:20:25 +03:00
Nikolai Kochetov
529e06e5cb Remove ParquetBlockOutputStream. 2019-08-02 19:09:52 +03:00
Nikolai Kochetov
fcecbbda73 Remove OParquetBlockInputStream 2019-08-02 19:00:24 +03:00
Nikolai Kochetov
978bdc4bfc Remove ODBCDriverBlockOutputStream. 2019-08-02 18:51:43 +03:00
Nikolai Kochetov
51bd715781 Remove ODBCDriver2BlockOutputStream. 2019-08-02 18:49:46 +03:00
Nikolai Kochetov
d57d8a609f Remove MySQLWireBlockOutputStream. 2019-08-02 18:45:21 +03:00
Nikolai Kochetov
4019f5e102 Remove JSONRowOutputStream. 2019-08-02 18:42:52 +03:00
Nikolai Kochetov
ce712d881a Remove JSONEachRowRowOutputStream. 2019-08-02 18:39:12 +03:00
Alexander Kuzmenkov
d808fafa8f Disable consecutive key optimization for UInt8/16.
These types use a FixedHashMap for aggregation, which makes lookup
almost free, so we don't have to cache the last lookup result.

This is a part of StringHashMap PR #5417 by Amos Bird.
2019-08-02 18:37:32 +03:00
Nikolai Kochetov
ae50ab6907 Remove JSONEachRowRowInputStream. 2019-08-02 18:36:36 +03:00
Nikolai Kochetov
cd299bb162 Remove JSONCompactRowOutputStream. 2019-08-02 18:32:07 +03:00
Nikolai Kochetov
2833ca6d2f Remove CapnProtoRowInputStream. 2019-08-02 18:28:13 +03:00
Nikolai Kochetov
342f044241 Remove BinaryRowOutputStream. 2019-08-02 18:25:32 +03:00
Nikolai Kochetov
03ece9dc99 Remove BinaryRowInputStream. 2019-08-02 18:21:48 +03:00
Nikolai Kochetov
dd90932222 Update FormatFactory. 2019-08-02 18:06:31 +03:00
Nikolai Kochetov
49632a74b7 Update FormatFactory. 2019-08-02 17:41:19 +03:00
chertus
fcc6a2c2be fix crash on CAST exotic types to decimal 2019-08-02 17:31:55 +03:00
Nikolai Kochetov
48818aef7f Update MySQLOutputFormat. 2019-08-02 15:41:21 +03:00
Nikolai Kochetov
0201cdf61a Merge branch 'master' into processors-and-output-formats 2019-08-02 15:29:19 +03:00
Nikolai Kochetov
77ca4acf67 Remove LowCardinality in AggregatingSortedBlockInputStream. 2019-08-02 13:54:40 +03:00
Nikolai Kochetov
5a9a4b23c3 Remove LowCardinality in AggregatingSortedBlockInputStream. 2019-08-02 13:50:42 +03:00
Nikolai Kochetov
f71ce27a70 Remove LowCardinality in AggregatingSortedBlockInputStream. 2019-08-02 13:49:52 +03:00
alesapin
ac5daf964e Fix buggy tests 2019-08-02 11:09:23 +03:00
alesapin
46a6a78e7b Merge branch 'master' into fix_bool_settings_parsing 2019-08-02 10:51:42 +03:00
Alexander Rodin
68487d512a Merge if branches with the same status code 2019-08-02 05:11:02 +00:00
Alexander Rodin
5c5b4f4de2 Revert "Replace ifs by cases"
This reverts commit 0c70f78fcb.
2019-08-02 05:07:10 +00:00
Alexey Milovidov
07273c7914 Instrumented ThreadPool 2019-08-01 23:09:38 +03:00
chertus
c5a661a05c undo wrong changes 2019-08-01 22:56:29 +03:00
Nikita Vasilev
b242c6ec79 fix test 2019-08-01 22:51:51 +03:00
chertus
94813b21ba restore names deduplication 2019-08-01 22:48:21 +03:00
Alexey Milovidov
c1de1d445c Enabled query profiler by default 2019-08-01 22:47:04 +03:00
chertus
479a0a9c8e fix case with several same keys in join 2019-08-01 22:39:39 +03:00
alesapin
af5cabd740 Fix changed logic 2019-08-01 22:30:00 +03:00
alexey-milovidov
5cf2f5f301
Merge pull request #6265 from nikitamikhaylov/query_log_enum
system.query_log: change data type of `type` column to Enum.
2019-08-01 22:21:43 +03:00
Nikita Vasilev
7aacbbdc5a fix bug 2019-08-01 22:18:36 +03:00
Alexey Milovidov
5c361c327b Enabled "precise" mode; updated tests 2019-08-01 22:17:49 +03:00
CurtizJ
d169f42b36 fix build 2019-08-01 22:07:31 +03:00
Nikolai Kochetov
c11e04f9d9 Added test. 2019-08-01 21:44:23 +03:00
Nikolai Kochetov
a8378e8ef0 Fix LowCardinality arguments conversion for AggregateFunctionFactory. 2019-08-01 21:22:38 +03:00
alesapin
ca3796f0a3 Less branches 2019-08-01 20:46:37 +03:00
alesapin
7c37450c3d Better code and tests 2019-08-01 20:43:10 +03:00
chertus
4072214b5d fix UB in join keys order 2019-08-01 20:27:51 +03:00
alesapin
5b4b875497 Fix bool settings parsing in config 2019-08-01 20:03:34 +03:00
Alexander Kuzmenkov
011150fa8a Make PairNoInit a simple struct. 2019-08-01 19:54:33 +03:00
Nikita Mikhaylov
241751542e CamelCase 2019-08-01 19:37:50 +03:00
CurtizJ
82f304f81e add query 'SYSTEM STOP TTL MERGES' 2019-08-01 18:36:12 +03:00
Alexander Rodin
0c70f78fcb Replace ifs by cases 2019-08-01 15:23:20 +00:00
Nikolai Kochetov
c228f18130 Update IRowInputFormat and FormatFactory. 2019-08-01 17:25:41 +03:00
Alexander Rodin
44b3dbb23b Return Bad Request for INCORRECT_DATA and TYPE_MISMATCH errors 2019-08-01 13:16:09 +00:00
Nikita Mikhaylov
508934fa85 remove redudant includes 2019-08-01 16:05:59 +03:00
Nikita Mikhaylov
9dbb758133 better style 2019-08-01 15:40:12 +03:00
Vitaly Baranov
d7891ec9cf Fix formula for new_size in WriteBufferFromVector(AppendModeTag). 2019-08-01 15:27:32 +03:00
tavplubix
6625536236
Merge pull request #6055 from yandex/csv_unquoted_nulls_and_default_values
CSV unquoted nulls and default values
2019-08-01 15:11:06 +03:00
CurtizJ
c30bdecf6d add missing comments 2019-08-01 15:00:35 +03:00
alexey-milovidov
e034dab1be
Merge pull request #6255 from yandex/storage-values-simplification
Simplified code with parsing table declaration for table functions.
2019-08-01 14:58:28 +03:00
Nikita Mikhaylov
406f7a2bfe done 2019-08-01 14:11:08 +03:00
CurtizJ
f224269d41 filter by ttl parts created before 'alter ... modify ttl' query with 'optimize ... final' query 2019-08-01 14:10:42 +03:00
chertus
e5d3f17225 fix test results 2019-08-01 14:02:32 +03:00
Nikita Mikhaylov
a9fea0314e better style 2019-08-01 13:31:29 +03:00
Nikolai Kochetov
a5bb2e2b3f Update Schema name in Protobuf and CapnProto formats. 2019-08-01 12:56:30 +03:00
Nikolai Kochetov
9811fdcdc7 Update CapnProtoRowInputFormat. 2019-08-01 11:31:08 +03:00
alexey-milovidov
eeeab85bbe
Merge pull request #6247 from yandex/fix-malicious-replica
Fixed the case when malicious ClickHouse replica can force clickhouse-server to write to arbitrary path.
2019-08-01 07:22:58 +03:00
Alexey Milovidov
591af05e57 Fixed error with searching debug info 2019-08-01 06:45:33 +03:00
Alexey Milovidov
c3f54f85c1 Fixed error with "unbundled" build 2019-08-01 06:06:15 +03:00
Alexey Milovidov
a25890c038 Merge branch 'master' into fastops 2019-08-01 06:05:53 +03:00
Alexey Milovidov
12f6b75284 Fixed error 2019-08-01 05:34:58 +03:00
Alexey Milovidov
49b6749280 Merge branch 'master' into fix-malicious-replica 2019-08-01 05:11:45 +03:00
Alexey Milovidov
6de3939a3d Added a test 2019-08-01 05:08:44 +03:00
Alexey Milovidov
26bb14da4e Simplified table function "values" 2019-08-01 05:03:15 +03:00
alexey-milovidov
a8793fbef3
Merge pull request #6209 from dimarub2000/values_list
VALUES list
2019-08-01 04:36:04 +03:00
alexey-milovidov
10d02cd2b9
Merge pull request #6250 from yandex/better-stack-traces
QueryProfiler: better stack traces: start outside of signal handler
2019-08-01 04:34:32 +03:00
alexey-milovidov
e8cac8ab6e
Merge pull request #6253 from yandex/std-filesystem-2
Changed boost::filesystem to std::filesystem
2019-08-01 04:32:40 +03:00
Alexey Milovidov
ec2fd3e29d Added missing files 2019-08-01 04:17:44 +03:00
Alexey Milovidov
74d4fb3ce1 Added a test for new functions 2019-08-01 03:43:50 +03:00
Alexey Milovidov
ab8dd7edd6 Added performance test 2019-08-01 03:37:47 +03:00
Alexey Milovidov
b1c9fc0233 Using FastOps library 2019-08-01 03:29:32 +03:00
Alexey Milovidov
fb3824f98b Merge branch 'master' into fastops 2019-08-01 01:59:59 +03:00
Alexey Milovidov
bf524b4419 Merge branch 'master' of github.com:yandex/ClickHouse 2019-08-01 01:49:24 +03:00
Alexey Milovidov
63c57a4c26 Fixed flappy test 2019-08-01 01:49:14 +03:00
alexey-milovidov
a94fe354c5
Merge pull request #6233 from yandex/fix-overflow-in-int-div
Fixed overflow in intDiv functions
2019-08-01 01:39:37 +03:00
Alexey Milovidov
f3921ce3e0 Changed boost::filesystem to std::filesystem 2019-08-01 01:37:41 +03:00
Alexey Milovidov
e3c342d893 Better stack traces: start outside of signal handler 2019-08-01 00:40:29 +03:00
alesapin
cfbae59701
Merge pull request #6236 from yandex/fix_prewhere_remote
Fix bug in prewhere + distributed
2019-07-31 23:22:29 +03:00
chertus
10edd76fe4 fix join_use_nulls results for key columns 2019-07-31 23:19:52 +03:00
Alexey Milovidov
bc9d620155 Fixed the case when malicious ClickHouse replica can force clickhouse-server to write to arbitrary path 2019-07-31 22:31:04 +03:00
Alexey Milovidov
5cedc24e51 Fixed error 2019-07-31 21:04:24 +03:00
Dmitry Rubashkin
fab6e89a9d Minor style fixes 2019-07-31 18:58:28 +03:00
Nikita Mikhaylov
42641a5b56 update flappy test 2019-07-31 18:43:55 +03:00
Dmitry Rubashkin
fbe7e56e93 Changed name and added comments 2019-07-31 18:43:01 +03:00
Dmitry Rubashkin
1ec249755e Parser is now used for ITableFunctionFileLike 2019-07-31 18:36:10 +03:00
Nikolai Kochetov
9c4aefe2ae Update ODBCDriver2BlockOutputFormat. 2019-07-31 18:10:51 +03:00
alesapin
f70b0ed910 Slightly better 2019-07-31 18:05:21 +03:00
Nikolai Kochetov
1347cf1359 Update ODBCDriver2BlockOutputFormat. 2019-07-31 17:58:56 +03:00
alesapin
aed4e5d1c4 Get type from source column 2019-07-31 17:57:14 +03:00
alesapin
4481bf429f Remove nulltype from assignment 2019-07-31 17:54:58 +03:00
Alexey Milovidov
e3df5a79b3 Updated test 2019-07-31 17:43:39 +03:00
Nikolai Kochetov
3a8fefdda8 Update CSVRowInputStream. 2019-07-31 17:43:08 +03:00
alexey-milovidov
ac5d2a225d
Merge pull request #6226 from yandex/aku/lock-tinylog
Lock the TinyLog storage when reading.
2019-07-31 17:40:55 +03:00
Nikita Mikhaylov
cac7972837 better 2019-07-31 17:18:59 +03:00
Nikolai Kochetov
f0bf083efc Update CSVRowInputStream. 2019-07-31 17:16:28 +03:00
Dmitry Rubashkin
a449a00e58 Comments are now in right places 2019-07-31 17:12:05 +03:00
Dmitry Rubashkin
f91c64bd28 parser changed, test modified, comments added 2019-07-31 17:06:22 +03:00
Nikita Mikhaylov
ad4459c4a2 fixed flush_logs + added pretty function 2019-07-31 17:03:23 +03:00
Nikolai Kochetov
4e38a45922 Update FormatFactory. 2019-07-31 16:26:08 +03:00
alesapin
2254e6fd32 Fix comment 2019-07-31 15:35:23 +03:00
alesapin
46c1e9d1a2 Use COPY_COLUMN instead of PROJECT 2019-07-31 15:33:58 +03:00