Gleb Novikov
3c905e24e2
Merge branch 'master' into table-constraints
2019-05-17 08:02:33 +03:00
Gleb Novikov
502d86bd02
Added constraints to InterpreterCreateQuery and storages
2019-05-17 07:08:03 +03:00
Yuriy
0cd3094240
fixed stack buffer overflow
2019-05-16 20:15:43 +03:00
Yuriy
a51c293ec6
merged 'origin/master' into mysql
2019-05-16 14:19:05 +03:00
Yuriy
ff4937859e
added MySQL wire protocol presentational format
2019-05-16 06:34:04 +03:00
Nikita Lapkov
ab69128e1d
introduce Backtrace class
2019-05-14 22:15:23 +00:00
chertus
b166791176
batched version of RowRefList
2019-05-14 17:40:43 +03:00
chertus
6200d20dc2
RowRefList refactoring
2019-05-14 17:39:03 +03:00
Nikolai Kochetov
808d0f3b08
Merged with master.
2019-05-14 13:31:19 +03:00
chertus
20e7de7cce
fix perf regression: do not add right join key to result if possible
2019-05-13 21:58:15 +03:00
Guillaume Tassery
1ae8948177
Merge branch 'master' of https://github.com/yandex/ClickHouse into send_header
2019-05-13 13:35:12 +07:00
Nikita Lapkov
6dbe205b55
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-05-12 16:16:30 +00:00
Nikita Vasilev
b0307ceeef
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-05-11 22:04:57 +03:00
Anastasiya Rodigina
af4fff970b
Revert "Changes in read in pk_order, UnionBlockInputStream and InterpreterSelectQuery"
...
This reverts commit 61d49e1e5f
.
2019-05-10 23:22:45 +03:00
Anastasiya Rodigina
61d49e1e5f
Changes in read in pk_order, UnionBlockInputStream and InterpreterSelectQuery
2019-05-10 22:09:15 +03:00
alexey-milovidov
001e4bfe76
Merge pull request #5209 from PerformanceVision/rename_mv
...
Support rename operation for MaterializeView storage
2019-05-09 23:10:41 +03:00
Nikita Vasilev
05f9373af0
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-05-09 21:59:22 +03:00
alexey-milovidov
a1cb9a2d67
Merge pull request #5152 from janplus/bug-null-in
...
Fix null problem in FunctionIn
2019-05-09 19:22:41 +03:00
Anastasiya Rodigina
23a8efe367
Fix tests and change pipeline
2019-05-09 18:44:51 +03:00
Guillaume Tassery
c8bf190f84
add unsafe function member for (add|remove)dependency for calling manually the context locking
2019-05-09 13:12:02 +07:00
chertus
4969ad2f98
correct comment & some renames
2019-05-08 13:53:45 +03:00
chertus
74feef7e53
Join.h refactoring: remove unneeded specialisations
2019-05-07 21:21:44 +03:00
吴健
84ee8cec93
Add function ignoreExceptNull to meet nullable functionIn's requirement for optimization of analyse.
2019-05-07 13:20:23 +08:00
Guillaume Tassery
6dcaadc620
Merge remote-tracking branch 'upstream/master' into send_header
2019-05-06 17:18:41 +07:00
Guillaume Tassery
55842dce10
code style
2019-05-06 13:57:48 +07:00
alexey-milovidov
436c8817a4
Update InterpreterSelectQuery.h
2019-05-05 23:32:44 +03:00
alexey-milovidov
e1158f53ad
Update InterpreterSelectQuery.cpp
2019-05-05 23:29:17 +03:00
alexey-milovidov
125fce3303
Update InterpreterSelectQuery.cpp
2019-05-05 23:27:03 +03:00
alexey-milovidov
c04c614bc0
Merge branch 'master' into clickhouse-4013
2019-05-05 23:22:45 +03:00
Nikita Vasilev
27aeb3a36d
fix
2019-05-05 21:19:07 +03:00
Nikita Vasilev
3bf2397332
materialize
2019-05-05 20:01:54 +03:00
Nikita Vasilev
85564c3a84
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-05-05 14:34:10 +03:00
zhang2014
359e4c33bd
try fix push require columns with join
2019-05-05 19:12:07 +08:00
Alexey Milovidov
a6ca9f266f
Removed huge chunk of bad code
2019-05-03 05:00:57 +03:00
Alexey Milovidov
270a31abb5
Rename method for consistency
2019-05-02 19:07:23 +03:00
alexey-milovidov
d4b4a9425b
Merge pull request #5154 from yandex/fix-low-cardinality-keys-in-set-index
...
LowCardinality keys in set index
2019-05-01 20:19:04 +03:00
Nikolai Kochetov
b8adb0937f
Do not create processors for totals stream.
2019-04-30 20:37:30 +03:00
Nikolai Kochetov
43adf33ec2
Do not create processors for totals stream.
2019-04-30 20:30:19 +03:00
Nikolai Kochetov
f170e55ebd
Do not create processors for totals stream.
2019-04-30 20:20:34 +03:00
Nikolai Kochetov
1410d1a1ae
Do not create processors for totals stream.
2019-04-30 20:06:41 +03:00
Nikolai Kochetov
728e8dfc26
Do not create processors for totals stream.
2019-04-30 20:04:31 +03:00
Nikolai Kochetov
72c0530845
Do not create processors for totals stream.
2019-04-30 20:01:12 +03:00
Nikolai Kochetov
6a3966cd08
Update PreparedSets.h
2019-04-30 17:46:17 +03:00
Vitaly Baranov
19259ab5e3
Get rid of thread_local in SettingsConstraints.cpp
2019-04-30 17:09:10 +03:00
Nikolai Kochetov
6b2656b02c
Remove LowCardinality from types in PreparedSetKey. #5031
2019-04-30 13:34:12 +03:00
alexey-milovidov
0a34e05130
Merge pull request #5138 from CurtizJ/limit-by-offset
...
Added support of LIMIT n, m BY clause.
2019-04-30 00:17:29 +03:00
Nikolai Kochetov
1c0cf652ef
Attach to current thread in threadpool.
2019-04-29 18:01:53 +03:00
Nikolai Kochetov
aacc0572e5
Attach to current thread in threadpool.
2019-04-29 16:57:29 +03:00
CurtizJ
7766f5c0c3
added offset for limit by
2019-04-29 16:12:39 +03:00
Nikolai Kochetov
0b8107c497
Fix totals with rollup.
2019-04-29 13:00:17 +03:00
alexey-milovidov
0a88bcbb48
Merge pull request #5129 from kvinty/msd-radix-sort
...
[WIP] Add MSD radix sort
2019-04-29 04:50:27 +03:00
Evgenii Pravda
91ccf2ab20
Fixes
2019-04-27 20:52:43 +03:00
Anastasiya Rodigina
e750755f8f
Add comments and edit style
2019-04-27 14:59:08 +03:00
Anastasiya Rodigina
747d2e0d3a
Change pipeline + add optimize stuff into Settings.h
2019-04-27 12:39:03 +03:00
Vitaly Baranov
7801671225
Use shared_ptr to avoid copying SettingsConstraints
2019-04-27 01:09:16 +03:00
Vitaly Baranov
7e3c8d6022
Implement new constraints: "min" and "readonly".
2019-04-27 01:09:16 +03:00
Evgenii Pravda
568ef78803
Add MSD radix sort
2019-04-27 01:07:32 +03:00
Vitaly Baranov
77e7838c30
Implemented iterators in the SettingsCollection template class
2019-04-26 19:11:05 +03:00
Vitaly Baranov
d43e7a8960
Implement max
constraints for number settings.
2019-04-26 19:11:05 +03:00
Vitaly Baranov
8277e9d8f1
Refactoring of Settings based on new template class SettingsCollection.
...
Add new class SettingsConstraints.
2019-04-26 19:11:05 +03:00
Guillaume Tassery
7b1be6efc4
Clode cleaning and add test for X-ClickHouse-Summary header
2019-04-26 10:46:52 +07:00
Guillaume Tassery
ced71ac9fd
Send how many rows and bytes were written during the query
2019-04-25 18:25:49 +07:00
Alexey Milovidov
661c840fbe
Code cleanups after #4439
2019-04-25 04:16:26 +03:00
Alexey Milovidov
b52f1257a9
Removed useless include
2019-04-23 19:48:46 +03:00
Alexey Milovidov
58d7d1e451
Resolved some of PVS-Studio warnings
2019-04-22 19:07:09 +03:00
Nikita Vasilev
0c2684b33e
fix
2019-04-18 18:41:07 +03:00
Nikolai Kochetov
745beb6080
Fix rollup and cube transforms.
2019-04-18 15:43:13 +03:00
Ivan
118bea2be6
Enable predicate push-down optimization by default. ( #4846 )
...
* Enable predicate push-down optimization by default.
* Forbid push-downs for some JOIN cases.
* Fix existing tests
* Forbid optimization if a select query has ARRAY JOIN on any side.
2019-04-18 13:39:25 +03:00
Anastasiya Rodigina
ef0be2a721
Fix build and style issues
2019-04-18 01:58:24 +03:00
Anastasiya Rodigina
0c1735f1b1
ReverseBlockInputStream, optimization of group by, tests
2019-04-18 00:20:51 +03:00
Vitaly Baranov
345ae9aaa5
Merge pull request #5037 from vitlibar/fix-ubsan-errors
...
Fix ubsan errors
2019-04-17 23:39:01 +03:00
Nikita Vasilev
8e8c77a46b
added indices to mutationsInterpreter
2019-04-17 20:07:07 +03:00
Vitaly Baranov
58a9105038
Fix ubsan error "outside the range of representable values" in convertFieldToType.cpp
2019-04-17 19:10:40 +03:00
Nikolai Kochetov
d5f878dba3
Fix totals.
2019-04-17 18:35:22 +03:00
alexey-milovidov
7b201a9491
Merge pull request #4986 from 4ertus2/ast
...
Partially fix distributed_product_mode=local columns access
2019-04-17 17:59:01 +03:00
Nikolai Kochetov
87472146b3
Fix totals.
2019-04-17 17:56:46 +03:00
Nikolai Kochetov
323f742c1b
Fix totals.
2019-04-17 17:54:44 +03:00
Nikolai Kochetov
647afb65e8
Fix totals.
2019-04-17 17:38:16 +03:00
Artem Zuikov
29c92372a2
Merge pull request #4993 from 4ertus2/asof
...
Radix sort for ASOF JOIN
2019-04-16 21:31:21 +03:00
alexey-milovidov
76b6d43a53
Merge pull request #5001 from 4ertus2/bugs
...
Fix select distinct with join
2019-04-16 20:08:15 +03:00
Nikolai Kochetov
2001a38347
Fix kill query.
2019-04-16 19:38:33 +03:00
chertus
041f299979
Merge branch 'master' into bugs
2019-04-16 15:48:56 +03:00
chertus
a519e7f01a
Merge branch 'master' into asof
2019-04-16 15:48:28 +03:00
Vitaly Baranov
39c71075fa
Don't wait for the reloading when it's been doing in another thread.
2019-04-16 14:40:36 +03:00
Vitaly Baranov
6d96443440
Resolve correctly when dictionary depends on dictionary
2019-04-15 20:40:45 +03:00
chertus
7697b18b07
enable RadixSort for ASOF JOIN over UInt32
2019-04-15 17:09:39 +03:00
chertus
9c80466230
add comment
2019-04-15 14:22:51 +03:00
alesapin
8cd18c0723
Merge pull request #4991 from yandex/fix_ddl_on_relicated_table
...
Do not send queries received from DDLWorker to leader replica
2019-04-15 13:07:55 +03:00
Anton Popov
7f93f9ad2f
TTL for columns and tables ( #4212 )
...
Add TTL for columns and tables.
2019-04-15 12:30:45 +03:00
Danila Kutenin
b81e0f51f1
fix compilation in clickhouse
2019-04-14 13:37:25 +03:00
chertus
950f8a7042
fix distinct with join
2019-04-12 20:04:38 +03:00
Nikolai Kochetov
4311904af4
Fix execute query.
2019-04-12 18:32:53 +03:00
Nikolai Kochetov
17d2de2d72
Append MaterializingTransform before output format at executeQuery function.
2019-04-12 16:56:48 +03:00
Nikolai Kochetov
6949f2d80a
Added force_add_agg_info to SourceFromInputStream/
2019-04-12 16:16:07 +03:00
Nikolai Kochetov
1e5731496c
Added force_add_agg_info to SourceFromInputStream.
2019-04-12 16:09:46 +03:00
chertus
4192deb5ad
radix sort for asof join
2019-04-12 15:48:00 +03:00
alesapin
f47e3292e1
Do not send queries to leader replica received from DDLWorker
2019-04-12 14:06:05 +03:00
chertus
4707200f83
partially fix distributed_product_mode=local
2019-04-11 22:29:28 +03:00
Nikolai Kochetov
d1840417a8
Don't resize pipeline before memory efficient transform.
2019-04-11 17:28:42 +03:00
Nikolai Kochetov
a72f402468
Fix double readPrefix call.
2019-04-11 16:04:43 +03:00
alexey-milovidov
d083976b88
Merge pull request #4952 from 4ertus2/ast
...
Rewrite ASTSelectQuery (consistent children)
2019-04-11 13:38:44 +03:00
alexey-milovidov
7e7b458eb9
Merge pull request #4938 from 4ertus2/joins
...
Fix unexpected error in case of JOIN + ARRAY JOIN
2019-04-11 13:35:31 +03:00
Nikita Vasilev
20f0b17cf4
mutations
2019-04-10 20:44:39 +03:00
chertus
ee6c83a2f7
global join: fix wrong name qualification (save replaced table name as alias)
2019-04-10 20:41:19 +03:00
Nikolai Kochetov
403df591dc
Fix totals fro single remote source.
2019-04-10 19:34:20 +03:00
Nikolai Kochetov
d7aa7412ae
Fix totals fro single remote source.
2019-04-10 19:28:37 +03:00
Nikolai Kochetov
c4c98c3a99
Fix full join.
2019-04-10 17:01:52 +03:00
Nikolai Kochetov
8cbecbf5cb
Fix clang build.
2019-04-10 16:28:54 +03:00
Nikolai Kochetov
b16bce0698
Fix clang build.
2019-04-10 16:27:51 +03:00
Nikolai Kochetov
94305c41e3
Fix join for totals.
2019-04-10 14:04:56 +03:00
Nikolai Kochetov
31ed0f0e38
Fix join for totals.
2019-04-10 13:52:20 +03:00
chertus
e53a50e01a
fix pushdown & build
2019-04-09 19:49:52 +03:00
chertus
9329410012
fix use after move
2019-04-09 17:59:06 +03:00
Nikolai Kochetov
59eae7b23d
Fix join for totals.
2019-04-09 17:51:38 +03:00
chertus
82dc1fb1db
rewrite ASTSelectQuery (consistent children)
2019-04-09 17:22:35 +03:00
Nikolai Kochetov
322b1ccd6b
Fix join for totals.
2019-04-09 17:08:52 +03:00
Nikolai Kochetov
695238147b
Fix header for union.
2019-04-09 16:07:07 +03:00
Nikolai Kochetov
b1c98a9398
Fix execute query over HTTP.
2019-04-09 14:00:38 +03:00
Nikolai Kochetov
54066fc312
Fix rows_before_limit_at_least.
2019-04-09 13:17:25 +03:00
chertus
58d24c0840
join + array join: fix unexpected error
2019-04-08 15:35:26 +03:00
Artem Zuikov
cbb0404d19
Merge pull request #4924 from Gladdy/martijn-asof-speedup
...
Significant speedup of ASOF join
2019-04-06 21:38:46 +03:00
alexey-milovidov
04a163b952
Merge pull request #4922 from yandex/fix-issue-4919
...
Fix types for aggregate functions with low cardinality arguments.
2019-04-06 18:07:25 +03:00
Nikita Lapkov
fbdf2c3525
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-04-06 06:58:40 +00:00
Alexey Milovidov
07334ebad4
Fixed race condition in DNSCacheUpdater
2019-04-06 04:09:15 +03:00
Alexey Milovidov
571bc7065a
Removed unused code related to MemoryTracker
2019-04-06 01:35:56 +03:00
Martijn Bakker
0848f53bed
move the sorted atomic bool first in the class
2019-04-05 21:22:57 +01:00
Martijn Bakker
442c001fd5
fix style
2019-04-05 19:05:24 +01:00
Martijn Bakker
f96a7e401e
remove the list lookup and prevent the global lock
2019-04-05 18:59:48 +01:00
Nikolai Kochetov
523c8e5ec1
Remove LowCardinality from aggregate function argument types. #4919
2019-04-05 19:52:31 +03:00
chertus
aae1e56214
fix typo
2019-04-05 15:57:08 +03:00
chertus
f50a0778fb
fix missing column error message
2019-04-05 15:50:14 +03:00
Nikolai Kochetov
33b176f2da
Fix style.
2019-04-05 14:34:11 +03:00
Nikolai Kochetov
1470fe0a72
Fix clang build.
2019-04-05 14:27:08 +03:00
Nikolai Kochetov
7626b1b267
Multiple fixes.
2019-04-05 13:52:07 +03:00
chertus
e578020bd3
safe tables order in select * with multiple joins
2019-04-04 15:14:10 +03:00
chertus
6b49900e1a
Asterisks for multiple joins CLICKHOUSE-4372
2019-04-03 19:06:05 +03:00
Nikolai Kochetov
5e39ec610c
Merged with master
2019-04-03 14:21:38 +03:00
Nikolai Kochetov
94ff7f694a
QueryPipeline [in progress].
2019-04-03 13:14:36 +03:00
Nikolai Kochetov
18133a4948
Added processors_test_aggregation.
2019-04-03 13:13:25 +03:00
Nikolai Kochetov
6976b65b2d
Added MergingAggregatedTransform.
2019-04-03 13:13:25 +03:00
chertus
d5ffbd9b6d
fix multithreaded ASOF JOIN crash
2019-04-02 21:50:35 +03:00
chertus
04efcf2bdc
asof refactoring (searching for the crash reason)
2019-04-02 19:22:14 +03:00
chertus
886e6883e6
fix clang-7 build
2019-04-01 21:37:52 +03:00
chertus
9ed4ac7e82
get rid of macro in AsofRowRefs
2019-04-01 19:44:15 +03:00
Artem Zuikov
b6b9be7b8f
Merge pull request #4867 from Gladdy/martijn-asof-working-bt
...
Return the correct timestamp for the right-hand table of the ASOF join
2019-04-01 15:36:27 +03:00
Artem Zuikov
019c6ca591
Merge pull request #4794 from zhang2014/fix/crash_when_predicate
...
fix crash when predicate optimzer & join on
2019-04-01 15:09:50 +03:00
Martijn Bakker
d4ec3bbf70
fix style
2019-04-01 11:35:37 +01:00
Martijn Bakker
a64b8afc7e
cleanup
2019-04-01 00:09:00 +01:00
Martijn Bakker
27776ca929
fix up wrong assumption that the sample_block_with_keys has same ordering as key_names_right
2019-03-31 22:56:37 +01:00
Martijn Bakker
7ea03f6fa7
appears to work and get the correct timestamps
2019-03-31 22:14:43 +01:00
Martijn Bakker
4a7393cfc6
include the asof column in the block stored. overall not working yet but at least doesnt crash anymore
2019-03-31 20:03:57 +01:00
chertus
11997ed772
fix build
2019-03-31 13:56:54 +03:00
Martijn Bakker
4709b744bb
address the code review issues
2019-03-30 21:30:21 +00:00
Martijn Bakker
3ac66dfdb6
set default asof type value
2019-03-30 13:09:03 +00:00
Martijn Bakker
20e5fb61c4
fix style
2019-03-30 13:02:30 +00:00
Martijn Bakker
4a94545882
add test for multiple supported asof types
2019-03-30 12:52:48 +00:00
Martijn Bakker
7c5febb6aa
Merge branch 'master' into martijn-asof-nomap
2019-03-30 02:02:48 +00:00
Martijn Bakker
389f108807
working multi type asof join columns
2019-03-30 01:32:08 +00:00
alexey-milovidov
0dee8cf79c
Merge pull request #4855 from 4ertus2/joins
...
Fix crash when joining nulluble vs not nullable
2019-03-30 02:15:50 +03:00
Martijn Bakker
89515861df
asof join without using std::map, but still only on u32
2019-03-29 21:20:23 +00:00
Ivan
957d23267b
Minimal implementation of row-level security CLICKHOUSE-4315 ( #4792 )
...
For detailed description see the related PR
2019-03-29 23:31:06 +03:00
alexey-milovidov
cb486da9cd
Merge pull request #4852 from zhang2014/improvement/const_interpreter
...
Const context for insert interpreter
2019-03-29 21:42:35 +03:00
chertus
6bdbf75e30
fix crash when joining nulluble vs not nullable
2019-03-29 21:07:22 +03:00
zhang2014
aab314f154
const insert interpreter
2019-03-29 23:47:16 +08:00
zhang2014
0096ef3524
try fix
2019-03-29 22:25:37 +08:00
Alexey Milovidov
88e94bad74
Removed "assumeMutable" usage in one case
2019-03-29 17:17:29 +03:00
zhang2014
1eb5713a74
fix crash when predicate optimzer & join on
2019-03-29 18:41:26 +08:00
Martijn Bakker
9ac52b9368
fix master merge
2019-03-28 21:06:49 +00:00
Martijn Bakker
46f4557944
Merge branch 'master' into martijn-asof-join
2019-03-28 20:20:17 +00:00
Martijn Bakker
e7a10b8a3e
add inner asof join with tests
2019-03-28 19:31:11 +00:00
Martijn Bakker
817a9244c0
fix up code style
2019-03-28 19:03:57 +00:00
Martijn Bakker
b0fd915724
remove the ASOFSplit struct
2019-03-28 18:35:50 +00:00
chertus
2a5b4b3b31
fix ANY JOIN nulls in right key (ALL JOIN is still affected)
2019-03-27 16:37:11 +03:00
chertus
e92dcd4774
fix clang release build
2019-03-27 01:47:38 +03:00
Martijn Bakker
ac68fc8088
pass the half-enforced style checks such that they cannot be run on a whole file automatically :(
2019-03-26 22:05:51 +00:00
Martijn Bakker
84f40ddf02
fix build as cpp does not do partial function specialization
2019-03-26 20:13:15 +00:00
chertus
274916d944
Merge branch 'master' into nulls
2019-03-26 23:04:39 +03:00
chertus
0a0e986f75
fix crash on join not nullable with nullable
2019-03-26 22:46:03 +03:00
Martijn Bakker
f6987cfa52
have the parser recognize asof joins and feed them through to the executor
...
insert the time series into a struct ready for joining
working version that inserts the data into the hash table using the existing dispatching machinery for various types
working asof left join in clickhouse
add a test for the asof join
do some asof join cleanup
revisit the logic in case the values match between left and right side
2019-03-26 19:17:21 +00:00
alexey-milovidov
b8d9ed6f54
Merge pull request #4723 from 4ertus2/joins
...
Fix LEFT JOIN with const column + lots of Join.cpp refactoring
2019-03-26 19:46:46 +03:00
alexey-milovidov
c2e4942009
Merge pull request #4705 from 4ertus2/ast
...
SelectQueryOptions + fix duplicates in GLOBAL JOIN with asterisks
2019-03-26 19:45:27 +03:00
chertus
aac69eaa2c
Merge branch 'joins' into nulls
2019-03-25 14:54:47 +03:00
Nikita Lapkov
4a4ff8d5bf
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-03-23 18:45:22 +00:00
proller
d79fd73753
Fix critical naming bug
2019-03-23 14:23:17 +03:00
alexey-milovidov
efc2d91507
Merge pull request #4764 from proller/fix23
...
Move Interpreters/Settings* -> Core/Settings*
2019-03-22 17:49:19 +03:00
alexey-milovidov
b919876a8c
Merge pull request #4758 from yandex/tsan-system-log-fix-race-on-shutdown
...
Fixed TSan report on shutdown
2019-03-22 17:47:35 +03:00
proller
fce9db12b9
Move Interpreters/Settings* -> Core/Settings*
2019-03-22 15:08:30 +03:00
proller
d6d83d4a5c
Allow build without ssl ( #4525 ) ( #4750 )
2019-03-22 14:18:24 +03:00
Alexey Milovidov
41fede9c6b
Fixed TSan report on shutdown
2019-03-21 22:22:38 +03:00
chertus
3e146c7bbd
Merge branch 'master' into joins
2019-03-21 22:01:35 +03:00
chertus
b1f4cc6ed2
fix left join with const column
2019-03-20 20:20:14 +03:00
Nikita Vasilev
c10f10cc0b
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-20 19:39:18 +03:00
chertus
2ea11f8528
more Joins.cpp refactoring (constexpr if)
2019-03-20 18:52:41 +03:00
chertus
efa4a2bb18
minor changes
2019-03-20 18:15:44 +03:00
chertus
2713d36ce8
syntax: remove tab
2019-03-20 17:49:05 +03:00
chertus
1bb05eb089
more Join.cpp refactoring (hide some logic into AddedColumns)
2019-03-20 17:41:35 +03:00
chertus
2a4da2f687
more refactoring (rename misleading variable)
2019-03-20 16:38:17 +03:00
chertus
e1f015295b
rename functions & add comment
2019-03-20 15:28:45 +03:00
chertus
ef2d77f946
some more refactoring
2019-03-20 15:08:38 +03:00
chertus
e5a9633132
Join.cpp refactoring
2019-03-19 19:53:36 +03:00
chertus
913377fdaf
restore GLOBAL IN column renames
2019-03-18 21:45:49 +03:00
chertus
c9169b0a98
Merge branch 'master' into ast
2019-03-18 20:46:24 +03:00
chertus
1446c50884
fix RowRef initialisation (found by PVS)
2019-03-18 20:43:09 +03:00
chertus
7561ff2ab7
fix dups in GLOBAL JOIN with asterisks
2019-03-18 17:56:33 +03:00
chertus
bd559f8db8
SelectQueryOptions v3 (no inheritance)
2019-03-18 15:05:51 +03:00
chertus
b6e2697101
Merge branch 'master' into ast
2019-03-18 13:36:13 +03:00
Alexey Zatelepin
304c67da99
Merge branch 'master' into fix-add-materialized-column-after
...
Conflicts:
dbms/src/Interpreters/InterpreterCreateQuery.cpp
dbms/src/Interpreters/InterpreterDescribeQuery.cpp
dbms/src/Interpreters/interpretSubquery.cpp
dbms/src/Storages/ColumnsDescription.cpp
2019-03-17 00:46:53 +03:00
alexey-milovidov
ae2d974dda
Merge pull request #4708 from kvap/distributed-limit-by
...
Make the query planner respect LIMIT BY in remote queries
2019-03-16 20:54:06 +03:00
Ivan
8ac3e89628
Merge pull request #4649 from abyss7/iast-as
...
Implement and use method IAST::as<Derived>()
2019-03-15 23:22:46 +03:00
chertus
a63cf1aeef
fix line with PVS warning
2019-03-15 21:04:30 +03:00
chertus
5104665a05
Merge branch 'master' into ast
2019-03-15 19:40:26 +03:00
Alexey Zatelepin
b5a0a3fa23
store all kinds of columns in the same list in ColumnsDescription [#CLICKHOUSE-3101]
2019-03-15 19:37:52 +03:00
Ivan Lezhankin
4f6a494af8
Revert references where they were before refactoring.
2019-03-15 19:14:13 +03:00
chertus
ffc3974934
SelectQueryOptions v2
2019-03-15 18:57:18 +03:00
Constantin S. Pan
df6860d5e0
Make the query planner respect LIMIT BY in remote queries
2019-03-15 15:26:21 +00:00
chertus
53abdccb95
refactoring: extract SelectQueryOptions
2019-03-15 16:49:58 +03:00
Alexey Milovidov
aea3bd2cc9
Fixed potential deadlock in ExternalDictionaries
2019-03-15 03:29:53 +03:00
proller
1a33f4da40
Optional current_thread and memory_tracker ( #4664 )
2019-03-14 21:03:35 +03:00
Ivan Lezhankin
a6ca8bcb10
Merge remote-tracking branch 'upstream/master' into iast-as
2019-03-14 16:05:09 +03:00
alexey-milovidov
f398fb3691
Merge pull request #4661 from 4ertus2/joins
...
Multiple COMMA/CROSS JOINS
2019-03-14 03:10:52 +03:00
alexey-milovidov
f76a9ba4c0
Merge pull request #4654 from bgranvea/create_or_replace_view
...
support for CREATE OR REPLACE VIEW
2019-03-14 02:32:31 +03:00
Ivan Lezhankin
f64118030a
Merge remote-tracking branch 'upstream/master' into iast-as
2019-03-13 17:23:02 +03:00
proller
cf8001b6a9
Fix includes ( #4673 )
2019-03-13 16:58:04 +03:00
Ivan Lezhankin
39f7225bd4
Fix build after merge
2019-03-12 17:07:02 +03:00
chertus
b76e3ad1c4
fix tests
2019-03-12 16:17:17 +03:00
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
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
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
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
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
Nikita Lapkov
1ea971ddd2
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-03-10 01:56:41 +00:00
Nikita Lapkov
5b50026860
- remove memory allocations in signal handler
...
- revert ThreadStatus::getQueryId()
- refactor
2019-03-10 01:49:36 +00:00
Ivan Lezhankin
0e325c7a4a
Replace const typeid_casts with As<Derived>() method invocations
2019-03-08 12:48:20 +03:00
Nikita Vasilev
a77d20e56d
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-08 11:13:48 +03:00
Alexey Milovidov
356a5c54b8
Whitespaces
2019-03-08 06:23:34 +03:00
Alex Zatelepin
896b8b15f6
fix build
2019-03-07 23:52:25 +03:00
Alexey Zatelepin
3344955154
separate Read and Write lock holders, better method names
2019-03-07 21:10:21 +03:00
Alexey Zatelepin
ab025805a3
alter intention lock
2019-03-07 20:21:18 +03:00
Nikita Vasilev
fcb82ba901
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-07 16:55:38 +03: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
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
Maxim Akhmedov
9a56294fdf
CHYT-67: introduce host context for using CH as a library.
2019-03-06 19:47:47 +03:00
Nikita Vasilev
c428d9a64c
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-03-06 16:36:34 +03:00
Nikita Lapkov
12fe175385
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-03-06 10:30:47 +00:00
alexey-milovidov
74f7ef390a
Merge pull request #4595 from 4ertus2/joins
...
Multiple JOINs multiple fixes
2019-03-06 02:55:05 +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
chertus
ea4d3ec661
some multiple join fixes
2019-03-05 15:34:48 +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
chertus
339047fc40
fix multiple joins asterisks qualification
2019-03-04 22:40:58 +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
af5041532a
Logging of internal queries
2019-03-04 21:28:42 +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
Nikita Lapkov
6367e15e4e
add cpu timer. add timer type to log. refactor
2019-03-04 13:03:32 +00:00
zhang2014
fb44b6692a
rename setting name
2019-03-04 10:09:44 +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
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
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
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
Nikita Lapkov
ce4e48d6f4
Merge branch 'master' into query-poor-mans-profiler
2019-03-01 14:22:38 +00: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 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
liangqian
6757b112d1
change Sream into Stream
2019-02-28 15:27:30 +08:00
Alexey Zatelepin
0d7ab9e3ea
allow acquiring read lock to a table out of order if it was already locked by the same query [#CLICKHOUSE-3789]
...
this is important in preventing ALTER deadlocks
2019-02-27 21:34:38 +03:00
Ivan Lezhankin
d66626a35a
Revert "Move experimental join transformations to syntax analyzer"
...
This reverts commit 0e2316e0ac
.
2019-02-27 16:35:43 +03:00
Ivan Lezhankin
2a604d075a
Merge remote-tracking branch 'upstream/master' into CLICKHOUSE-4268
2019-02-27 15:08:36 +03:00
Nikita Vasilev
7a51928cad
Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index
2019-02-26 23:35:57 +03:00
Nikita Vasilev
d6f227ece7
fix build
2019-02-26 22:37:07 +03:00
Ivan Lezhankin
e9849ba8de
Don't replace tables with compound names
2019-02-26 20:22:05 +03:00
chertus
d448d3e907
enable allow_experimental_multiple_joins_emulation and allow_experimental_cross_to_join_conversion by default
2019-02-26 20:00:33 +03:00
Ivan Lezhankin
7f130d2362
Don't replace aliased tables.
2019-02-26 17:12:25 +03:00
Ivan Lezhankin
09af5512b8
Implement push-down inside join-statement
2019-02-26 13:56:19 +03:00
Ivan Lezhankin
0e2316e0ac
Move experimental join transformations to syntax analyzer
2019-02-26 13:18:12 +03:00
Ivan Lezhankin
c8eefb3927
Always modify subqueries if modifying inplace
...
to support push-down while analyzing.
2019-02-26 13:18:12 +03:00
Ivan Lezhankin
0a443399a0
Implement the debug query "ANALYZE"
...
that prints out the query after syntax analysis.
Should be helpful for tests.
2019-02-26 13:17:25 +03:00
Nikita Vasilev
4b04c4bdde
improved read
2019-02-25 21:30:02 +03:00
Nikita Vasilev
ef0de1b53e
refactoring
2019-02-25 21:23:21 +03:00
alexey-milovidov
864a81f1d5
Merge pull request #4502 from yandex/speedup-ddl-cleanup
...
Speedup ddl cleanup
2019-02-25 19:00:16 +03:00
Alexey Zatelepin
50dbfc8d50
clean distributed DDL queue in a separate thread [#CLICKHOUSE-3977]
2019-02-25 15:42:23 +03:00
alexey-milovidov
9d8b91b97a
Merge pull request #4483 from yandex/dont-create-part-log-if-not-defined
...
Do not create part_log if it is not defined in configuration file
2019-02-24 18:27:50 +03:00
alexey-milovidov
16225dff12
Merge pull request #4480 from 4ertus2/ast
...
Refactoring: simplify InDepthNodeVisitor
2019-02-24 02:32:42 +03:00
Nikita Vasilev
c61d5c84c8
UInt64 in bloom filter
2019-02-23 18:56:48 +03:00
Nikita Vasilev
635b34c442
better bloom filter
2019-02-23 17:46:40 +03:00
Nikita Vasilev
970f93d3c4
fix
2019-02-23 12:26:32 +03:00
Nikita Vasilev
81fdd13420
many columns
2019-02-22 22:59:40 +03:00
Alexey Zatelepin
46520e2887
protect zk variable with a mutex [#CLICKHOUSE-3977]
2019-02-22 22:41:33 +03:00
Alex Zatelepin
34346e37eb
Merge pull request #4472 from yandex/speedup-ddl-cleanup
...
Fix hangup on server shutdown if distributed DDLs were used.
2019-02-22 21:42:05 +03:00
chertus
14faa95c83
fix table functions & RequiredSourceColumnsVisitor
2019-02-22 20:08:10 +03:00
Alexey Milovidov
85c0ba1e70
Do not create part_log if it is not defined in configuration file
2019-02-22 19:10:14 +03:00
chertus
8bff0d74c0
minor changes
2019-02-22 18:45:47 +03:00
chertus
9e2aa47478
simplify InDepthNodeVisitor
2019-02-22 16:33:56 +03:00
Nikita Vasilev
9a28161414
fixed token extractor
2019-02-22 00:29:24 +03:00
chertus
a14d955e9e
mJOIN: correct names for right table
2019-02-21 22:43:14 +03:00
chertus
642ad05473
minor refactoring
2019-02-21 22:38:12 +03:00
Alexey Zatelepin
73f852ae82
manually reset DDLWorker in shared context to prevent reference cycles
2019-02-21 19:41:27 +03:00
chertus
10b473bb24
mJOIN: correct names for left table columns
2019-02-21 15:45:31 +03:00
Vitaly Baranov
31039056f5
Merge pull request #4174 from vitlibar/add-protobuf-input-format
...
Add protobuf input format.
2019-02-21 00:59:13 +03:00
Nikita Vasilev
f66cef68ff
fix in atom_map
2019-02-20 23:17:44 +03:00
Nikita Vasilev
ef55e93016
==
2019-02-20 22:27:23 +03:00
Nikita Vasilev
4e5bbc8176
fix
2019-02-20 20:17:31 +03:00
Nikita Vasilev
c35c671f4e
key condition
2019-02-20 19:24:46 +03:00
chertus
f028691eaa
Merge branch 'master' into joins
2019-02-20 18:48:47 +03:00
chertus
1f2a5f9a91
disable asterisks in mJOIN, add some tests
2019-02-20 18:28:53 +03:00
chertus
d45d980716
support column names without aliases (make special ones)
2019-02-20 16:22:01 +03:00
Nikita Vasilev
f7c091d497
utf8 + fixes
2019-02-20 15:48:50 +03:00
chertus
48ee3e83fa
JoinToSubqueryTransform with short names
2019-02-20 15:12:36 +03:00
alesapin
432a802342
Merge branch 'master' into fix_long_http_queries_insert
2019-02-20 14:53:36 +03:00
Nikita Vasilev
3c3cc597ab
added granule
2019-02-20 14:22:07 +03:00
alesapin
ef7beb1596
Fix bug with long http insert queries processing
2019-02-20 12:22:13 +03:00
Nikita Vasilev
10bc08b830
added StringBloomFilter
2019-02-20 12:02:19 +03:00
Vitaly Baranov
76aae5f5d0
Add support for settings 'format_schema' in a "INSERT INTO table FORMAT" query.
2019-02-20 05:32:29 +03:00
proller
e20c77e4c6
Add parquet support. Fixes, tests, ...
2019-02-19 23:51:44 +03:00
Alexey Milovidov
9c23486551
Fixed backward incompatibility of table function "remote" introduced with column comments
2019-02-19 20:02:51 +03:00
Alexey Milovidov
11fc35e098
Fixed accidential incompatibility due to wrong implementation of "send_logs_level" setting
2019-02-19 16:27:59 +03:00
alexey-milovidov
15b03f6e12
Merge pull request #4412 from 4ertus2/joins
...
Support aliases in JOIN ON section for right table columns
2019-02-18 18:31:01 +03:00
chertus
1fc6c60668
undo unneeded changes
2019-02-15 18:47:39 +03:00
chertus
b72d12d12e
join on allow aliases for right table columns
2019-02-15 18:47:39 +03:00
chertus
dc1a0ed3f4
normalize JOIN ON section
2019-02-15 18:47:39 +03:00
chertus
33c3b5cdad
some more refactoring
2019-02-15 18:47:39 +03:00
chertus
c6e541858e
refactoring: do not match columns to tables twice
2019-02-15 18:47:39 +03:00
zhang2014
597ae0b937
ISSUES-4389 fix lambda function with predicate optimizer
2019-02-15 17:04:02 +08:00
alexey-milovidov
6d5bbd642a
Merge pull request #4401 from 4ertus2/ast
...
fix UB in TranslateQualifiedNamesMatcher
2019-02-14 21:48:30 +03:00
chertus
a2ff9391ad
fix UB
2019-02-14 17:25:55 +03:00
alexey-milovidov
578b18af84
Merge pull request #4384 from yandex/fix-low-cardinality-with-rollup
...
Fix low cardinality with rollup
2019-02-13 21:29:16 +03:00
Nikolai Kochetov
cf40a1538b
Fix size() and empty() for AggregationDataWithNullKey. #4223
2019-02-13 19:54:55 +03:00
alesapin
af4c4dc1e5
Fix old clients insert query processing with embedded data
2019-02-13 15:54:22 +03:00
Alexey Milovidov
6a16d27da4
Fixed bad error message #2418
2019-02-13 02:49:32 +03:00
alexey-milovidov
62f097eb66
Merge pull request #4348 from yandex/aggregate-function-state-in-field
...
Aggregate function state in field
2019-02-12 22:13:38 +03:00
alexey-milovidov
e49004be2e
Merge pull request #4351 from 4ertus2/joins
...
Simplify QueryNormalizer and fix for 4110
2019-02-12 21:36:56 +03:00
alexey-milovidov
e762f370a7
Merge pull request #4363 from 4ertus2/ast
...
Fix full/right join 'different number of columns'
2019-02-12 21:31:09 +03:00
alexey-milovidov
c1bf56c969
Merge pull request #4370 from nikvas0/nikvas0/index_setting
...
allow_experimental_data_skipping_indices setting
2019-02-12 21:19:55 +03:00
Nikita Vasilev
5279c7ff81
setting
2019-02-12 20:54:52 +03:00
chertus
93e0621a2c
fix wrong query in push down test
2019-02-12 18:08:21 +03:00
chertus
aaf3813607
Merge branch 'master' into joins
2019-02-12 15:51:04 +03:00
chertus
3218f5003f
fix full/right join different number of columns
2019-02-12 15:11:45 +03:00
chertus
805866e6b3
hotfix for wrong aliases issue-4110
2019-02-11 22:14:57 +03:00
chertus
958b538a01
minor improvement
2019-02-11 21:26:40 +03:00
alexey-milovidov
49165b1347
Merge pull request #4344 from yandex/forbid-temporary-tables-in-database
...
Forbid temporary tables in database
2019-02-11 19:51:56 +03:00
Nikolai Kochetov
0a6f75a1b6
Allow to execute subquery with scalar aggregate function state.
2019-02-11 18:50:52 +03:00
Nikolai Kochetov
c35439a5f0
Updated FieldVisitor.
2019-02-11 18:46:19 +03:00
Alexey Milovidov
7b312c6df2
Forbid to specify a database when creating a temporary table [#CLICKHOUSE-4294]
2019-02-11 17:46:09 +03:00
alesapin
55fc095c98
Fix big dates comparison with compile expressions (Date and DateTime are not signed types anymore).
2019-02-11 17:36:54 +03:00
chertus
1de1192aa8
move asterisks extraction to TranslateQualifiedNamesVisitor (before column names normalisation)
2019-02-11 17:19:09 +03:00
alexey-milovidov
81a184c47f
Merge pull request #4301 from yandex/input-data-in-perf-test
...
Fix perf-test input data and refactor two tests
2019-02-11 12:52:03 +03:00
Alexey Milovidov
0861af12a3
Fixed thread names
2019-02-11 00:15:14 +03:00
alexey-milovidov
0dd618b9ad
Merge pull request #4326 from yandex/duplicate-includes
...
Removed duplicate includes
2019-02-10 22:31:37 +03:00
alexey-milovidov
c6a01ccfb3
Merge pull request #4325 from yandex/k3box-arbitrary-const-expressions-in-limit
...
Add arbitrary const expressions in limit processing (cleanups)
2019-02-10 22:29:58 +03:00
Alexey Milovidov
d9ab923a2a
Fixed typo
2019-02-10 21:14:23 +03:00
Alexey Milovidov
ba3cb83a84
Removed duplicate includes
2019-02-10 20:12:22 +03:00
Alexey Milovidov
58a6accee5
Updated test #4246
2019-02-10 19:55:12 +03:00
alexey-milovidov
09ee8816a1
Merge pull request #4323 from yandex/low-cardinality-production-ready
...
LowCardinality data type is production ready
2019-02-10 19:41:57 +03:00
Alexey Milovidov
d22b52b933
Allow constant expressions in LIMIT BY and TOP; fixed error #4246
2019-02-10 18:27:27 +03:00
Alexey Milovidov
c603d270f4
Cleanups #4246
2019-02-10 18:17:45 +03:00
alexey-milovidov
75c087bcf5
Merge branch 'master' into arbitrary-const-expressions-in-limit
2019-02-10 17:20:31 +03:00
Alexey Milovidov
12d4dc8592
Renamed setting #4198
2019-02-10 02:53:57 +03:00
alexey-milovidov
5853de4d2b
Merge pull request #4198 from edonin/master
...
Support of Nullable types in MySQL tables
2019-02-10 02:45:45 +03:00
Nikita Lapkov
628c282112
fix style
2019-02-09 22:40:47 +00:00
Nikita Lapkov
7c0339bc5e
fix unresolved conflicts
2019-02-09 22:26:51 +00:00
Alexey Milovidov
0eee4d42cb
LowCardinality data type is production ready
2019-02-10 00:55:51 +03:00
alexey-milovidov
9650c4a0da
Merge pull request #4286 from nikvas0/nikvas0/index_fix
...
Data Skipping Indices fix
2019-02-10 00:53:04 +03:00
alexey-milovidov
2777e54a57
Merge pull request #4287 from yandex/mutations-introspection
...
KILL MUTATION
2019-02-10 00:51:30 +03:00
Nikita Lapkov
b8d78807fe
Merge remote-tracking branch 'parent/master' into query-poor-mans-profiler
2019-02-09 21:45:34 +00:00
Nikita Lapkov
5f585948c1
review fix. stop TraceCollector gracefully
2019-02-09 21:40:10 +00:00
alexey-milovidov
bb333643f0
Merge pull request #4307 from 4ertus2/joins
...
New portion of SyntaxAnalyzer refactoring
2019-02-09 01:04:46 +03:00
chertus
c24ba390b3
fix test
2019-02-08 20:21:28 +03:00
Alexey Milovidov
3d55e375ff
Merge branch 'master' of github.com:yandex/ClickHouse
2019-02-08 19:54:15 +03:00
Alexey Milovidov
277484297a
Aggregator: miscellaneous
2019-02-08 19:54:04 +03:00
chertus
668b220258
fix push down
2019-02-08 18:37:43 +03:00
alesapin
dc98b50f14
Fix HTTP insert
2019-02-08 16:24:24 +03:00
Alexey Milovidov
94d43c4cb2
Fixed error with dangling pointer on stack to ThreadStatus
2019-02-08 16:23:10 +03:00
chertus
6309377323
remove fix for JOIN ON columns in collectUsedColumns
2019-02-08 14:14:48 +03:00
Nikita Vasilev
cecbd5d0ac
Merge remote-tracking branch 'upstream/master' into nikvas0/index_fix
2019-02-08 00:17:35 +03:00
chertus
db9a2060bf
get rid of custom JOIN ON names qualification
2019-02-07 22:18:40 +03:00
alesapin
b0a77ff3f7
Allow to insert from any format
2019-02-07 16:58:36 +03:00
Alexey Zatelepin
398a617bfd
don't throw exceptions when a query can't be killed (e.g. ALTER queries)
...
Instead report it in the KILL QUERY results
2019-02-07 16:53:06 +03:00
Emmanuel Donin de Rosière
cde57600d9
Support of Nullable types in MySQL function
...
Add setting 'external_tables_use_nulls'
2019-02-07 14:43:18 +01:00
alesapin
48bd750856
Fix perf-test input data and refactor two tests
2019-02-07 16:18:04 +03:00
Alexey Milovidov
596234e55c
System logs: simplification
2019-02-06 21:33:29 +03:00
alexey-milovidov
2686f64233
Merge pull request #4128 from yandex/unified-sets
...
Unified sets
2019-02-06 20:40:11 +03:00
chertus
3fd3884b32
one more minor refactoring
2019-02-06 19:44:47 +03:00
KochetovNicolai
9f971c276f
Merge pull request #3669 from Enmk/ipv4_and_ipv6_domains
...
Ipv4 and ipv6 domains
2019-02-06 18:16:58 +03:00
chertus
9a8db441c3
some mote ExpressionAnalyzer refactoring
2019-02-06 17:48:05 +03:00
Alexey Zatelepin
3ec6f508f1
Merge branch 'master' into mutations-introspection
...
Conflicts:
dbms/src/Interpreters/InterpreterKillQueryQuery.cpp
2019-02-06 15:22:48 +03:00
Nikita Vasilev
6ef6536460
Merge remote-tracking branch 'upstream/master' into nikvas0/index_fix
2019-02-06 14:23:35 +03:00
Nikita Vasilev
9eaabcbf3f
Merge remote-tracking branch 'upstream/master' into nikvas0/index_fix
2019-02-05 22:19:47 +03:00
alexey-milovidov
fda5aa31c2
Merge pull request #4279 from 4ertus2/joins
...
hotfix for duplicates in JOIN ON
2019-02-05 22:07:10 +03:00
Alexey Zatelepin
1bf4174ec1
check readonly when executing KILL QUERY [#CLICKHOUSE-3912]
2019-02-05 21:09:16 +03:00
Alexey Zatelepin
4b4539139b
use enum for KILL query type [#CLICKHOUSE-3912]
2019-02-05 21:09:16 +03:00
Alexey Zatelepin
d482f3e5d0
return CancellationCode from killMutation [#CLICKHOUSE-3912]
2019-02-05 21:09:15 +03:00
Alexey Zatelepin
059c1b3589
write part_log.partition_id everywhere
2019-02-05 21:09:15 +03:00
Alexey Zatelepin
59bbd8c8dc
refactor InterpreterKillQuery a bit [#CLICKHOUSE-3912]
2019-02-05 21:08:55 +03:00
Alexey Zatelepin
67be566325
KILL MUTATION skeleton [#CLICKHOUSE-3912]
2019-02-05 21:08:41 +03:00
chertus
396d4fb921
hotfix for duplicates in JOIN ON #4271
2019-02-05 19:58:57 +03:00
Nikita Vasilev
a1b0dede07
Data Skipping Indices ( #4143 )
...
* made index parser
* added index parsing
* some fixes
* added index interface and factory
* fixed compilation
* ptrs
* added indexParts
* indextypes
* index condition
* IndexCondition
* added indexes in selectexecutor
* fix
* changed comment
* fix
* added granularity
* comments
* fix
* fix
* added writing indexes
* removed indexpart class
* fix
* added setSkipIndexes
* add rw for MergeTreeIndexes
* fixes
* upd error
* fix
* fix
* reading
* test index
* fixed nullptr error
* fixed
* fix
* unique names
* asts -> exprlist
* minmax index
* fix
* fixed select
* fixed merging
* fixed mutation
* working minmax
* removed test index
* fixed style
* added indexes to checkDataPart
* added tests for minmax index
* fixed constructor
* fix style
* fixed includes
* fixed setSkipIndexes
* added indexes meta to zookeeper
* added parsing
* removed throw
* alter cmds parse
* fix
* added alter
* fix
* alters fix
* fix alters
* fix "after"
* fixed alter
* alter fix + test
* fixes
* upd setSkipIndexes
* fixed alter bug with drop all indices
* fix metadata editing
* new test and repl fix
* rm test files
* fixed repl alter
* fix
* fix
* indices
* MTReadStream
* upd test for bug
* fix
* added useful parsers and ast classes
* fix
* fix comments
* replaced columns
* fix
* fixed parsing
* fixed printing
* fix err
* basic IndicesDescription
* go to IndicesDescr
* moved indices
* go to indicesDescr
* fix test minmax_index*
* fixed MT alter
* fixed bug with replMT indices storing in zk
* rename
* refactoring
* docs ru
* docs ru
* docs en
* refactor
* rename tests
* fix docs
* refactoring
* fix
* fix
* fix
* fixed style
* unique idx
* unique
* fix
* better minmax calculation
* upd
* added getBlock
* unique_condition
* added termForAST
* unique
* fixed not
* uniqueCondition::mayBeTrueOnGranule
* fix
* fixed bug with double column
* is always true
* fix
* key set
* spaces
* test
* tests
* fix
* unique
* fix
* fix
* fixed bug with duplicate column
* removed unused data
* fix
* fixes
* __bitSwapLastTwo
* fix
2019-02-05 17:50:25 +03:00
Nikita Vasilev
87a80a4361
fixed create as
2019-02-05 16:52:45 +03:00
Nikolai Kochetov
a249fc7788
Do nut use Arena in ColumnsHashing for string in functions arrayUniq and arrayEnumerate.
2019-02-05 14:14:09 +03:00
Nikolai Kochetov
91c63c201c
Delete commented code.
2019-02-05 13:55:08 +03:00
Nikolai Kochetov
df3ec47e1d
Implemented sets using ColumnsHashing.
2019-02-05 13:55:08 +03:00
Nikolai Kochetov
3afc0c8108
Disable prev key optimization for string keys.
2019-02-05 13:55:08 +03:00
Nikolai Kochetov
264da7f9d3
Implemented sets using ColumnsHashing.
2019-02-05 13:55:15 +03:00
Nikolai Kochetov
10b49f3a74
Removed old key getters from Join.
2019-02-05 13:55:08 +03:00
Nikolai Kochetov
8db4116464
Update HashMethodHashed.
2019-02-05 13:55:08 +03:00
Alexey Milovidov
29c3195742
Removed bad code; fixed error
2019-02-05 02:18:04 +03:00
alexey-milovidov
23ad22b8a1
Merge pull request #4254 from yandex/fix-system-log-create-on-shutdown
...
Fixed weird behaviour of system logs
2019-02-05 00:11:36 +03:00
alexey-milovidov
f2c95bf243
Merge pull request #4266 from 4ertus2/cross
...
CROSS to INNER JOIN (analyze expressions)
2019-02-05 00:10:51 +03:00
Alexey Milovidov
f4ee9f4db8
Merge branch 'master' of github.com:yandex/ClickHouse into fix-system-log-create-on-shutdown
2019-02-04 22:02:10 +03:00
alexey-milovidov
143f14cd64
Merge pull request #4261 from yandex/fix-bad-query-id-in-log
...
Fixed bad code for printing query_id in text logs
2019-02-04 22:01:09 +03:00
chertus
27ba299c95
CROSS to INNER JOIN (analyze expressions)
2019-02-04 21:45:31 +03:00
Alexey Milovidov
5fcc02bab2
Fixed bad code for printing query_id in text logs
2019-02-04 18:39:08 +03:00
alexey-milovidov
39f8eb571f
Merge pull request #4213 from nvartolomei/nv/http-cancel
...
Cancel http read only queries if client socket goes away
2019-02-04 17:33:47 +03:00
Alexey Milovidov
a4d1cacea8
Fixed weird behaviour of system logs [#CLICKHOUSE-4275]
2019-02-04 17:08:39 +03:00
Vasily Nemkov
2716df8ab2
IPv4 and IPv6 Domain implementation.
...
Added:
* IDataTypeDomain interface;
* method DataTypeFactory::registerDataTypeDomain for registering domains;
* DataTypeDomainWithSimpleSerialization domain base class with simple serialization/deserialization;
* Concrete IPv4 and IPv6 domain implementations: DataTypeDomanIPv6 and DataTypeDomanIPv4;
Updated:
* IDataType text serialization/deserialization methods;
* IDataType implementation to use domain for text serialization/deserialization;
* Refactored implementation of the IPv4/IPv6 functions to use formatIPv4/v6 and parseIPv4/v6 from Common/formatIPv6.h;
Tests:
* Added test cases for IPv4 and IPv6 domains.
* Updated IPv4/v6 functions tests to validate more cases;
* Added performance tests for IPv4 and IPv6 related functions;
2019-02-04 12:37:46 +03:00
Nikita Lapkov
5c54bbb750
write traces to trace_log
2019-02-03 21:30:45 +00:00
Vitaliy Karnienko
d9da430982
add arbitrary const expressions in limit processing
2019-02-03 21:31:17 +03:00
Nikita Lapkov
89582cfef2
Merge branch 'master' into query-poor-mans-profiler
2019-02-03 10:06:05 +00:00
Nikita Lapkov
df3db1bff2
basic pipe
2019-02-03 09:57:12 +00:00
alexey-milovidov
91d0d403a2
Merge pull request #3890 from zhang2014/fix/ISSUES-3885
...
ISSUES-3885 temporarily disable predicate optimization for order by
2019-02-03 12:10:20 +03:00
alexey-milovidov
14f208b9a3
Merge pull request #4239 from danlark1/master
...
produce hints for typo functions and types
2019-02-02 20:42:35 +03:00
alexey-milovidov
7e5786a2e2
Merge pull request #4236 from kvinty/kvinty-pdqsort
...
Use pdqsort instead of std::sort in ORDER BY
2019-02-02 17:58:10 +03:00
Danila Kutenin
5e62a0825a
produce hints for typo functions and types
2019-02-02 17:54:50 +03:00
alexey-milovidov
e3b32ec679
Merge pull request #4231 from fandyushin/queryid
...
Added Query-Id to http response header
2019-02-02 17:38:13 +03:00
Mihail Fandyushin
7b51139a80
fixed review notes; remove nullptr
2019-02-02 17:35:35 +03:00
Evgenii Pravda
67d26f6528
Use pdqsort instead of std::sort in ORDER BY
2019-02-02 16:52:20 +03:00
alexey-milovidov
fdfb60318c
Merge pull request #4193 from 4ertus2/ast
...
Refactoring: extract SubqueryForSet to own files
2019-02-02 15:28:31 +03:00
Mihail Fandyushin
7294b8adf2
Added Query-Id to http response header
2019-02-02 15:24:26 +03:00
Nicolae Vartolomei
3fdc04428e
Cancel http read only queries if client socket goes away
...
To check the socket status, try to read one byte from socket in a
non-blocking way:
0 - client closed the connection
>= 1 - client send more data, we are ignoring this case for now
timeout - normal case, client is waiting for response
... - socket broken?
Dirty, but should do the job. Limiting to readonly queries as I don't
want to mess with alter queries / insert select and others.
2019-02-02 12:14:52 +00:00
alexey-milovidov
297c2511c7
Merge pull request #4229 from nvartolomei/nv/typos
...
Make START REPLICATED SENDS command start replicated sends
2019-02-02 14:44:51 +03:00
Nicolae Vartolomei
f110d377d2
Fix typo in const name
2019-02-02 11:28:43 +00:00
Nicolae Vartolomei
5a8ebba4e1
Fix typo which prevents to start replicated sends
2019-02-02 11:27:27 +00:00
alexey-milovidov
25502718ae
Merge pull request #4221 from 4ertus2/cross
...
CROSS JOIN to INNER JOIN converter
2019-02-02 14:27:05 +03:00
chertus
f731702de0
rewrite COMMA JOIN too
2019-02-01 20:22:28 +03:00
chertus
170c108a59
CROSS JOIN to INNER JOIN converter
2019-02-01 19:36:40 +03:00
chertus
52de2cd927
hotfix for allow_experimental_multiple_joins_emulation
2019-02-01 17:26:36 +03:00
Nikolai Kochetov
6a729e59ba
Merged with master.
2019-02-01 11:36:57 +03:00
Nikolai Kochetov
d143a78419
Refactor ColumnsHashing
2019-02-01 11:23:38 +03:00
alexey-milovidov
bd62e2d85d
Merge pull request #4184 from 4ertus2/joins
...
Fix JOIN with duplicates [issue-4108]
2019-02-01 01:35:37 +03:00
chertus
26b2526a3b
fix right & full join with dups (complex join on still affected)
2019-01-31 21:10:16 +03:00
zhang2014
cac52f8312
ISSUES-3885 remove useless methods
2019-01-31 07:23:22 +08:00
chertus
866c2b2e78
move required right keys calculation to Join.cpp
2019-01-30 18:51:39 +03:00
proller
0e863fff1e
Fix rethrowing exception #4188
2019-01-30 17:06:42 +03:00
chertus
d6450bc488
Refactoring: extract SubqueryForSet to own files
2019-01-30 15:01:00 +03:00
proller
1cfec66165
Merge remote-tracking branch 'upstream/master' into fix14
2019-01-30 13:01:45 +03:00
proller
dc34e8998c
Better fix
2019-01-30 13:01:01 +03:00
zhang2014
3af26ca070
ISSUES-3885 better test & fix isStateful bug
2019-01-30 12:49:00 +08:00
zhang2014
ddbd384f32
ISSUES-3885 mark stateful function & do not optimize their predicate
2019-01-30 12:04:28 +08:00
Nikita Vasilev
c12b03d350
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-29 23:00:12 +03:00
alexey-milovidov
fd5ab9ed2e
Merge pull request #4055 from yandex/fix-group-by-array-low-cardibality-arguments
...
Fix group by array low cardinality arguments
2019-01-29 21:32:45 +03:00
proller
4942e024b1
4177 4156 : Fix crash on dictionary reload if dictionary not available
2019-01-29 19:36:50 +03:00
Nikolai Kochetov
21242ad658
Added tests. Restored recursiveRemoveLowCardinality interface.
2019-01-29 18:44:02 +03:00
chertus
9c6f71bb7e
fix inner and left join with duplicates [issue-4108]
2019-01-29 15:38:53 +03:00
Nikolai Kochetov
2c2932e185
Merged with master
2019-01-29 15:25:19 +03:00
Nikolai Kochetov
5d29562302
Fix build.
2019-01-29 13:56:44 +03:00
proller
343b31af66
More link with Threads::Threads
2019-01-28 21:21:20 +03:00
proller
2ab3138eb6
Merge remote-tracking branch 'upstream/master' into fix10
2019-01-28 17:01:06 +03:00
proller
2eee2d97df
Update contrib/libmetrohash
2019-01-28 17:00:50 +03:00
Alexey Milovidov
4e3d9a0f15
Merge branch 'master' of github.com:yandex/ClickHouse into global-thread-pool
2019-01-28 14:20:24 +03:00
Nikita Vasilev
b2915bc844
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-26 09:27:32 +03:00
Alexey Milovidov
253ac93459
Addition to prev. revision #4150
2019-01-25 21:44:30 +03:00
chertus
9539467b59
hotfix
2019-01-25 18:48:53 +03:00
chertus
091efcda95
add IdentifierSemantic and PredicateExpressionsOptimizer refactoring
2019-01-25 18:42:24 +03:00
Alexey Milovidov
468f8b4cfb
Addition to prev. revision #4150
2019-01-25 17:08:01 +03:00
Alexey Milovidov
65f8e4d4a8
Merge branch 'master' into global-thread-pool
2019-01-25 16:33:50 +03:00
chertus
a0fafefc96
minor change - add Aliases.h
2019-01-25 14:43:19 +03:00
alexey-milovidov
20970154d8
Merge pull request #4141 from 4ertus2/ast
...
JOIN with USING: do not duplicate columns
2019-01-25 03:22:43 +03:00
Alexey Milovidov
854817c232
Fixed -Wshadow-field #4005
2019-01-24 22:37:32 +03:00
alexey-milovidov
f96b8e4ed6
Merge pull request #4005 from vitlibar/add-protobuf-output-format
...
Add protobuf output format
2019-01-24 22:05:23 +03:00
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
Alexey Milovidov
0e59fe0b46
Renamed setting and variables #3973
2019-01-24 20:12:05 +03:00
chertus
ccd9bd0877
fix build
2019-01-24 18:06:15 +03:00
Nikolai Kochetov
f7b9059dad
Merged with master
2019-01-24 18:06:11 +03:00
Nikolai Kochetov
5f1007a8df
Refactor Join.
2019-01-24 17:56:04 +03:00
chertus
cbbf04204b
JOIN with USING: do not duplicate columns
2019-01-24 17:22:58 +03:00
alexey-milovidov
f13d094a4e
Merge pull request #3973 from amosbird/join_overwrite
...
Add join_overwrite settings for StorageJoin.
2019-01-24 02:05: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
b623d4302c
add clone() calls when copying ASTs from stored mutation commands (just in case) #4058
2019-01-23 16:27:01 +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
f3b4292fc6
add data types to the prepared_sets key for literals #4058
2019-01-23 14:20:01 +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
f54ed4a2e3
do not revisit ArrayJoin identifiers
2019-01-22 21:02:53 +03:00
chertus
97199b9712
fix ArrayJoin columns calculation
2019-01-22 20:36:08 +03:00
Nikita Vasilev
d47cd4825d
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-22 19:02:20 +03:00
Nikita Vasilev
9ee50da8b6
refactor
2019-01-22 18:58:11 +03:00
chertus
1d0bee7dee
fix collecting required columns in lambda
2019-01-21 22:56:11 +03:00
Alexey Milovidov
c70e8cc5f0
Miscellaneous #3726
2019-01-21 22:45:26 +03:00
alexey-milovidov
b41fa8e7af
Merge pull request #3726 from zhang2014/feature/use_cluster_pool
...
Use cluster connections pool in DirectoryMonitor
2019-01-21 22:33:19 +03:00
Alexey Milovidov
47139adc5b
Merge branch 'master' into test-hint-fix
2019-01-21 18:28:23 +03:00
Nikita Vasilev
2a76e86338
Merge branch 'nikvas0/index' into nikvas0/parse_index
2019-01-21 17:54:13 +03:00
Nikita Vasilev
03cf70e960
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-21 17:52:38 +03:00
Nikita Vasilev
506f2c41c8
fixed MT alter
2019-01-21 16:51:42 +03:00
Alexey Milovidov
ac0060079a
Fixed warnings in SpecializedAggregator
2019-01-21 16:13:20 +03:00
Nikolai Kochetov
e8aa41b6ac
Merge branch 'master' into unified-sets
2019-01-21 13:40:47 +03:00
Nikolai Kochetov
6fce028b56
Refactor ColumnsHashing.
2019-01-21 13:39:53 +03:00
Nikolai Kochetov
d207498573
Added ColumnsHashing
2019-01-21 13:39:24 +03:00
Nikita Vasilev
c32d1983a0
go to indicesDescr
2019-01-21 12:47:35 +03:00
Nikita Vasilev
9120bebe56
fixed printing
2019-01-20 18:02:19 +03:00
Nikita Vasilev
13a4fb2756
replaced columns
2019-01-20 14:03:21 +03:00
Nikita Vasilev
4a19523698
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-20 10:14:06 +03:00
Alexey Milovidov
c7b95b5175
Miscellaneous changes for PVS-Studio
2019-01-20 02:27:52 +03:00
Nikita Lapkov
4c55802552
refactor
...
- add exceptions on timer errors
- move from signal to sigaction
- extract backtrace collection logic
2019-01-18 13:10:43 +00:00
alexey-milovidov
3d4bd7cbf8
Merge branch 'master' into feature/use_cluster_pool
2019-01-18 01:02:39 +03:00
alexey-milovidov
7beb25eaaf
Merge pull request #4087 from 4ertus2/joins
...
child free ASTIdentifier
2019-01-18 00:51:08 +03:00
Alexey Milovidov
a7c468da8e
Merge remote-tracking branch 'origin/master' into global-thread-pool
2019-01-17 21:57:01 +03:00
proller
f2bbac6523
CLICKHOUSE-4257 remoteSecure
2019-01-17 20:55:44 +03:00
chertus
5289c1337e
child free ASTIdentifier
2019-01-17 20:01:48 +03:00
Alexey Zatelepin
addc9a43b0
remove unused IAST field
2019-01-17 18:52:29 +03:00
Nikita Vasilev
c4a725a496
indices
2019-01-17 15:11:36 +03:00
Nikita Vasilev
6a09340eed
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-17 12:34:51 +03:00
chertus
394e8b0378
minor improvements and fix
2019-01-16 21:38:19 +03:00
chertus
6a79a03a9e
minor improvements
2019-01-16 21:38:19 +03:00
chertus
738080c73f
minor improvements
2019-01-16 21:38:19 +03:00
chertus
8bb35ac987
minor changes
2019-01-16 21:38:19 +03:00
Alexey Milovidov
e8871bc211
Added a check #3837
2019-01-16 03:26:15 +03:00
Alexey Milovidov
f40e0fcd8e
Revert "Attempt to implemnt global thread pool #4018 "
...
This reverts commit 510b15540c
.
2019-01-15 21:57:42 +03:00
Alexey Milovidov
cd77d43015
Merge branch 'master' of github.com:yandex/ClickHouse
2019-01-15 21:56:50 +03:00
alesapin
361d26c643
Use information about type in Delta codec to choose correct delta size if possible
2019-01-15 17:20:34 +03:00
chertus
a5d8858ee2
minor ASTIdentifier changes
2019-01-15 15:28:17 +03:00
alexey-milovidov
27a0c37d77
Update Join.h
2019-01-15 00:41:35 +03:00
alexey-milovidov
64c31a6ad7
Update Join.h
2019-01-15 00:40:42 +03:00
alexey-milovidov
8a401e491a
Update Join.cpp
2019-01-15 00:40:02 +03:00
Alexey Milovidov
f6b9b06307
Attempt to implemnt global thread pool #4018
2019-01-14 22:22:09 +03:00
Nikolai Kochetov
5a50a4fe21
Fix aggregate function low cardinality array argument. #4038
2019-01-14 21:17:55 +03:00
chertus
dbb88e8cb4
helpers for ASTIdentifier (hide semantic and casts)
2019-01-14 21:15:04 +03:00
chertus
5147e2ad03
Merge branch 'master' into joins
2019-01-14 14:11:35 +03:00
Alexey Milovidov
00a4b2cf8a
Removing garbage, part 1
2019-01-13 21:51:57 +03:00
Nikita Vasilev
e288022fea
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-13 17:33:24 +03:00
alexey-milovidov
5c5358f9c9
Merge pull request #4042 from yandex/compiled_expressions_cache_memory_usage
...
Try to reduce CompiledExpressionsCache size
2019-01-12 13:19:58 +03:00
alesapin
a9550c5a43
Update ExpressionJIT.cpp
2019-01-12 10:19:18 +03:00
alesapin
748bcb0a3c
Remove accident changes
2019-01-12 00:18:57 +03:00
alesapin
00200615e8
Trying to remove redundant objects from CompiledExpressionsCache (LLVMFunction), also remove CompiledExpressionsCacheBytes metric because it's not connected with real size
2019-01-12 00:16:49 +03:00
chertus
b759219243
fix crash on wrong data
2019-01-11 22:33:00 +03:00
Alexey Milovidov
abcd5a2a49
Attempt to implemnt global thread pool #4018
2019-01-11 22:12:36 +03:00
chertus
e098348aa4
more QueryNormalizer refactoring: split visit function
2019-01-11 22:07:38 +03:00
Alexey Milovidov
9031be381a
Attempt to implemnt global thread pool #4018
2019-01-11 19:59:15 +03:00
Alexey Milovidov
510b15540c
Attempt to implemnt global thread pool #4018
2019-01-11 19:58:43 +03:00
chertus
c53854125f
QueryNormalizer with visitor interface
2019-01-11 17:09:23 +03:00
chertus
861c225c1e
one another build fix
2019-01-11 01:04:37 +03:00
chertus
0084785898
fix build
2019-01-11 00:05:01 +03:00
chertus
275d6b2fcc
some QueryNormalizer refactoring
2019-01-10 21:58:55 +03:00
Nikita Vasilev
0c18e73871
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-10 17:55:08 +03:00
alesapin
6401628dc8
Fix clang-7 werrors
2019-01-10 14:25:59 +03:00
alexey-milovidov
9b46678920
Merge pull request #4014 from 4ertus2/joins
...
minor SyntaxAnalyzer refactoring
2019-01-09 23:10:40 +03:00
alexey-milovidov
a739edc239
Merge pull request #4013 from yandex/pvs-studio-fixes-2
...
Fixed bugs found by PVS-Studio
2019-01-09 22:55:11 +03:00
chertus
c460a270da
enlight when SyntaxAnalyzer affects only selects
2019-01-09 20:40:26 +03:00
chertus
7ba268049a
extract OptimizeIfWithConstantConditionVisitor from SyntaxAnalyzer
2019-01-09 20:06:40 +03:00
alexey-milovidov
08f4e792b1
Merge pull request #4009 from yandex/test_for_remote_global_in_user
...
Fix bug with wrong user in remote table function.
2019-01-09 19:29:34 +03:00
alexey-milovidov
ca7c3c0bfd
Merge pull request #4012 from yandex/fix-low-cardinality-numeric-distinct
...
Distinct by single LowCardinality numeric column.
2019-01-09 19:28:42 +03:00
chertus
729ca697d9
minor SyntaxAnalyzer refactoring
2019-01-09 19:16:59 +03:00
Alexey Milovidov
19f4652959
Fixed bugs found by PVS-Studio
2019-01-09 18:44:20 +03:00
Nikolai Kochetov
5ab362a303
Fix distinct by single LowCardinality numeric column.
2019-01-09 17:47:51 +03:00
Nikita Vasilev
10355ae555
Merge remote-tracking branch 'upstream/master' into nikvas0/index
2019-01-09 17:36:06 +03:00
alesapin
b8efafd400
Fix bug with wrong user restrictions in remote table func
2019-01-09 15:21:04 +03:00
alexey-milovidov
2884b870b3
Merge pull request #3993 from yandex/weverything-2
...
Added more warnings from clang's -Weverything, that are available in clang 8
2019-01-08 17:54:43 +03:00
Nikita Vasilev
d1e2ab85e3
asts -> exprlist
2019-01-08 14:04:25 +03:00
Alexey Milovidov
0630e67a21
Addition to Amos Bird changes #3920
2019-01-08 13:07:33 +03:00
Alexey Milovidov
0dfa553fca
Added more warnings from clang's -Weverything, that are available in clang 8
2019-01-07 13:40:58 +03:00
Alexey Milovidov
a5e354fba9
Fixed warning [#CLICKHOUSE-2]
2019-01-07 11:00:29 +03:00
Amos Bird
8ea4d7987b
Add join_overwrite settings for StorageJoin.
...
This makes using StorageJoin as dictionary more flexible.
2019-01-07 01:23:26 +08:00
Nikita Vasilev
e95376e550
Merge branch 'master' into nikvas0/index
2019-01-06 16:21:00 +03:00
Alexey Milovidov
588ee498ba
Added some warnings from clang's -Weverything
2019-01-06 11:31:22 +03:00
Alexey Milovidov
06a8c3f02d
Added some warnings from clang's -Weverything
2019-01-05 06:33:22 +03:00
Alexey Milovidov
afda68d25c
Added some warnings from clang's -Weverything
2019-01-04 17:18:49 +03:00
Alexey Milovidov
67c236b067
Added some warnings from clang's -Weverything
2019-01-04 17:14:48 +03:00
Alexey Milovidov
cf1cacc366
Added some warnings from clang's -Weverything
2019-01-04 16:54:39 +03:00
Alexey Milovidov
1d4701b0bc
Added some warnings from clang's -Weverything
2019-01-04 15:10:00 +03:00
Alexey Milovidov
051decfb75
Merge branch 'master' of github.com:yandex/ClickHouse
2019-01-02 18:03:56 +03:00
Alexey Milovidov
e33e5150b7
Miscellaneous [#CLICKHOUSE-2]
2019-01-02 09:44:36 +03:00
Alexey Milovidov
00978e757d
Fixed race condition in StorageDictionary [#CLICKHOUSE-3628]
2018-12-30 04:09:06 +03:00
alexey-milovidov
4ac9f7a204
Merge pull request #3959 from yandex/catboost-multiclass-models
...
Catboost multiclass models
2018-12-29 01:22:14 +03:00
alesapin
b2727399b1
Merge pull request #3957 from yandex/nicelulu-click_update
...
Fix user and password forwarding
2018-12-28 22:50:16 +03:00
proller
300bbdfb43
Fix cyclic lib depend ppart 2: clean
2018-12-28 21:15:26 +03:00
Nikolai Kochetov
bdaf1ac109
Support multiclass models for CatBoost.
2018-12-28 21:08:32 +03:00
alesapin
43da59d0fc
Improve test
2018-12-28 20:11:52 +03:00
alesapin
8bc00f4632
CLICKHOUSE-4229: Fix user forwarding for replicated queries which actually send queries to master node
2018-12-28 19:21:32 +03:00
chertus
bae0370954
fix crash in JoinToSubqueryTransformVisitor (wrong casts)
2018-12-28 18:38:58 +03:00
alexey-milovidov
d16447c3f4
Merge pull request #3899 from yandex/custom_compression_codecs
...
Custom compression codecs
2018-12-28 08:29:09 +03:00
alexey-milovidov
5ff30f4512
Merge pull request #3946 from 4ertus2/joins
...
Multiple join emulation (very experimental - developers only)
2018-12-28 03:06:01 +03:00
Alexey Milovidov
ab85175e7f
Merge branch 'master' of github.com:yandex/ClickHouse into ubsan-fixes-4
2018-12-28 00:23:13 +03:00
alexey-milovidov
cbc9e03038
Merge pull request #3945 from yandex/fix_ipv4_masks
...
Fix ipv4 mask restrictions for users and add integration tests
2018-12-28 00:22:02 +03:00
Alexey Milovidov
928649004c
Fixed UB #3920
2018-12-28 00:15:47 +03:00
Alexey Milovidov
237a9247cb
Fixed UB #3920
2018-12-28 00:14:32 +03:00
Alexey Milovidov
b109ec8c77
Fixed UB #3920
2018-12-27 23:24:37 +03:00
Alexey Milovidov
220e568894
Fixed UB #3920
2018-12-27 23:10:37 +03:00
Alexey Milovidov
29ffa46838
Less indirection #3920
2018-12-27 23:02:51 +03:00
Alexey Milovidov
88bdbc4dc7
Some additions to Amos Bird's optimization #3920
2018-12-27 22:58:30 +03:00
alexey-milovidov
1098fd834a
Merge pull request #3926 from yandex/ubsan-fixes-3
...
Ubsan fixes 3
2018-12-27 21:12:38 +03:00
chertus
be02d3fe33
Merge branch 'master' into joins
2018-12-27 19:20:20 +03:00
chertus
e8245f5935
basic support for multiple_joins_emulation CLICKHOUSE-3996
2018-12-27 19:12:42 +03:00
alesapin
3d0c26f573
Fix ipv4 mask restrictions for users and add integration tests
2018-12-27 18:55:51 +03:00
alexey-milovidov
644e9fc31f
Merge pull request #3930 from 4ertus2/ast
...
rewrite ExpressionAnalyzer.collectUsedColumns CLICKHOUSE-3996
2018-12-27 18:36:22 +03:00
chertus
600755745b
Merge branch 'ast' into joins
2018-12-27 14:17:24 +03:00
alesapin
3afa03d044
Merge branch 'master' into custom_compression_codecs
2018-12-27 11:23:00 +03:00
alexey-milovidov
5c4ebfa2e1
Update RequiredSourceColumnsVisitor.h
2018-12-26 23:35:06 +03:00
alexey-milovidov
67dbfd8e81
Update ExpressionAnalyzer.cpp
2018-12-26 23:33:29 +03:00
Alexey Milovidov
7509db544c
Merge branch 'master' of github.com:yandex/ClickHouse into ubsan-fixes-3
2018-12-26 22:38:11 +03:00
alexey-milovidov
b7f25f6ffe
Merge pull request #3932 from yandex/fix_no_message_received
...
Move processing pool to ternary logic
2018-12-26 22:16:01 +03:00
chertus
4b63c11cea
Merge branch 'master' into ast
2018-12-26 21:56:41 +03:00
chertus
0812f79421
remove unused code
2018-12-26 21:56:21 +03:00
alesapin
9342700ce1
Move processing pool to ternary logic
2018-12-26 20:03:29 +03:00
chertus
371ec0d576
fix gcc build
2018-12-26 18:40:47 +03:00
chertus
6ea13516f0
rewrite ExpressionAnalyzer.collectUsedColumns CLICKHOUSE-3996
2018-12-26 17:43:25 +03:00
chertus
11982046d6
Merge branch 'master' into joins
2018-12-26 17:17:18 +03:00
chertus
62905013d7
rewrite ExpressionAnalyzer.collectUsedColumns CLICKHOUSE-3996
2018-12-26 17:08:57 +03:00
alesapin
8f82d5a687
Merge branch 'master' into custom_compression_codecs
2018-12-26 10:43:33 +03:00
Alexey Milovidov
5ca01486dd
Fixed UB #3926
2018-12-26 07:32:58 +03:00
Alexey Milovidov
b7f085c525
Fixed UB #3926
2018-12-26 05:47:16 +03:00
Alexey Milovidov
f2d789d384
Fixed UB #3926
2018-12-26 05:06:54 +03:00
Alexey Milovidov
37bbc0ecd5
Fixed UB #3926
2018-12-26 04:08:14 +03:00
Alexey Milovidov
e8dc222b61
Fixed UB #3926
2018-12-26 03:28:13 +03:00
Alexey Milovidov
cfc1e207ab
Fixed UB #3926
2018-12-26 02:27:52 +03:00
Alexey Milovidov
4c0b95ac02
Less dependencies [#CLICKHOUSE-2]
2018-12-26 02:11:36 +03:00
Nikita Vasilev
36083e1036
some fixes
2018-12-25 22:37:39 +03:00
alesapin
1228645a79
Fix segfault and add tabs to ton of tests (desc table)
2018-12-25 14:33:54 +03:00
alesapin
4309775fc8
Add coments and fix compression for nested types
2018-12-25 13:04:38 +03:00
Nikita Lapkov
632c542762
add basic timer with logging for query threads
2018-12-25 03:19:17 +03:00
alesapin
22b9969f05
Merge branch 'master' into custom_compression_codecs
2018-12-24 18:53:31 +03:00
Amos Bird
8736a3908f
left pad
2018-12-24 23:51:06 +08:00
KochetovNicolai
1070702168
Update CatBoostModel.cpp
...
Do not evaluate CatBoost model on empty dataset.
2018-12-24 15:35:46 +03:00
alesapin
1e771a4aec
Fix error codes
2018-12-24 14:34:50 +03:00
qianlixiang
416d6aa788
Fixed core dump caused by kill query sync
2018-12-24 16:17:22 +08:00
alexey-milovidov
a03c28d0e6
Merge pull request #3909 from yandex/fix-use-after-free-in-array-enumerate
...
Fix use after free in arrayEnumerateUniq and -Dense function.
2018-12-23 06:11:43 +03:00
Alexey Zatelepin
37065b6b8f
prevent race condition when locking a distributed ALTER task for execution [#CLICKHOUSE-4221]
2018-12-21 20:28:21 +03:00
Alexey Milovidov
a8f09809f5
Simplified logic with "IColumn::convertToFullColumnIfConst" (suggested by Amos Bird) [#CLICKHOUSE-2]
2018-12-21 19:00:07 +03:00
alesapin
6f7333840a
Move header with compression info to another place
2018-12-21 16:25:39 +03:00
alesapin
7c11455bd3
Remove compression settings
2018-12-21 15:17:30 +03:00
alesapin
5b23210062
Merge branch 'master' into custom_compression_codecs
2018-12-21 11:57:21 +03:00
alexey-milovidov
b1602a5e62
Merge pull request #3887 from yandex/remove-alter-primary-key
...
Remove ALTER MODIFY PRIMARY KEY command
2018-12-20 22:21:08 +03:00