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
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
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
Alexey Zatelepin
b7afe46dfd
remove ALTER MODIFY PRIMARY KEY command [#CLICKHOUSE-4214]
2018-12-20 21:57:20 +03:00
alexey-milovidov
d9e8cd46da
Merge pull request #3879 from yandex/setting-low_cardinality_allow_in_native_format
...
Added low_cardinality_allow_in_native_format setting.
2018-12-20 21:02:02 +03:00
Alexey Milovidov
9c65c539cd
Merge branch 'master' of github.com:yandex/ClickHouse
2018-12-20 20:48:20 +03:00
Alexey Milovidov
b7b418a6f5
Renamed setting #3851
2018-12-20 20:48:11 +03:00
alexey-milovidov
4993cb53d1
Merge pull request #3886 from yandex/low-cardinality-specialized-aggregation
...
Added LowCardinality support for specialized aggregation.
2018-12-20 20:46:49 +03:00
alexey-milovidov
3cefb27e56
Merge pull request #3851 from abyss7/issue-3592
...
Refactor constant folding
2018-12-20 19:26:02 +03:00
Nikolai Kochetov
18b530544e
Fix setting description.
2018-12-20 18:17:07 +03:00
Nikolai Kochetov
4e58b62b0c
Added LowCardinality support for specialized aggregation.
2018-12-20 16:28:20 +03:00
alesapin
0ae14be8d2
Fix codes
2018-12-20 13:44:20 +03:00
proller
6869771ae4
Fix includes
2018-12-19 20:57:51 +03:00
alesapin
512fe3c854
Refactoring (sanitizer failure)
2018-12-19 20:20:18 +03:00
Nikolai Kochetov
78321a04a1
Added low_cardinality_allow_in_native_format setting.
2018-12-19 19:47:30 +03:00
alexey-milovidov
f05bf6c046
Merge pull request #3873 from s-mx/send_logs_level2
...
Fix strange behavior of send_logs_level setting.
2018-12-19 19:18:02 +03:00
Ivan
37345468b3
Explicitly include <optional> for clang-6.0
2018-12-19 16:57:55 +03:00
Sabyanin Maxim
ea27ec463e
add SettingLogsLevel
2018-12-19 16:20:41 +03:00
chertus
7e6a39f623
Merge branch 'master' into joins
2018-12-19 16:14:17 +03:00
chertus
cbf3c34cf3
minor improvement in ExpressionAnalyzer + array join
2018-12-19 16:13:51 +03:00
Ivan Lezhankin
b9440fe99d
Another minor refactoring.
2018-12-19 15:38:13 +03:00
Alexey Milovidov
8889f0859a
Fixed typo [#CLICKHOUSE-2]
2018-12-19 06:43:37 +03:00
alexey-milovidov
92bb4471df
Merge pull request #3865 from abyss7/issue-3590
...
ISSUE-3590: Forbid using aggregate functions inside scalar subqueries
2018-12-19 03:19:45 +03:00
alexey-milovidov
c47dfb064e
Update ExecuteScalarSubqueriesVisitor.cpp
2018-12-19 03:19:31 +03:00
Ivan Lezhankin
617082f444
ISSUE-3590: Forbid using aggregate functions inside scalar subqueries
2018-12-18 21:43:06 +03:00
chertus
f992f0a9a0
better check when rewrites needed
2018-12-18 21:28:02 +03:00
chertus
ba91920b19
Merge branch 'master' into joins
2018-12-18 16:26:28 +03:00
chertus
8720d3b937
remove stale code
2018-12-18 16:26:04 +03:00
alesapin
6fe01af829
Merge branch 'master' into custom_compression_codecs
2018-12-18 14:06:11 +03:00
chertus
9ef314aaaf
SemanticSelectQuery CLICKHOUSE-3996
2018-12-17 22:30:08 +03:00
Ivan Lezhankin
1a539b3a6d
Merge remote-tracking branch 'upstream/master' into issue-3592
2018-12-17 19:30:20 +03:00
chertus
b38f805097
JoinToSubqueryTransformVisitor CLICKHOUSE-3996
2018-12-17 19:22:28 +03:00
Ivan Lezhankin
6df757c6f7
Refactor constant folding and make it reusable for primary_key_expr
2018-12-17 17:59:01 +03:00
alesapin
36a6121f75
Merge branch 'master' into custom_compression_codecs
2018-12-17 12:56:21 +03:00
Samuel Chou
fcde47b45e
Ensure ROLLUP and CUBE respect HAVING (no change to TOTALS)
2018-12-14 22:27:40 -08:00
alexey-milovidov
7380abf502
Merge pull request #3021 from yandex/ubsan-fixes-3
...
UBSan fixes, part 2
2018-12-14 22:29:47 +03:00
alexey-milovidov
3a2c85a06c
Merge pull request #3717 from amosbird/arrayjoin
...
Support unaligned array join.
2018-12-14 21:12:24 +03:00
alexey-milovidov
120e6b54eb
Update Settings.h
2018-12-14 21:12:01 +03:00
alexey-milovidov
6d27777b19
Merge branch 'master' into ubsan-fixes-3
2018-12-14 20:52:54 +03:00
Alexey Milovidov
9e6d835137
Preparations #2609
2018-12-14 19:17:09 +03:00
Alexey Milovidov
41ed104894
Preparations #2609
2018-12-14 19:12:12 +03:00
Alexey Milovidov
e9a3c93ef0
Merged with master #2609
2018-12-14 18:39:48 +03:00
alexey-milovidov
7cc867de0a
Merge branch 'master' into background-processing-pool-backoff
2018-12-14 17:41:55 +03:00
alesapin
3370a0a4fe
Fix order of calls
2018-12-14 14:29:12 +03:00
zhang2014
6d0c4eaf89
ISSUES-838 add lz4、none、zstd codec
2018-12-13 12:10:34 +08:00
Amos Bird
86f462acff
Support unaligned array join
...
For left ARRAY JOIN, expand to the greatest size. If all sizes are zero,
resize to one which is the same as the old behavior, i.e. emptyArrayToSingle
For non-left ARRAY JOIN, expand to the greatest size but keep empty if all sizes are zero.
2018-12-12 22:08:28 +08:00
alexey-milovidov
7af621f6f7
Merge pull request #3728 from amosbird/join
...
Versatile StorageJoin
2018-12-10 23:16:53 +03:00
alexey-milovidov
3877aad6ef
Merge pull request #3773 from 4ertus2/joins
...
InDepthNodeVisitor for AST traversal
2018-12-10 22:44:22 +03:00
alexey-milovidov
fb15713979
Merge pull request #3794 from amosbird/aba
...
Guard `force_restore_data_flag_file` removal
2018-12-10 21:56:45 +03:00
alexey-milovidov
58c9746a91
Update loadMetadata.cpp
2018-12-10 21:56:37 +03:00
alexey-milovidov
a083e6bc64
Merge pull request #3799 from yandex/low-cardinality-join
...
Low cardinality join
2018-12-10 21:46:42 +03:00
chertus
3dd36cee14
Merge branch 'master' into joins
2018-12-10 19:20:45 +03:00
chertus
9f9bf0cb1b
ArrayJoinedColumnsVisitor via InDepthNodeVisitor
2018-12-10 16:49:36 +03:00
chertus
49d80bf8f5
ExecuteScalarSubqueriesVisitor (move code from h to cpp)
2018-12-10 16:19:09 +03:00
chertus
9236e94e1b
ExecuteScalarSubqueriesVisitor via InDepthNodeVisitor
2018-12-10 16:02:45 +03:00
chertus
66d73025d7
fix RequiredSourceColumnsMatcher lambda
2018-12-10 13:55:27 +03:00
Nikolai Kochetov
e4fd13f237
Remove LowCardinaity for joined keys.
2018-12-10 13:23:45 +03:00
Nikolai Kochetov
61cd6fe2d3
Remove LowCardinaity for joined keys.
2018-12-10 13:21:32 +03:00
Amos Bird
6bc30f225e
Guard force_restore_data_flag_file
removal
...
resemble `force_drop_table` file
2018-12-09 23:11:46 +08:00
alexey-milovidov
0fdb3b9628
Merge branch 'master' into issue-3578
2018-12-07 23:53:34 +03:00
alexey-milovidov
0b4f0ca7d5
Merge pull request #3744 from yandex/low-cardinality-nullable-group-by
...
LowCardinality optimization for single nullable column.
2018-12-07 23:32:27 +03:00
alexey-milovidov
92ab759ef6
Update Aggregator.h
2018-12-07 23:31:59 +03:00
proller
799edcef78
CLICKHOUSE-4189 Fix segfault ( #3788 )
...
* CLICKHOUSE-4189 Fix segfault
* Update ExpressionActions.cpp
* Update ExpressionActions.cpp
2018-12-07 23:05:02 +03:00
chertus
2afe664d67
RequiredSourceColumnsVisitor via InDepthNodeVisitor
2018-12-07 19:28:20 +03:00
chertus
31c629bf55
GlobalSubqueriesMatcher via InDepthNodeVisitor
2018-12-07 18:36:54 +03:00
chertus
abffefc830
ExternalTablesVisitor via InDepthNodeVisitor
2018-12-07 18:14:50 +03:00
chertus
e26c3327cf
fix lost AST chenges in InDepthNodeVisitor
2018-12-07 17:24:47 +03:00
chertus
75af882cf3
fix AST debug print with underline symbol
2018-12-07 15:34:40 +03:00
alexey-milovidov
d6915bf61d
Merge pull request #3762 from yandex/fix-something-with-columns-alias-and-prewhere
...
Fix source columns list for prewhere alias actions.
2018-12-07 07:09:14 +03:00
chertus
6fad51d642
QueryAliasesMatcher via InDepthNodeVisitor (bottom to top) CLICKHOUSE-3996
2018-12-06 22:02:42 +03:00
Alexey Zatelepin
d70533d538
AddDefaultDatabaseVisitor now supports IN and descends into all parts of SELECT query #3597
2018-12-06 21:54:59 +03:00
Alexey Zatelepin
4cc4027821
add default database to table identifiers in alter commands #3597
2018-12-06 21:54:52 +03:00
chertus
ff8fb077a4
InDepthNodeVisitor: extract AST traverse from visitor logic CLICKHOUSE-3996
2018-12-06 18:29:55 +03:00
Nikolai Kochetov
2fc0643bc9
Do not use table column aliases in prewhere alias action source columns
2018-12-05 19:36:26 +03:00
Ivan Lezhankin
887e1089f1
Merge branch 'master' into kanterov_skip_unused_shards
2018-12-05 18:17:04 +03:00
chertus
3db00b7b98
Merge branch 'master' into issue-3578
2018-12-05 14:43:14 +03:00
chertus
a71d03737c
send defaults via serialized ColumnsDescription CLICKHOUSE-3578
2018-12-04 23:03:04 +03:00
chertus
933c055104
CLICKHOUSE-3578 review proress
2018-12-04 17:09:47 +03:00
Nikolai Kochetov
b87d81512f
Fix merging aggregate data for NULL key.
2018-12-04 13:31:15 +03:00
Nikolai Kochetov
730796dc38
Fix merging aggregate data for NULL key.
2018-12-04 13:29:27 +03:00
Nikolai Kochetov
de524a0158
Fix merging aggregate data for NULL key.
2018-12-04 13:27:44 +03:00
Nikolai Kochetov
98499b1140
LowCardinality optimization for single nullable column.
2018-12-03 21:00:20 +03:00
zhang2014
994d1c0fe0
fix excessive copy
2018-12-03 13:26:27 +08:00
alexey-milovidov
cec49357da
Merge pull request #3581 from yandex/alter-order-by
...
ALTER MODIFY ORDER BY
2018-12-03 07:15:07 +03:00
alexey-milovidov
02636b3388
Merge pull request #3729 from amosbird/dryrun
...
Function execution with dry runs
2018-12-02 22:45:07 +03:00
alexey-milovidov
48b30edcf5
Merge branch 'master' into alter-order-by
2018-12-02 21:06:38 +03:00
Amos Bird
3cc0829cc1
Function execution with dry runs
...
This commit prevents stateful functions like rowNumberInAllBlocks from being modified in getHeader() calls.
2018-12-02 19:02:04 +08:00
Amos Bird
65b654a1b6
Versatile StorageJoin
...
This commit does the following:
1. StorageJoin with simple keys now supports reading
2. StorageJoin can be created with Join settings applied. Syntax is
similar to MergeTree and Kafka
3. Left Any StorageJoin with one simple key can be used as a
dictionary-like structure by function joinGet.
Examples are listed in the related test file.
2018-12-02 16:49:39 +08:00
Alexey Milovidov
b7d9910bd3
Merge branch 'master' into dont-allocate-too-much-memory-to-parse-query
2018-12-01 04:54:01 +03:00
alexey-milovidov
bf7b68cf95
Merge pull request #3689 from abyss7/CLICKHOUSE-3936
...
CLICKHOUSE-3936
2018-12-01 01:50:04 +03:00
Alexey Milovidov
35f6fb5ae6
Avoid memory over-allocation when large value of "max_query_size" is specified [#CLICKHOUSE-4169]
2018-11-30 18:36:41 +03:00
Amos Bird
d092d35fa9
NonJoinedStream[ALL] bypasses max_block_size
2018-11-30 22:59:17 +08:00
Alexey Milovidov
97280bb361
Whitespace [#CLICKHOUSE-2]
2018-11-28 21:28:30 +03:00
Ivan
448846fc0d
Merge branch 'master' into CLICKHOUSE-3936
2018-11-28 18:59:57 +03:00
Ivan Lezhankin
8b5a05947c
Remove redundant information from RWLock.
...
And fix broken exception in some race conditions
2018-11-28 18:50:52 +03:00
Alexey Milovidov
52fea90a86
Removed useless code [#CLICKHOUSE-2]
2018-11-28 17:33:40 +03:00
Alexey Zatelepin
1b27fb046d
Merge branch 'master' into alter-order-by
...
Conflicts:
dbms/programs/server/Server.cpp
2018-11-28 16:47:07 +03:00
proller
dd2371e071
CLICKHOUSE-4137 DictionaryFactory, DictionarySourceFactory ( #3653 )
...
* Split ComplexKeyCacheDictionary to faster compile (part2)
* Dictionaries as lib WIP
* wip
* clean
* Fix build with old capnp
* fix
* wip
* fixes
* fix
* clean
* clean
* clean
* wip
* wip
* wip
* flat
* wip
* cache
* clean
* wip
* faster
* fix style
* fixes
* clean
* clean
* Split CacheDictionary.cpp for faster compile
* fix
* fix
* Less memory usage while compiling
* missing file
* format
* Update registerDictionaries.h
* clean
2018-11-28 14:37:12 +03:00
Alexey Milovidov
cdb272848c
Fixed typo in comment [#CLICKHOUSE-2]
2018-11-27 21:44:19 +03:00
alexey-milovidov
a12927a439
Merge pull request #3603 from vitlibar/CLICKHOUSE-4127
...
CLICKHOUSE-4127: Fix ALTER of destination table for the BUFFER engine.
2018-11-27 21:38:40 +03:00
proller
f1791e94e2
Do not write preprocessed configs to /etc/ ( #2443 )
2018-11-27 19:11:46 +03:00
Vitaly Baranov
44ca56c731
CLICKHOUSE-4127: Convert destination table's data when reading from
...
StorageBuffer.
2018-11-27 03:43:58 +03:00
Ivan Lezhankin
73aa7f2027
Rename method partition() → alterPartition()
...
Also fix build with internal shared libraries.
2018-11-26 17:43:40 +03:00
Alexey Zatelepin
d3d9242462
Merge branch 'master' into alter-order-by
...
Conflicts:
dbms/src/Parsers/ASTAlterQuery.h
dbms/src/Parsers/ParserAlterQuery.cpp
dbms/src/Storages/AlterCommands.cpp
dbms/src/Storages/AlterCommands.h
2018-11-26 16:01:48 +03:00
Alexey Milovidov
5a0feee45e
Removed "conditional computations" feature, because it is not ready #2272
2018-11-26 04:39:04 +03:00
Alexey Milovidov
c77930fe30
Whitespaces [#CLICKHOUSE-2]
2018-11-26 03:56:50 +03:00
Alexey Milovidov
141e9799e4
Fixed error with "extractURLParameter" function (read after buffer); improved performance; added support for zero bytes in URLs; renamed Chars_t type [#CLICKHOUSE-2]
2018-11-25 03:08:50 +03:00
Alexey Milovidov
7d6fffff48
More style checks [#CLICKHOUSE-3]
2018-11-24 04:48:06 +03:00
Alexey Milovidov
dbbacf4f87
Added more style checks [#CLICKHOUSE-3]
2018-11-23 21:52:00 +03:00
alexey-milovidov
0822f500f8
Merge pull request #3642 from yandex/odbc_bridge_die_with_server
...
ODBC bridge die with server
2018-11-23 16:44:53 +03:00
alexey-milovidov
c6bc4279ee
Merge pull request #3377 from s-mx/CLICKHOUSE-4032
...
Added support for column COMMENTs in table definition.
2018-11-23 16:43:58 +03:00
alexey-milovidov
2c2d75cceb
Don't allow exceptions without code ( #3645 )
...
* Don't allow exceptions without code #3633
* Don't allow exceptions without code #3633
2018-11-23 00:19:58 +03:00
alesapin
1e879850bb
Kill odbc-bridge with clickhouse-server
2018-11-22 18:59:00 +03:00
Sabyanin Maxim
3a67b505c5
Merge branch 'master' of https://github.com/yandex/ClickHouse into CLICKHOUSE-4032
2018-11-22 16:54:10 +03:00
Sabyanin Maxim
060fce3899
make ReplicatedMergeTree work with comments. ignore empty comments when make column_comments hashmap
2018-11-22 16:51:43 +03:00
Alexey Milovidov
6f48ebbb06
Better exception message in case of "unknown identifier" [#CLICKHOUSE-4142]
2018-11-21 23:35:55 +03:00
proller
1d40c2c871
Better link and deps ( #3631 )
...
* try fix 1
* Better deps
* fix
* fix
* fix
* Update CMakeLists.txt
* Update CMakeLists.txt
* fix
* fix
* fix
* disable old
* Update find_odbc.cmake
2018-11-21 22:20:27 +03:00
alexey-milovidov
5038f13b08
Merge pull request #3514 from abyss7/CLICKHOUSE-3766
...
Implement 'ALTER … FREEZE' command
2018-11-21 07:17:21 +03:00
alexey-milovidov
0bc9776e2a
Update Cluster.cpp
2018-11-21 07:06:40 +03:00
alexey-milovidov
af8db3e9ec
Update Cluster.h
2018-11-21 07:04:53 +03:00
alexey-milovidov
96fdc2a390
Update Cluster.h
2018-11-21 07:04:24 +03:00
alexey-milovidov
5ee36769db
Update Cluster.cpp
2018-11-21 07:04:05 +03:00
alexey-milovidov
866917ad32
Update Cluster.cpp
2018-11-21 07:02:19 +03:00
alexey-milovidov
9b0226a73d
Merge pull request #3588 from zhang2014/fix/predicate
...
ISSUES-1777 qualified subqueries when optimize predicate
2018-11-21 06:20:37 +03:00
alexey-milovidov
87e5d40858
Merge pull request #3626 from yandex/types-clarification
...
More clean NearestFieldType.
2018-11-21 02:55:46 +03:00
Alexey Milovidov
78e72a1962
Little better #3624
2018-11-20 23:09:20 +03:00
Marek Vavruša
8fad726d95
Added null guards for all CurrentThread::attachToIfDetached()
...
refs #3622
2018-11-20 09:10:34 -08:00
Ivan Lezhankin
74fe350451
Refactor partition commands handling into separate interface method.
2018-11-20 17:59:34 +03:00
alexey-milovidov
a008a41374
Merge pull request #3609 from s-mx/CLICKHOUSE-4090
...
Add primary_key, order_key, partition_key and sample_key to system.tables.
2018-11-20 16:39:54 +03:00
Alexey Milovidov
c843bc1d58
utils/check-style/check-style -n
2018-11-19 18:09:19 +03:00
Sabyanin Maxim
08fc057a15
make is_in_primary_key and etcetera work. add test.
2018-11-19 17:31:16 +03:00
alexey-milovidov
786bf36aee
Update DDLWorker.cpp
2018-11-19 01:04:11 +03:00
proller
ddf231e57f
BI-154 Fix isLocal detection
2018-11-17 21:52:47 +03:00
proller
160ffb2283
Build fixes (clang 7.0.0+) ( #3582 )
2018-11-16 15:22:51 +03:00
Gleb Kanterov
1b8e5f9b47
Optimization to skip unused shards for Distributed engine
...
Hide behind `distributed_optimize_skip_select_on_unused_shards` setting.
2018-11-16 10:21:06 +00:00
chertus
c642e16ee1
clearer evaluateMissingDefaults [CLICKHOUSE-3578]
2018-11-15 19:57:20 +03:00
zhang2014
c23447ba3a
ISSUES-1777 qualified subqueries when optimize predicate
2018-11-15 23:23:44 +08:00
chertus
65d34ca231
do not override current_database in context [CLICKHOUSE-3578]
2018-11-15 18:03:13 +03:00
chertus
0e1044b165
Merge branch 'master' into issue-3578
2018-11-15 13:28:53 +03:00
chertus
ebf3d60186
column defaults without CapNProto [CLICKHOUSE-3578]
2018-11-14 21:20:16 +03:00
alexey-milovidov
3b2cd38beb
Merge pull request #3570 from yandex/fix-with-with-alias-only
...
Fix WITH with alias only
2018-11-14 04:22:38 +03:00
Sabyanin Maxim
3e4c981db2
small changes
2018-11-13 22:17:40 +03:00
Alexey Zatelepin
29b34365e6
Merge branch 'master' into alter-order-by
...
Conflicts:
dbms/src/Interpreters/ExpressionAnalyzer.cpp
dbms/src/Storages/MergeTree/MergeTreeData.cpp
dbms/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp
2018-11-13 16:27:19 +03:00
Alexey Zatelepin
2cc0aae82c
rearrange AST members in MergeTreeData [#CLICKHOUSE-3859]
2018-11-13 16:15:17 +03:00
Alexey Zatelepin
7167bfd7b3
fix prewhere with FINAL for VersionedCollapsingMergeTree [#CLICKHOUSE-3859]
2018-11-13 16:15:12 +03:00
Alexey Zatelepin
8b85822192
store original key ASTs, and not extracted ASTExpressionLists [#CLICKHOUSE-3859]
2018-11-13 16:14:44 +03:00
Alexey Zatelepin
f4c26e78d2
renames [#CLICKHOUSE-3859]
2018-11-13 16:13:01 +03:00
Alexey Zatelepin
9a92c0a55c
sort key is distinct from primary key [#CLICKHOUSE-3859]
2018-11-13 16:12:49 +03:00
Alexey Zatelepin
580146eedb
add primary key syntax [#CLICKHOUSE-3859]
2018-11-13 16:12:14 +03:00
Nikolai Kochetov
986d490435
Comments.
2018-11-12 21:33:39 +03:00
Nikolai Kochetov
97d9ce5193
Fix WITH with single alias. #2465
2018-11-12 21:28:32 +03:00
Sabyanin Maxim
b869cfed9a
fixed couple of mistakes.
2018-11-12 18:45:35 +03:00
Alexey Milovidov
03c35f2aa4
Remove Analyzers because it was failed refactoring attempt [#CLICKHOUSE-2]
2018-11-12 18:40:33 +03:00
chertus
af4cceb877
make branch up to date
2018-11-12 18:25:21 +03:00
chertus
9966f975a3
Merge branch 'master' into issue-3578
2018-11-12 17:58:00 +03:00
chertus
2fe3cdb3f5
restore lost commits [CLICKHOUSE-3578]
2018-11-12 17:52:30 +03:00
Ivan Lezhankin
935615a647
Reimplement FREEZE command.
2018-11-12 15:26:14 +03:00
Ivan Lezhankin
03e6a29eb2
Implement 'ALTER … FREEZE' command.
...
Need some tests!
2018-11-12 15:26:14 +03:00
KochetovNicolai
5f3dcf794a
Merge pull request #3551 from yandex/syntax-analyzer-2
...
Split ExpressionAnalyzer and SyntaxAnalyzer.
2018-11-12 11:43:52 +03:00
proller
5678d1ed98
Build fixes ( #3545 )
...
* StorageSystemContributors clean
* Fix
* ARM fixes
* Fix arm compile
* fix
* Fix macos?
* Fix includes
* fix
* fix
* Try fix apple build part 1
* Fix identation
* Fix static libc++ in clang
* fix arm build
* better
* fix
* fix
* better check-include
2018-11-10 23:09:07 +03:00
Alexey Milovidov
60d42eb4f7
Merge branch 'master' of github.com:yandex/ClickHouse
2018-11-10 20:52:32 +03:00
Alexey Milovidov
8f50c62033
Avoid busy loop in DDLWorker when ZooKeeper is not available [#CLICKHOUSE-4126]
2018-11-10 20:52:25 +03:00
Nikolai Kochetov
28be6d6443
Review fixes.
2018-11-09 20:23:48 +03:00
Sabyanin Maxim
9befbd94e4
is_in_order_key, is_in_partition_key, is_in_sample_key in system.columns works, is_in_primary_key not yet
2018-11-09 18:39:21 +03:00
Nikolai Kochetov
1e9aeba603
Split ExpressionAnalyzer and SyntaxAnalyzer.
2018-11-09 18:01:18 +03:00
chertus
cc005c3ac9
Merge branch 'master' into issue-3578
2018-11-09 13:12:34 +03:00
Nikolai Kochetov
726ae0cb9a
Split ExpressionAnalyzer and SyntaxAnalyzer.
2018-11-08 19:47:12 +03:00
Nikolai Kochetov
baef5abc12
Review fixes.
2018-11-08 15:06:35 +03:00
Sabyanin Maxim
f8f2779f7b
make ColumnComment just a hashmap
2018-11-08 15:03:42 +03:00
Nikolai Kochetov
29fe5ea5b6
Review fixes.
2018-11-08 14:17:31 +03:00
Nikolai Kochetov
90120493bf
Syntax analyzer (in progress).
2018-11-08 12:06:11 +03:00
Nikolai Kochetov
a5a36d0078
Syntax analyzer (in progress).
2018-11-08 12:01:41 +03:00
Nikolai Kochetov
6ebfd2c42f
Syntax analyzer (in progress).
2018-11-08 12:01:12 +03:00
Nikolai Kochetov
7f8deccd7e
Merged with master.
2018-11-07 15:52:16 +03:00
Nikolai Kochetov
748b0f7077
SyntaxAnalyzer (in progress).
2018-11-07 15:44:05 +03:00
chertus
9819c10628
fix build with libcxx
2018-11-07 14:46:39 +03:00
Nikolai Kochetov
7a5cfc7a6d
Skip columns from prewhere_info->remove_columns_actions in prewhere result for alias source columns. [#CLICKHOUSE-4111]
2018-11-07 13:53:36 +03:00
Artem Zuikov
e9dc302cdc
Merge pull request #3465 from 4ertus2/bugs
...
hotfix for distributed DDLs over secure port [CLICKHOUSE-4089]
2018-11-06 21:39:10 +03:00
Nikolai Kochetov
bcd6e03257
SyntaxAnalyzer (in progress).
2018-11-06 21:13:35 +03:00
chertus
172acbabd0
fix tests (second attempt) [CLICKHOUSE-4089]
2018-11-06 19:38:01 +03:00
Artem Zuikov
469ce719dc
Merge pull request #3521 from 4ertus2/joins
...
Set default database name for tables in view's (sub)selects [CLICKHOUSE-3145]
2018-11-06 19:15:07 +03:00
chertus
458e20c31f
fix tests/integration over ssl by alesapin@
2018-11-06 17:42:30 +03:00
Sabyanin Maxim
dacd999d4f
Merge branch 'master' into CLICKHOUSE-4032
2018-11-06 16:50:07 +03:00
alesapin
70df5a1cb7
Merge pull request #3534 from yandex/block_structure_mistmatch
...
[WIP] Trying to fix block structure mismatch
2018-11-06 16:40:05 +03:00
chertus
756342551a
add general comment for visitors
2018-11-06 16:28:22 +03:00
Sabyanin Maxim
bdcdc15b1e
fixed comment test.
...
remove ColumnComment struct.
style fixes
2018-11-06 16:26:43 +03:00
Nikolai Kochetov
8df77930ec
Added InterpreterSelectQuery::unifyStreams
2018-11-06 14:44:45 +03:00
Nikolai Kochetov
d7992b11d8
Fix block structure mismatch in MergingSorted stream.
2018-11-06 13:11:37 +03:00
Alexey Milovidov
c5173782dc
Potentially better #3490
2018-11-05 17:29:38 +03:00
alexey-milovidov
c25e093b82
Merge pull request #3512 from lapkofear/amd_perf_problem
...
fixed group by int16 and Date types on AMD EPYC 7401P machine
2018-11-04 11:53:38 +03:00
chertus
50d9a6e5d5
refactoring: unify QueryAliasesVisitor with other AST visitors
2018-11-02 18:09:15 +03:00
alesapin
b74dd7fb3f
Merge pull request #3530 from yandex/project-clone-performance
...
Project clone performance
2018-11-02 17:29:21 +03:00
chertus
2f5fb25de6
Merge branch 'master' into joins
2018-11-02 13:39:19 +03:00
Alexey Milovidov
120e2cbe2f
Use "ALL" as "join_default_strictness" setting by default for compatibility [#CLICKHOUSE-4087]
2018-11-02 13:03:05 +03:00
Nikolai Kochetov
ecd48dfd07
Removed column clone from project action.
2018-11-02 12:57:29 +03:00
Nikolai Kochetov
9332dd5d2f
Removed column clone from project action.
2018-11-02 12:56:37 +03:00
alexey-milovidov
c19b1d919e
Merge pull request #3517 from yandex/kill_pending_queries
...
CLICKHOUSE-4094: Add ability to kill pending queries
2018-11-01 21:07:45 +03:00
Alexey Milovidov
30a2513fac
Whitespace [#CLICKHOUSE-2]
2018-11-01 20:55:53 +03:00
alexey-milovidov
b1db9ec23c
Merge pull request #3436 from amosbird/master
...
Flexible fields assignment
2018-11-01 20:22:28 +03:00
chertus
009f77002e
add default db name to views [CLICKHOUSE-3145]
2018-11-01 20:07:20 +03:00
alesapin
11092e895c
Better comment
2018-11-01 18:22:59 +03:00
alesapin
b0ac729228
CLICKHOUSE-4094: Add ability to kill pending queries
2018-11-01 17:56:37 +03:00
chertus
d6defafad2
use AddDefaultDatabaseVisitor for views [CLICKHOUSE-3145]
2018-11-01 17:49:37 +03:00
alexey-milovidov
121f04522e
Merge pull request #3503 from yandex/check_array_value_null
...
Better code for check on null values inside array IN expression
2018-11-01 17:01:06 +03:00
alexey-milovidov
00fa7d9fad
Update Aggregator.cpp
2018-11-01 15:42:57 +03:00
Artem Zuikov
eb535c4b9b
Merge pull request #3500 from 4ertus2/joins
...
refactoring: one place for db and table extraction from AST
2018-11-01 14:59:56 +03:00
igor.lapko
2d565f1099
code style fix
2018-11-01 13:42:15 +02:00
chertus
1a71a443b8
resolve review remarks
2018-11-01 14:32:44 +03:00
alesapin
63c6647be4
Better comment
2018-11-01 14:23:23 +03:00
alesapin
abcc692dbf
CLICKHOUSE-4096: Fix nested unaliased joins segfault
2018-11-01 14:23:23 +03:00
igor.lapko
d603cb1eb8
fixed group by int16 and Date types on AMD EPYC 7401P machine
2018-11-01 09:01:34 +02:00
chertus
1db565193c
description for TranslateQualifiedNamesVisitor
2018-10-31 20:45:41 +03:00
chertus
1eae5c38ea
remove code duplicates for creating table AST node
2018-10-31 20:31:04 +03:00
chertus
d8674a264a
ExpressionAnalyzer fix columns deduplication
2018-10-31 15:58:12 +03:00
alesapin
892ab4ce8a
Better code for check on null values inside array IN expression
2018-10-31 12:17:47 +03:00
chertus
4ff0391ca6
DatabaseAndTableWithAlias - the only place for db & table expraction from AST
2018-10-30 19:31:21 +03:00
chertus
d2518fdb3f
more refactoring: funcs to extract database_and_table from AST
2018-10-29 22:04:28 +03:00
Artem Zuikov
ccfb51b8dd
Merge pull request #3476 from 4ertus2/joins
...
ExpressionAnalyzer refactoring - remove duplicated code
2018-10-29 11:36:06 +03:00
Sabyanin Maxim
65bd40e290
Merge branch 'master' of github.com:yandex/ClickHouse into CLICKHOUSE-4032
2018-10-27 22:33:52 +03:00
chertus
95c618b163
ExpressionAnalyzer: remove duplicated code
2018-10-26 18:13:02 +03:00
alesapin
64b1108989
Merge branch 'master' of github.com:yandex/ClickHouse into fix_non_deterministic_compile
2018-10-25 20:01:22 +03:00
alesapin
a4dd489165
Do not build compiled functions
2018-10-25 19:52:28 +03:00
chertus
480bee07db
hotfix for distributed DDLs over secure port [CLICKHOUSE-4089]
2018-10-25 14:35:19 +03:00
chertus
e8f9e3c2a2
better fix for distributed DDL [CLICKHOUSE-4036] [CLICKHOUSE-4015]
2018-10-25 12:40:30 +03:00
chertus
6375009c81
Merge branch 'master' into joins
2018-10-24 19:43:48 +03:00
chertus
7a24e9b8ff
one more minor fix
2018-10-24 18:41:28 +03:00
chertus
a844d10a9a
minor fix
2018-10-24 18:39:37 +03:00
chertus
58f14b0db2
USE database for ON CLUSTER DDLs [CLICKHOUSE-4036]
2018-10-24 18:31:07 +03:00
alesapin
54a1f0c2a6
enable compiled expressions byt default
2018-10-24 14:36:02 +03:00
alesapin
070d75c7c9
Don't unfold non deterministic expressions
2018-10-24 14:31:23 +03:00
Amos Bird
3cf2177268
Flexible fields assignment
...
Field f;
before:
f = Int64(-42);
after:
f = -42;
2018-10-24 08:47:33 +08:00
alexey-milovidov
10abde5b62
Merge pull request #3441 from CurtizJ/CLICKHOUSE-1834
...
Setting for TCP keepalive. [CLICKHOUSE-1834]
2018-10-23 23:21:15 +03:00
alexey-milovidov
165890a3e6
Merge pull request #3453 from yandex/fix-union-header
...
Fix union header
2018-10-23 23:18:36 +03:00
alesapin
1c77cf51ce
Remove compile_expressions by default
2018-10-23 21:25:55 +03:00
Nikolai Kochetov
d2f0925685
Uniform headers for union stream. #2156
2018-10-23 21:01:38 +03:00
alexey-milovidov
4bf54337b9
Merge pull request #3292 from CurtizJ/order-by-efficient
...
Efficiently finish sorting by (x, y) stream, that already sorted by (x) [CLICKHOUSE-4022]
2018-10-23 11:34:22 +03:00
alexey-milovidov
9c3278f378
Merge pull request #3400 from zhang2014/fix/ISSUES-2312
...
ISSUES-2312 fix nested view & joined view without database
2018-10-23 11:21:29 +03:00
CurtizJ
7963e952f1
rename setting to tcp_keep_alive
2018-10-23 02:02:57 +03:00
alexey-milovidov
72b3ec1ffa
Merge pull request #3428 from 4ertus2/joins
...
Мore ExpressionAnalyser refactoring, add unit-test for it
2018-10-22 22:24:39 +03:00
CurtizJ
a05aa5448d
add setting keep_alive
2018-10-22 21:09:55 +03:00
Alexey Zatelepin
bd38b4f560
add clear error message #275
2018-10-22 15:38:04 +03:00
alesapin
c6debd1c33
Better comment
2018-10-22 14:30:24 +03:00
chertus
a62fae8332
Merge branch 'master' into joins
2018-10-22 11:25:43 +03:00
alesapin
dcc8ca49d7
Add global counter to subqueries
2018-10-20 00:03:45 +03:00
chertus
b784f754a7
minor settings changes
2018-10-19 18:42:47 +03:00
chertus
dcf04ac36d
unit-test for ExpressionAnalyzer [CLICKHOUSE-3996]
2018-10-19 18:33:40 +03:00
chertus
5aedca40c2
fix asan
2018-10-18 22:27:28 +03:00
chertus
a32e06d298
more ExpressionAnalyzer refactoring [CLICKHOUSE-3996]
2018-10-18 18:03:14 +03:00
Artem Zuikov
52e94ecc5a
Merge pull request #3368 from 4ertus2/joins
...
Extract visitors from ExpressionAnalyser [CLICKHOUSE-3996]
2018-10-17 15:48:42 +03:00
chertus
5d3f03a6d2
minor refactoring (function naming)
2018-10-17 14:06:46 +03:00
chertus
40f1805bf4
fix gcc build
2018-10-17 13:59:05 +03:00
zhang2014
133363e8e3
ISSUES-2312 fix nested view & joined view without database
2018-10-17 14:35:16 +08:00
Alexey Milovidov
44f5c735aa
Temporary disable "enable_optimize_predicate_expression" setting by default #1777
2018-10-17 06:46:06 +03:00
chertus
27d66a45c3
extract more visitors from ExpressionAnalyzer [CLICKHOUSE-3996]
2018-10-16 22:00:05 +03:00
chertus
4071155043
better ActionsVisitor extraction [CLICKHOUSE-3996]
2018-10-16 15:34:20 +03:00
chertus
e6e28d2451
Merge branch 'master' into joins
2018-10-16 13:10:32 +03:00
chertus
465cb6d267
fix for Decimal128 group by [issue-3378]
2018-10-15 22:14:08 +03:00
Sabyanin Maxim
e050bc0428
Merge branch 'master' into CLICKHOUSE-4032
2018-10-14 18:35:45 +03:00
Sabyanin Maxim
ab050c8466
add comment section in column declaration.
...
add comment column type in alter method.
add comment section in system.columns.
2018-10-14 18:30:06 +03:00
Alexey Milovidov
50234013b5
Whitespaces [#CLICKHOUSE-4016]
2018-10-14 11:23:21 +03:00
Alexey Milovidov
98859f232b
Merge branch 'master' into group_by_two_level_compatibility
2018-10-13 02:13:30 +03:00
chertus
9120d5f38e
extract visitor from ExpressionAnalyser [CLICKHOUSE-3996]
2018-10-12 18:41:28 +03:00
alesapin
72ef357a02
Fix typo assignment
2018-10-12 17:52:39 +03:00
alesapin
17150fd688
CLICKHOUSE-4060: Use individual context for each function
2018-10-12 16:03:57 +03:00
Alexey Milovidov
6e39e021f0
Disable "compile_expressions" setting by default because it is not production ready [#CLICKHOUSE-4060]
2018-10-12 03:21:24 +03:00
alexey-milovidov
12772c2cd5
Merge pull request #3357 from yandex/check-for-array-join-in-prewhere
...
Added check for invalid PREWHERE
2018-10-12 01:32:44 +03:00
alexey-milovidov
27a07a9d90
Merge pull request #3356 from yandex/llvm-better-exception-messages
...
LLVM compiler: better exception messages.
2018-10-12 00:18:42 +03:00
Alexey Milovidov
e752271d99
Added check for invalid PREWHERE #3336
2018-10-11 23:52:25 +03:00
Alexey Milovidov
7d6365d139
LLVM compiler: better exception messages [#CLICKHOUSE-2]
2018-10-11 23:31:41 +03:00
chertus
c593d9a971
extract ExecuteScalarSubqueriesVisitor from ExpressionAnalyser [CLICKHOUSE-3996]
2018-10-11 22:28:59 +03:00
Alexey Milovidov
e3773c5d0c
Fixed code that was out of style #3145
2018-10-11 00:01:53 +03:00
Alexey Milovidov
55923011b5
Attempt to fix use-after-free, try 1 #3145
2018-10-10 23:44:50 +03:00
Alexey Milovidov
55bc2b812b
Miscellaneous #3145
2018-10-10 23:44:19 +03:00
Alexey Milovidov
75221c478a
Miscellaneous #3145
2018-10-10 23:37:01 +03:00
Alexey Milovidov
2c0ea27377
Miscellaneous #3145
2018-10-10 23:35:21 +03:00
Alexey Milovidov
5e50e6bfef
Fixed strange code #3145
2018-10-10 23:26:04 +03:00
alexey-milovidov
b9ecc4b819
Merge pull request #3340 from CurtizJ/issue-3253
...
Fix unnecessarily preparations for join at initial server [ISSUE-3253]
2018-10-10 23:04:13 +03:00
CurtizJ
16bea3d008
remove logs
2018-10-10 20:09:09 +03:00
CurtizJ
815380b8b2
fix unnecessarily preparations for join at initial server
2018-10-10 20:07:21 +03:00
chertus
1b7354f809
disable AST logging
2018-10-10 19:23:27 +03:00
alexey-milovidov
34bd8568b6
Merge pull request #3339 from liuyimin-bytedance/master
...
Issue 3269 Fix incorrect OR evaluation when multiples ORs are optimized to IN
2018-10-10 16:42:24 +03:00
alexey-milovidov
fe79529627
Update LogicalExpressionsOptimizer.cpp
2018-10-10 16:41:44 +03:00
liuyimin
019677c55b
Add fake range for tuple ASTFunction generated by Optimizer so that prepared set indexation works correctly
2018-10-10 21:31:18 +08:00
alexey-milovidov
4e6fd3e3fe
Merge pull request #3337 from VadimPE/CLICKHOUSE-3021
...
[CLICKHOUSE-3021] fix bug with unsupported value in CREATE TABLE
2018-10-10 16:23:17 +03:00
alexey-milovidov
2aa255f8b0
Update InterpreterCreateQuery.cpp
2018-10-10 16:23:06 +03:00
Vadim
56bfc25d9a
Update InterpreterCreateQuery.cpp
2018-10-10 16:15:17 +03:00
Vadim
834267054e
Update InterpreterCreateQuery.cpp
2018-10-10 16:14:29 +03:00
VadimPE
779a178347
CLICKHOUSE-3021 fix bug with unsupported value in CREATE TABLE
2018-10-10 15:50:29 +03:00
Alexey Milovidov
0b3a8cb489
Merge branch 'joins' of https://github.com/4ertus2/ClickHouse into 4ertus2-joins
2018-10-10 04:06:06 +03:00
chertus
c7bf0e77ea
add get64() for Decimal32 and Decimal64; remove allow_experimental_decimal_type setting [issue-3282]
2018-10-09 19:50:42 +03:00
chertus
b360fc895a
comment for TranslateQualifiedNamesVisitor [CLICKHOUSE-4001]
2018-10-09 17:41:19 +03:00
chertus
ec8d3b388d
move DumpASTNode to own file, style fixes [CLICKHOUSE-4001]
2018-10-09 17:32:11 +03:00
chertus
20b733aaf0
Merge branch 'master' into joins
2018-10-09 13:47:01 +03:00
alesapin
9946154908
CLICKHOUSE-3943: Rename FLUSH SYSTEM TABLES query to FLUSH LOGS, better tests
2018-10-09 13:05:27 +03:00
Alexey Milovidov
64c7e357e8
Fixed error #3230
2018-10-08 08:30:03 +03:00
Alexey Milovidov
80faec76e8
Merge remote-tracking branch 'origin/master' into fix-memory-tracker
2018-10-08 00:09:18 +03:00
alexey-milovidov
36c3feea80
Merge pull request #3270 from yandex/left-join-right-keys-fix
...
Left join right keys fix
2018-10-07 23:26:40 +03:00
Alexey Milovidov
a66beb5ec1
Fixed error #3230
2018-10-05 22:29:49 +03:00
Alexey Milovidov
5503822983
Merge branch 'master' into fix-memory-tracker
2018-10-05 18:15:50 +03:00
Nikolai Kochetov
064facd8de
Updated test.
2018-10-05 10:43:58 +03:00
alexey-milovidov
b9d1eb4154
Merge pull request #3298 from yandex/fix-prewhere-with-altered-columns
...
Fix prewhere with altered columns
2018-10-04 23:57:11 +03:00
Nikolai Kochetov
b1fa3fab9d
Fix prewhere whith final. #2827
2018-10-04 21:18:54 +03:00
CurtizJ
8c2060b48a
wip on finish sorting
2018-10-04 17:55:02 +03:00
CurtizJ
dd9516a810
wip on finish sorting
2018-10-04 13:24:51 +03:00
Nikolai Kochetov
c4c14de02f
Join aliases and duplicating columns fixes.
...
Join aliases and duplicating columns fixes. [#CLICKHOUSE-3994] #3145
2018-10-02 21:17:39 +03:00
Nikolai Kochetov
c470cf1e26
Fix joined keys from right column with left join. [#CLICKHOUSE-3994]
2018-10-02 21:16:47 +03:00
alesapin
7d79192ad7
Merge pull request #3267 from yandex/CLICKHOUSE-4025
...
Fix join of unjoinable thread
2018-10-02 18:39:53 +03:00
alesapin
c9880ad9c0
Fix join of unjoinable thread
2018-10-02 16:38:28 +03:00
Alexey Milovidov
698be017e9
Changes after merge #3208
2018-10-02 00:49:56 +03:00
alexey-milovidov
a4736275c6
Merge pull request #3208 from vavrusa/master
...
PushingToViewsBlockOutputStream: process blocks concurrently
2018-10-01 04:42:55 +03:00
zhang2014
6778220ffd
ISSUES-3232 remake interpreter_subquery when rewrite subqueries
2018-09-30 17:27:59 +08:00
Alexey Milovidov
613061cee5
Fixed incompatibility when versions prior to 18.12.17 are used on remote servers and newer is used on initiating server, and GROUP BY both fixed and non-fixed keys, and when two-level group by method is activated [#CLICKHOUSE-4035]
2018-09-28 23:17:38 +03:00
chertus
69b9c25801
Merge branch 'master' into joins
2018-09-28 20:09:05 +03:00
chertus
4c8112138c
Merge branch 'master' into joins
2018-09-28 20:02:25 +03:00
alexey-milovidov
a149233d99
Merge pull request #3246 from yandex/low-cardinality-fixes
...
Low cardinality fixes
2018-09-28 19:50:53 +03:00
alexey-milovidov
c6ab6fa1a8
Merge pull request #3247 from CurtizJ/fix-thread-group
...
Fix distributed "CREATE TABLE AS SELECT" query.
2018-09-28 18:54:49 +03:00
Anton Popov
49438ed1a1
Update DDLWorker.cpp
2018-09-28 18:35:30 +03:00
CurtizJ
ed3c744055
fixes
2018-09-28 18:30:03 +03:00
chertus
59df909f87
more ast debug info
2018-09-28 18:01:13 +03:00
proller
ec11bef633
Build fixes ( #3181 )
2018-09-28 17:53:20 +03:00
CurtizJ
009c973312
remove redundant comment
2018-09-28 16:47:34 +03:00
CurtizJ
f9fb73ce2e
fix distributed "create table as select" query
2018-09-28 16:44:39 +03:00
chertus
593b3ae338
one more minor fix
2018-09-28 15:13:01 +03:00
alexey-milovidov
b84a499a93
Merge pull request #3231 from zhang2014/fix/ISSUES-3225
...
ISSUES-3225 fix alias conflict when predicate optimization
2018-09-28 14:46:54 +03:00
chertus
b4ea89e1f3
minor fix
2018-09-28 14:46:52 +03:00