Commit Graph

12680 Commits

Author SHA1 Message Date
Ivan Lezhankin
4c1a0ca255 Merge remote-tracking branch 'upstream/master' into iast-as 2019-03-12 15:51:18 +03:00
Ivan Lezhankin
67eefa7b12 Revert wrong replacements of dynamic_cast.
dynamic_cast to intermediate type is not equivalent to typeid_cast
2019-03-12 15:41:57 +03:00
proller
8227f5fe63 Arcadia fix 2019-03-12 15:06:17 +03:00
chertus
114e55c956 multiple COMMA/CROSS JOIN 2019-03-12 14:06:54 +03:00
chertus
69ed6e549c Merge branch 'master' into joins 2019-03-11 22:46:21 +03:00
chertus
150fbc43c2 improve CrossToInnerJoinVisitor for multiple JOINS 2019-03-11 22:45:04 +03:00
alexey-milovidov
a4e9c59aa3
Merge pull request #4648 from 4ertus2/joins
Refactoring: move JOIN conversions to InterpreterSelectQuery
2019-03-11 22:17:58 +03:00
Alexey Zatelepin
b9c4908edb add the missing part of the comment 2019-03-11 22:07:09 +03:00
alexey-milovidov
0a5adace7b
Merge pull request #4647 from 4ertus2/ast
Minor refactoring: helpers for JOIN kind
2019-03-11 22:04:41 +03:00
Nikita Vasilev
df68abe893 fix 2019-03-11 21:00:51 +03:00
Nikita Vasilev
d7e18db7f6 aggregator 2019-03-11 20:59:36 +03:00
bgranvea
2029f71869 support for CREATE OR REPLACE VIEW 2019-03-11 17:50:31 +01:00
Ivan Lezhankin
a3a8b2bbf7 Include IAST_fwd.h for using ASTPtr 2019-03-11 17:01:45 +03:00
Ivan Lezhankin
d1ead22073 Rename As<…> → as<…> 2019-03-11 16:22:51 +03:00
Ivan Lezhankin
1e9f7847dc Merge remote-tracking branch 'upstream/master' into iast-as 2019-03-11 16:11:22 +03:00
proller
b5efce5b8a Freebsd build fix (#4650)
* Update contrib/cppkafka

* Fix

* Freebsd build fix
2019-03-11 16:10:47 +03:00
chertus
c089d5b88a CrossToInnerJoinVisitor before JoinToSubqueryTransformVisitor 2019-03-11 16:08:51 +03:00
Ivan Lezhankin
a7e838e328 Replace all other casts to method IAST::As<Derived>
Also remove some redundant methods like IsIdentifier() et. al.
2019-03-11 15:49:39 +03:00
chertus
04f5584d72 move JOIn convertions to InterpreterSelectQuery 2019-03-11 15:20:55 +03:00
chertus
09a3b24cbc join kind helpers 2019-03-11 14:14:09 +03:00
Nikita Vasilev
d171330599 Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index 2019-03-11 13:06:09 +03:00
alexey-milovidov
491271271b
Merge pull request #4644 from yandex/column-string-remove-obsolete-code
Removed obsolete code after #3920
2019-03-11 03:42:10 +03:00
alexey-milovidov
edacebac21
Merge pull request #4634 from kirillDanshin/feature/topK-loadFactor
topK and topKWeighted now supports custom loadFactor
2019-03-11 03:41:55 +03:00
Alexey Milovidov
d95cd4a362 Removed obsolete code after #3920 2019-03-11 01:01:12 +03:00
alexey-milovidov
86e7889622
Update AggregateFunctionTopK.h 2019-03-11 00:33:57 +03:00
alexey-milovidov
a16c16152d
Update AggregateFunctionTopK.cpp 2019-03-11 00:32:42 +03:00
Alexey Milovidov
ac4045c55d Fixed UB in topKWeighted aggregate function #4634 2019-03-11 00:31:10 +03:00
alexey-milovidov
edb72e09ae
Merge pull request #4640 from nikvas0/nikvas0/set_opt
Improved data skipping indices calculation
2019-03-11 00:26:48 +03:00
alexey-milovidov
617a0a8938
Merge pull request #4592 from yandex/fix-concurrent-alters2
Fix a race condition during concurrent ALTER COLUMN queries
2019-03-10 19:11:49 +03:00
alexey-milovidov
c7c58785b5
Merge pull request #4637 from digitalist/use_sampling-fix-for-parallel-replicas
fix use_sampling for parallel replicas (mpetrov/madmike)
2019-03-10 19:02:40 +03:00
Alexey Milovidov
4af321728a Removed useless line 2019-03-10 18:55:22 +03:00
Nikita Vasilev
8615834804 fix 2019-03-10 11:23:59 +03:00
Nikita Vasilev
d7892e9ec7 Merge remote-tracking branch 'upstream/master' into nikvas0/set_opt 2019-03-10 11:23:01 +03:00
alexey-milovidov
6db73152d2
Hardening debug build (experimental) (#4632)
* Hardening debug build: more granular memory mappings and ASLR; add memory protection for mark cache and index

* Addition to prev. revision

* Addition to prev. revision

* Addition to prev. revision
2019-03-10 06:16:51 +03:00
alexey-milovidov
24bec290b5
Merge pull request #4584 from Felixoid/system.graphite_retentions
Rework system.graphite_retentions
2019-03-10 04:30:53 +03:00
alexey-milovidov
128fd20adf
Update registerStorageMergeTree.cpp 2019-03-10 04:30:42 +03:00
alexey-milovidov
357e17959e
Merge pull request #4602 from danlark1/master
Rename trigramDistance to ngramDistance, add more functions with CaseInsensitive and UTF, update docs, more job done in perf, added some perf tests for string search that I would like to see
2019-03-09 21:19:59 +03:00
Nikita Vasilev
d969b64237 set(0) 2019-03-09 21:17:29 +03:00
Nikita Vasilev
7f281327d9 fix 2019-03-09 18:26:52 +03:00
Alexey Elymanov
9bb64bd6d2 remove excessive check/exception 2019-03-09 17:51:10 +03:00
Alexey Elymanov
b1052cb72e fix use_sampling for parallel replicas (mpetrov/madmike) 2019-03-09 17:30:55 +03:00
Nikita Vasilev
b9d258dc99 new set 2019-03-09 17:03:41 +03:00
Nikita Vasilev
8e65c9a094 Merge remote-tracking branch 'upstream/master' into nikvas0/set_opt 2019-03-09 14:28:31 +03:00
Kirill Danshin
698c022a52
topK and topKWeighted now supports custom loadFactor
Signed-off-by: Kirill Danshin <kirill@danshin.pro>
2019-03-09 08:27:40 +03:00
alexey-milovidov
628ed349c3
Merge pull request #4627 from filimonov/issue4284
Fix broken progress in 19.3. Introduce total_rows for table function numbers().
2019-03-09 01:08:45 +03:00
alexey-milovidov
b9db35b843
Merge pull request #4603 from yandex/fix-function-replicate
Fix segfault in function "replicate"
2019-03-09 01:05:52 +03:00
Nikita Vasilev
a2480d7812 aggregation 2019-03-08 22:52:21 +03:00
Mikhail f. Shiryaev
2d27331f0c Merge remote-tracking branch 'origin/master' into system.graphite_retentions 2019-03-08 17:41:40 +01:00
Nikita Vasilev
c2fa53d9d4 aggregator 2019-03-08 18:36:39 +03:00
alexey-milovidov
bc6235c2f2
Update LimitBlockInputStream.cpp 2019-03-08 18:15:30 +03:00
alexey-milovidov
84dd4aac8b
Merge pull request #4624 from yandex/debug-pod-array
Added a few asserts to PODArray
2019-03-08 18:14:55 +03:00
alexey-milovidov
16e2e97e5d
Merge pull request #4622 from yandex/data-type-string-remove-asm
DataTypeString: remove asm code that most likely doesn't make sense for performance
2019-03-08 18:12:37 +03:00
alexey-milovidov
87e270c4a0
Update LimitBlockInputStream.cpp 2019-03-08 17:54:32 +03:00
Mikhail Filimonov
5f626dc99e Fix broken progress in 19.3 (regression in 92769a2460)
Introduce total_rows for table function `numbers()`.

fixes https://github.com/yandex/ClickHouse/issues/4429
resolves https://github.com/yandex/ClickHouse/issues/4284
2019-03-08 15:36:40 +01:00
Alexey Milovidov
3f7d634fd7 Merge branch 'master' of github.com:yandex/ClickHouse 2019-03-08 16:15:24 +03:00
Alexey Milovidov
ee996c0c99 Fixed excessive whitespace #4467 2019-03-08 16:14:40 +03:00
Alexey Milovidov
56690070fa Merge branch 'master' of github.com:yandex/ClickHouse into debug-pod-array 2019-03-08 15:59:39 +03:00
Alexey Milovidov
4905cd2b0a Added missing include 2019-03-08 15:59:06 +03:00
Alexey Milovidov
8f174e9ef2 Merge branch 'master' of github.com:yandex/ClickHouse into data-type-string-remove-asm 2019-03-08 15:56:15 +03:00
Ivan Lezhankin
0e325c7a4a Replace const typeid_casts with As<Derived>() method invocations 2019-03-08 12:48:20 +03:00
Nikita Vasilev
6a86a901b4 return KeyCondition 2019-03-08 11:29:48 +03:00
Nikita Vasilev
a77d20e56d Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index 2019-03-08 11:13:48 +03:00
Mikhail f. Shiryaev
9e82b44b62 Review adjustment 2019-03-08 08:00:46 +01:00
Alexey Milovidov
73c571412c Fixed awful error after #3920 2019-03-08 06:32:43 +03:00
Alexey Milovidov
5ef7c66c92 DataTypeString: remove asm code that most likely doesn't make sense for performance 2019-03-08 06:26:12 +03:00
Alexey Milovidov
356a5c54b8 Whitespaces 2019-03-08 06:23:34 +03:00
Alexey Milovidov
9d89cc0fc1 Debugging PODArray 2019-03-08 06:23:02 +03:00
Alex Zatelepin
896b8b15f6 fix build 2019-03-07 23:52:25 +03:00
alexey-milovidov
84763b129f
Merge pull request #4599 from yandex/dictionaries-dont-check-is-modified-under-lock
ExternalDictionaries: don't lock when checking if a dictionary is modified
2019-03-07 22:57:17 +03:00
alexey-milovidov
286d03de97
Merge pull request #4619 from yandex/fix-inconsistent-memory-tracker
Fixed inconsistency of MemoryTracker usage in Allocator (tnx. proller)
2019-03-07 22:08:39 +03:00
Alexey Zatelepin
f3ea9541fc add comments 2019-03-07 21:34:46 +03:00
Alexey Zatelepin
3344955154 separate Read and Write lock holders, better method names 2019-03-07 21:10:21 +03:00
Alexey Milovidov
d53da3d497 Fixed typo 2019-03-07 20:58:28 +03:00
Alexey Zatelepin
ab025805a3 alter intention lock 2019-03-07 20:21:18 +03:00
alexey-milovidov
8b0d8644c8
Update StorageSystemGraphite.cpp 2019-03-07 19:55:53 +03:00
Alexey Milovidov
64897faf84 Fixed inconsistency of MemoryTracker usage in Allocator (tnx. proller) 2019-03-07 19:48:24 +03:00
proller
2c4dced9d2 Add functions used in arcadia 2019-03-07 19:27:03 +03:00
Nikita Vasilev
fcb82ba901 Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index 2019-03-07 16:55:38 +03:00
Nikita Vasilev
d82ce5ddb3 move 2019-03-07 16:54:56 +03:00
Alexey Milovidov
3389cd1735 Merge branch 'master' into fix-function-replicate 2019-03-07 14:56:43 +03:00
Nikita Vasilev
01e682d23c fix 2019-03-07 14:31:23 +03:00
Nikita Vasilev
a555918fca rpnbuilder 2019-03-07 12:15:58 +03:00
Mikhail f. Shiryaev
bccbd52d78 Rework system.graphite_retentions table 2019-03-07 01:05:24 +01:00
Alexey Milovidov
58bfcba361 Merge branch 'master' into dictionaries-dont-check-is-modified-under-lock 2019-03-07 02:46:27 +03:00
alexey-milovidov
b72894d693
Merge pull request #4613 from zlobober/host_context
CHYT-67: introduce host context for using CH as a library.
2019-03-07 02:35:15 +03:00
alexey-milovidov
5411920ee7
Merge pull request #4614 from proller/fix23
Fix bug in arrayEnumerateRanked
2019-03-07 02:34:31 +03:00
alexey-milovidov
98cabc6903
Merge pull request #4608 from yandex/fix-locks-streams-destruction-order
Fix order of destruction of table locks and child streams
2019-03-07 00:38:26 +03:00
alexey-milovidov
b403419527
Merge pull request #4612 from yandex/threadpool-fix-ub
Fixed undefined behaviour in ThreadPool
2019-03-07 00:38:03 +03:00
proller
86d9876221 Merge remote-tracking branch 'upstream/master' into fix23 2019-03-06 22:58:47 +03:00
Alexey Milovidov
2f368b24df Merge branch 'threadpool-fix-ub' of github.com:yandex/ClickHouse into threadpool-fix-ub 2019-03-06 22:58:28 +03:00
Alexey Milovidov
f49562bff3 Flush query metrics before joining thread #4612 2019-03-06 22:57:54 +03:00
alexey-milovidov
df50dac691
Merge pull request #4601 from yandex/array-enumerate-ranked-dig-through-code
Code cleanups for `arrayEnumerateRanked`
2019-03-06 22:37:10 +03:00
proller
9e47a149c5 Merge remote-tracking branch 'upstream/master' into threadpool-fix-ub 2019-03-06 22:32:51 +03:00
proller
18e53999be Merge remote-tracking branch 'upstream/master' into fix23 2019-03-06 22:19:30 +03:00
proller
ee15cb237c Better fix 2019-03-06 22:19:21 +03:00
alexey-milovidov
7e4c497e19
Merge pull request #4594 from yandex/fix-low-cardinality_serialization-for-set-index
Fix Nullable and LowCardinality serialization for set index
2019-03-06 21:57:26 +03:00
Alexey Zatelepin
274ef6d51b Merge branch 'master' into fix-locks-streams-destruction-order 2019-03-06 21:47:12 +03:00
proller
482d153dcd clickhouse-odbc #157 : Remove LowCardinality from type (#4381)
* clickhouse-odbc #157 : Remove LowCardinality from type

* Update ODBCDriver2BlockOutputStream.cpp

* fix
2019-03-06 21:37:16 +03:00
alexey-milovidov
e2fde4f0d8
Merge pull request #4576 from BayoNet/DOCAPI-5203-direct-io-settings
DOCAPI-5203 direct i/o settings EN description
2019-03-06 21:34:35 +03:00
Alexey Milovidov
47df38f7a0 Adapted test for TSan #4572 2019-03-06 21:09:25 +03:00
Alexey Milovidov
41469cc874 More simple #4572 2019-03-06 20:54:20 +03:00
proller
9159d602f5 Fix bug in arrayEnumerateRanked 2019-03-06 20:19:26 +03:00
Maxim Akhmedov
9a56294fdf CHYT-67: introduce host context for using CH as a library. 2019-03-06 19:47:47 +03:00
Alexey Milovidov
89917ced9e Fixed undefined behaviour in ThreadPool #4572 2019-03-06 19:46:05 +03:00
Nikita Vasilev
565633fb2b limited like for tokenbf 2019-03-06 18:30:27 +03:00
Alexey Zatelepin
aff14bc899 clarify comment 2019-03-06 16:48:59 +03:00
Nikita Vasilev
c428d9a64c Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index 2019-03-06 16:36:34 +03:00
Alexey Zatelepin
bc30ed92d4 fix order of destruction of table locks and child streams
Incorrect order could lead to a very rare `mutex lock failed: Invalid argument`
error when MergeTree table was dropped and its parts were deleted defore the destruction
of streams that were reading from that parts.
2019-03-06 15:25:59 +03:00
alexey-milovidov
1df9c1720e
Merge pull request #4426 from Felixoid/graphite-rollup
Graphite rollup: combined rules
2019-03-06 03:10:45 +03:00
alexey-milovidov
2e6dde45b4
Update GraphiteRollupSortedBlockInputStream.cpp 2019-03-06 03:09:49 +03:00
alexey-milovidov
74f7ef390a
Merge pull request #4595 from 4ertus2/joins
Multiple JOINs multiple fixes
2019-03-06 02:55:05 +03:00
alexey-milovidov
812d563e5f
Merge pull request #4598 from 4ertus2/ast
Fix CrossToInnerJoin rewrite
2019-03-06 02:54:30 +03:00
proller
ffc9fbf769 Build fixes (#4600)
* Add Y_IGNORE

* Build fixes
2019-03-06 02:53:35 +03:00
Alexey Milovidov
fb8e37f60f Fix segfault in function "replicate" 2019-03-06 02:37:41 +03:00
Danila Kutenin
dcfd3fe37f Comment in FunctionsStringSimilarity 2019-03-06 02:08:08 +03:00
Alexey Milovidov
5a644f0052 Miscellaneous 2019-03-06 02:05:47 +03:00
Alexey Milovidov
b5b3f52f0f Added documentation 2019-03-06 01:43:18 +03:00
Danila Kutenin
952b5ea24a Rename trigramDistance to ngramDistance, add more functions with CaseInsensitive and UTF, update docs, more job done in perf, added some perf tests for string search that I would like to see 2019-03-06 01:42:28 +03:00
Alexey Milovidov
224839a58a Attempt to read the code #4475 2019-03-06 00:53:16 +03:00
Alexey Milovidov
899b2548c7 Added comment #4572 2019-03-05 23:49:21 +03:00
Alexey Milovidov
5f3d522f7c Merge branch 'master' of github.com:yandex/ClickHouse 2019-03-05 23:34:48 +03:00
Alexey Milovidov
ddbada6646 Fixed build #4583 2019-03-05 23:34:37 +03:00
proller
fae0b054f9 Arcadia fix 2019-03-05 20:51:31 +03:00
Nikolai Kochetov
3bcab12966 Fix test. 2019-03-05 19:52:29 +03:00
chertus
4f80afb158 fix gcc build 2019-03-05 19:34:10 +03:00
Alexey Milovidov
842a9708e9 ExternalDictionaries: don't lock when checking if a dictionary is modified 2019-03-05 19:06:40 +03:00
chertus
049d49333d undo last change 2019-03-05 18:21:52 +03:00
chertus
22f699c8a0 fix CrossToInnerJoin (empty where crash & where for one table wrong result) 2019-03-05 18:16:59 +03:00
chertus
72fe0115d1 move join convertions to InterpreterSelectQuery 2019-03-05 16:53:39 +03:00
proller
718fd5b4ca Add exception code METRIKA_OTHER_ERROR 2019-03-05 16:03:11 +03:00
chertus
ea4d3ec661 some multiple join fixes 2019-03-05 15:34:48 +03:00
Nikolai Kochetov
4b18b7dcdc Support Nullable columns for Set index. #4486 2019-03-05 15:17:54 +03:00
Nikolai Kochetov
52c9d4e1ad (De)Serialize set index with multiple bulks. #4486 2019-03-05 15:17:37 +03:00
chertus
a8106360bd fix ASTIdentifier print (compound could be short) 2019-03-05 13:57:05 +03:00
proller
89014b5480
Build fixes (#4591) 2019-03-05 13:15:47 +03:00
alexey-milovidov
b311bfb11d
Merge pull request #4583 from yandex/fix-invalidate-query-for-clickhouse-dictionary-source
Fix invalidate query for clickhouse dictionary source
2019-03-05 01:27:22 +03:00
Vitaly Baranov
6edec1c63f Remove unnecessary 'this->'. 2019-03-04 22:46:05 +03:00
Vitaly Baranov
405a747ddc Fix compilation after changing SmallTable. 2019-03-04 22:45:51 +03:00
Vitaly Baranov
61e21d50e1
Merge pull request #4207 from andyyzh/bitmap_feature
Added bitmap function feature with roaring bitmap
2019-03-04 22:42:47 +03:00
chertus
339047fc40 fix multiple joins asterisks qualification 2019-03-04 22:40:58 +03:00
proller
154ea47156 Build fixes (#4582)
* Fix link in split mode

* clean

* Fix link validate-odbc-connection-string

* Fix includes
2019-03-04 22:37:50 +03:00
alexey-milovidov
aa54235d23
Merge pull request #4564 from yandex/better-string-comparison
Better string comparison
2019-03-04 22:36:41 +03:00
alexey-milovidov
d2d4f4a237
Merge pull request #4579 from yandex/disable_compile_expressions
Disable compile expressions by default
2019-03-04 22:31:08 +03:00
Alexey Milovidov
2e7db37cde Fixed issue with update time of dictionaries after checking that the dictionary is not modified #4581 2019-03-04 22:13:05 +03:00
Alexey Milovidov
bbaece6900 Fixed error 2019-03-04 22:04:35 +03:00
Alexey Milovidov
af5041532a Logging of internal queries 2019-03-04 21:28:42 +03:00
Alexey Milovidov
5bac476eb1 Make the value of invalidate_query human readable 2019-03-04 21:21:07 +03:00
Alexey Milovidov
e418e4da33 Added logging for invalidate query 2019-03-04 21:20:35 +03:00
Alexey Milovidov
d019ac7ec5 Avoid std::terminate when invalidate_query returned wrong resultset #4580 2019-03-04 21:19:48 +03:00
alesapin
05f187c122 Disable compile expressions by default 2019-03-04 19:36:52 +03:00
Alexey Milovidov
c3a2e73f32 Fixed build 2019-03-04 18:53:51 +03:00
Alexey Milovidov
3033d329eb Fixed error #4564 2019-03-04 18:50:23 +03:00
Alexey Milovidov
b29c24d3d9 Fixed error #4564 2019-03-04 18:13:33 +03:00
alexey-milovidov
b172ad4274
Merge pull request #4430 from zhang2014/feature/limit_execution
Add max_execution_speed & max_execution_bytes_speed & min_execution_bytes_speed settings
2019-03-04 17:09:12 +03:00
zhang2014
fb44b6692a rename setting name 2019-03-04 10:09:44 +08:00
Alexey Milovidov
c3fabfb93f Improvement #4564 2019-03-04 03:03:20 +03:00
Alexey Milovidov
2612bd892d Additions #4564 2019-03-04 02:16:38 +03:00
Alexey Milovidov
f018578595 Better code #4564 2019-03-04 02:12:50 +03:00
Alexey Milovidov
82cb9f51b0 Fixed error 2019-03-04 01:46:46 +03:00
Alexey Milovidov
ee9cfae7f9 Fixed build with gcc-8 2019-03-04 00:07:52 +03:00
Alexey Milovidov
084586a958 Fixed build with gcc-8 2019-03-04 00:07:38 +03:00
Alexey Milovidov
efe3d53894 Fixed build with gcc-8 2019-03-04 00:05:55 +03:00
Alexey Milovidov
315b6f3878 Better string comparison (development) 2019-03-03 23:08:39 +03:00
alexey-milovidov
3924207040
Merge pull request #4405 from yandex/move-to-prewhere-improvement
Move to prewhere improvement
2019-03-03 19:06:43 +03:00
Alexey Milovidov
865d54d9e3 Addition to prev. revision 2019-03-03 16:53:06 +03:00
Alexey Milovidov
d120fc788b NaN comparisons are implementation specific - remove them from tests 2019-03-03 04:18:35 +03:00
Alexey Milovidov
bcf8cd6297 NaN comparisons are implementation specific - remove them from tests 2019-03-03 04:17:33 +03:00
Alexey Milovidov
0dc576e44f Avoid performance degradation in few degenerate cases: added fast path for tautological compares #4405 2019-03-03 02:51:48 +03:00
alexey-milovidov
62d659b801
Merge pull request #4526 from yandex/fix-aio-threshold
Fixed error with underestimation of data size to read when choosing O_DIRECT mode
2019-03-02 15:31:19 +03:00
zhang2014
eae6406f34 Better method name 2019-03-02 15:08:02 +08:00
zhang2014
be158c145b fix divide by zero crash 2019-03-02 15:08:02 +08:00
zhang2014
b696ef34d2 Add max_execution_speed & min_execution_bytes_speed & max_execution_bytes_speed 2019-03-02 15:08:02 +08:00
Alexey Milovidov
b8ff976ee9 Merge branch 'master' into move-to-prewhere-improvement 2019-03-02 04:34:49 +03:00
Alexey Milovidov
e773b6d81d Added a test to build 2019-03-02 04:32:37 +03:00
alexey-milovidov
ee903886e6
Merge pull request #4387 from abyss7/CLICKHOUSE-4268
Improve push-down logic for joined statements
2019-03-02 04:19:50 +03:00
Alexey Milovidov
dbab34e21f Fixed error #4526 2019-03-02 04:05:36 +03:00
Alexey Milovidov
526e6488e0 Merge branch 'master' into fix-aio-threshold 2019-03-02 02:39:25 +03:00
Alexey Milovidov
8df4b8e270 Added comment #4409 2019-03-01 23:17:30 +03:00
Alexey Milovidov
3c2dd5257b Fixed typo #4409 2019-03-01 23:16:56 +03:00
Alexey Milovidov
bc25bedbd4 Implemented function "flatten" #4409 2019-03-01 23:07:58 +03:00
Alexey Milovidov
9d0adf40d2 Merge branch 'array-flatten-function' of https://github.com/kzon/ClickHouse into kzon-array-flatten-function 2019-03-01 19:42:06 +03:00
Alexey Milovidov
8f4b651679 Rewrite code and added a comment #4551 2019-03-01 19:38:52 +03:00
alexey-milovidov
9a62eb8d26
Merge pull request #4506 from yandex/quantile-timing-ubsan-fix
Fixed fuzz test in UBSan
2019-03-01 19:18:33 +03:00
alexey-milovidov
f74252cff9
Merge pull request #4551 from temoon/temoon-iss-4524
Set update_time on full executable dictionary update
2019-03-01 19:09:16 +03:00
alexey-milovidov
695a2dc35f
Merge pull request #4552 from 4ertus2/bugs
Fix crash on JOIN with array or tuple
2019-03-01 18:49:22 +03:00
chertus
83503df56a fix crach on JOIN with array or tuple 2019-03-01 18:32:32 +03:00
Alexey Milovidov
51ca51aa9e Merge branch 'master' into quantile-timing-ubsan-fix 2019-03-01 17:53:04 +03:00
alexey-milovidov
97cea95f74
Merge pull request #4536 from amosbird/fixedhashtable
A Proper lookup table that uses HashTable's API
2019-03-01 17:47:33 +03:00
Alexey Zatelepin
5b850bad47 fix build 2019-03-01 14:42:41 +03:00
Amos Bird
26ab5dd7a7 A Proper lookup table that uses HashTable's API
This is the first step of allowing heterogeneous cells in hash tables.

performance test results are

```

1. HashMap<UInt16, UInt8, TrivialHash, HashTableFixedGrower<16>>;
2. NewLookupMap<UInt16, UInt8>

ResolutionWidth 30000 1 .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................223550276.46
ResolutionWidth 30000 2 .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................248772721.24
Best: 2 - 24877272124

ResolutionWidth 100000 1 ..........................................................................................................................................................................................................................................................238498413.99
ResolutionWidth 100000 2 ..........................................................................................................................................................................................................................................................261808889.98
Best: 2 - 26180888998

ResolutionWidth 300000 1 ...................................................................................239307348.81
ResolutionWidth 300000 2 ...................................................................................257592761.30
Best: 2 - 25759276130

ResolutionWidth 1000000 1 .........................240144759.26
ResolutionWidth 1000000 2 .........................257093531.91
Best: 2 - 25709353191

ResolutionWidth 5000000 1 .....241573260.35
ResolutionWidth 5000000 2 .....259314162.79
Best: 2 - 25931416279

ResolutionDepth 30000 1 .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................217108119.84
ResolutionDepth 30000 2 .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................249459504.41
Best: 2 - 24945950441

ResolutionDepth 100000 1 ..........................................................................................................................................................................................................................................................229065162.17
ResolutionDepth 100000 2 ..........................................................................................................................................................................................................................................................253769105.64
Best: 2 - 25376910564

ResolutionDepth 300000 1 ...................................................................................233079225.18
ResolutionDepth 300000 2 ...................................................................................256316273.78
Best: 2 - 25631627378

ResolutionDepth 1000000 1 .........................234184633.51
ResolutionDepth 1000000 2 .........................261100491.57
Best: 2 - 26110049157

ResolutionDepth 5000000 1 .....233118795.66
ResolutionDepth 5000000 2 .....252436160.41
Best: 2 - 25243616041

```
2019-03-01 16:47:13 +08:00
alexey-milovidov
918750c3ba
Merge pull request #4535 from yandex/fix-concurrent-alters
Fix deadlock of concurrent SELECTs and DDL queries
2019-03-01 04:10:10 +03:00
alexey-milovidov
137f800423
Update StorageSystemColumns.cpp 2019-03-01 04:08:12 +03:00
alexey-milovidov
e64cf60236
Merge pull request #4530 from hczhcz/patch-1
Fix readBinary linkage error in Field.cpp
2019-03-01 01:49:54 +03:00
Nicolae Vartolomei
602aeb3bb2
Enable taskstat accounting for versions >= 3
Previously if clickhouse was compiled under a kernel with higher
TASKSTATS_VERSION, but run under a kernel with older TASKSTAT_VERSION
extended and io accounting would be disabled.
2019-02-28 21:52:53 +00:00
Alex Zatelepin
cc92f41ddd fix build 2019-02-28 21:15:10 +03:00
Alexey Zatelepin
eee73dac42 Merge branch 'master' into fix-concurrent-alters 2019-02-28 19:19:21 +03:00
BayoNet
455ca955e5 DOCAPI-5203: Added the descriptions for direct I/O settings for MergeTree merge and SELECT queries. 2019-02-28 14:20:27 +03:00
Alexey Zatelepin
c5dde2c9fd get rid of default query_id value in RWLock::getLock [#CLICKHOUSE-3789] 2019-02-28 12:37:05 +03:00
liangqian
6757b112d1 change Sream into Stream 2019-02-28 15:27:30 +08:00
Tema Novikov
f92210d0fb
Set update_time on full executable dictionary update
This fixes issue #4524.
2019-02-28 09:47:48 +03:00