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
chertus
669ab71502
rename files according to class name
2018-09-28 13:52:08 +03:00
Nikolai Kochetov
97add69825
Rename WithDictionary to LowCardinality.
2018-09-28 13:44:59 +03:00
Alexey Milovidov
138e70197e
Fixed comments and docs #3241
2018-09-28 06:42:08 +03:00
Alexey Milovidov
169dbfe200
Fixed discrepancy between default values of "log_queries" and "log_query_threads" settings [#CLICKHOUSE-4030]
2018-09-28 06:40:39 +03:00
chertus
57d2c9db60
AST debug stuff: DumpASTNode, TranslateQualifiedNamesVisitor, hide AST explain command [CLICKHOUSE-4001]
2018-09-27 22:25:18 +03:00
Nikolai Kochetov
5a211b1ab7
More comments.
2018-09-27 18:16:47 +03:00
chertus
041cef5968
explain ast [CLICKHOUSE-4001]
2018-09-27 12:47:21 +03:00
zhang2014
b35ab511cb
ISSUES-3225 fix alias conflict when predicate optimization
2018-09-27 14:29:38 +08:00
Marek Vavruša
a971a0bc07
PushingToViewsBlockOutputStream: process blocks concurrently
...
The current model is to process blocks for attached views in sequence.
This is not ideal when the processing time for each view varies, or is
blocking (for example with replicated tables), as processing of next-in-line
view is blocked by wait in it's predecessor.
This commit changes the behavior to process 2 or more attached views concurrently.
2018-09-26 15:22:06 -07:00
Alexey Milovidov
30da8de1b6
Send log message about peak memory usage to client #3230
2018-09-27 00:19:49 +03:00
Alexey Milovidov
99927a3518
Returned logging peak memory usage in query scope #3230
2018-09-27 00:10:43 +03:00
Alexey Milovidov
0928acdf8a
Removed dead code #3230
2018-09-27 00:02:54 +03:00
Alexey Milovidov
dd88c092b7
Attempt to fix inconsistent values in total memory tracker #3143
2018-09-26 23:45:40 +03:00
Alexey Milovidov
e90484db77
Fix conversion between Date and DateTime when inserting in VALUES format and "input_format_values_interpret_expressions" is true #3226
2018-09-26 22:43:10 +03:00
alexey-milovidov
b6e53d22e1
Merge pull request #3200 from yandex/low-cardinality-function-result-cache
...
Added cache for low cardinality function result.
2018-09-26 18:12:48 +03:00
alexey-milovidov
6374094f0c
Merge pull request #3202 from zhang2014/fix/ISSUES-3145
...
ISSUES-3145 support qualified asterisk
2018-09-26 17:41:01 +03:00
Alexey Milovidov
042536177d
Merge branch 'master' into order-by-remerge
2018-09-26 04:24:35 +03:00
Nikolai Kochetov
d526859011
Added cache for low cardinality function result. [#CLICKHOUSE-3904]
2018-09-25 16:48:52 +03:00
zhang2014
b887ec8e98
ISSUES-3145 support qualified asterisk
2018-09-25 10:42:51 +08:00
alexey-milovidov
002331be1b
Merge pull request #3204 from CurtizJ/CLICKHOUSE-3527
...
Better code in #3101 .
2018-09-25 00:28:11 +03:00
Alexey Milovidov
8e7c6598e8
Added remerge step to process ORDER BY with LIMIT when memory usage is high #3179
2018-09-24 23:07:30 +03:00
Alexey Milovidov
17b8e20922
Failover for hosts with missing DNS records while connecting to ZooKeeper #3201
2018-09-24 22:09:12 +03:00
CurtizJ
d0ed96aa04
better code
2018-09-24 22:08:11 +03:00
Alexey Milovidov
73f68b5ee4
Miscellaneous [#CLICKHOUSE-2]
2018-09-24 21:44:09 +03:00
Alexey Milovidov
5f6328646a
utils/check-style/check-style -n #3101
2018-09-24 21:02:25 +03:00
alexey-milovidov
b6c7d71a03
Merge pull request #3101 from CurtizJ/CLICKHOUSE-3527
...
CLICKHOUSE-3527 Fix race while parallel ddl queries
2018-09-24 20:59:57 +03:00
zhang2014
f3dcc2ef41
ISSUES-3145 support qualified asterisk
2018-09-24 23:28:18 +08:00
alexey-milovidov
76cb9ff873
Update Context.cpp
2018-09-22 18:22:54 +03:00
alexey-milovidov
b1eb66c03e
Merge branch 'master' into low-cardinality-fixes
2018-09-21 13:43:37 +03:00
alexey-milovidov
4a54a1c310
Merge pull request #3138 from yandex/low-cardinality-group-by
...
Low cardinality group by
2018-09-21 13:38:20 +03:00
Nikolai Kochetov
3e742a6b55
Review fixes.
2018-09-21 12:49:43 +03:00
Alexey Milovidov
8bfdcc6464
Fix style [#CLICKHOUSE-2]
2018-09-20 23:57:06 +03:00
alexey-milovidov
5d3027d4d0
Merge pull request #3171 from yandex/fix_segfault_on_incomplete_block
...
Reorder Squashing and adding default output stream in insert
2018-09-20 21:11:45 +03:00
alexey-milovidov
4a095d8433
Merge pull request #3172 from CurtizJ/CLICKHOUSE-3979
...
Add modificator CUBE [CLICKHOUSE-3979]
2018-09-20 21:04:56 +03:00
alexey-milovidov
0d2c6dff24
Update Aggregator.h
2018-09-20 20:59:47 +03:00
CurtizJ
b89feb1572
replace bool by enum
2018-09-20 20:51:42 +03:00
CurtizJ
8644853558
optimize
2018-09-20 18:46:37 +03:00
alesapin
94287f3199
Finally fixed
2018-09-20 18:35:52 +03:00
alesapin
c13ffed085
Remove redundant changes
2018-09-20 16:26:32 +03:00
chertus
6442b5b167
refactoring: hide ASTIdentifier kind
2018-09-20 16:13:33 +03:00
alesapin
0f12e028a5
Fix insert for native format
2018-09-20 15:59:33 +03:00
alesapin
dfa3e7e1cd
Missed changes
2018-09-20 14:40:04 +03:00
alesapin
b87a084f38
Strict order of evaluated and added columns
2018-09-20 14:16:15 +03:00
Nikolai Kochetov
d2fbc3df58
Fix in function for low cardinality argument. #3004
2018-09-20 13:55:10 +03:00
alesapin
2b3e29f607
Take header from first block in Squashing stream
2018-09-19 20:39:04 +03:00
alesapin
e1c8045055
Fix error with header
2018-09-19 15:56:56 +03:00
alesapin
520446df53
Reorder Squashing and adding default output stream in insert
2018-09-19 14:09:12 +03:00
alesapin
c2f3453fda
Reorder Squashing and adding default output stream in insert
2018-09-19 14:06:42 +03:00
Alexey Zatelepin
badefe14bc
allow ON CLUSTER for ALTER UPDATE #3158
2018-09-19 14:01:09 +03:00
CurtizJ
8f7daa75d1
update comments
2018-09-19 12:34:07 +03:00
CurtizJ
e4c1ca91c1
update tests
2018-09-18 21:41:54 +03:00
Anton Popov
f550b21a8f
Merge branch 'master' into CLICKHOUSE-3527
2018-09-18 21:35:54 +03:00
CurtizJ
3177f3f6a9
update ddl guard
2018-09-18 21:33:15 +03:00
Alexey Milovidov
599ec4c577
Merge branch 'veloman-yunkan-jsoneachrow_import_nested'
2018-09-17 23:36:01 +03:00
Alexey Milovidov
8852660b24
Merge branch 'jsoneachrow_import_nested' of https://github.com/veloman-yunkan/ClickHouse into veloman-yunkan-jsoneachrow_import_nested
2018-09-17 23:26:43 +03:00
CurtizJ
43951e4879
add test
2018-09-17 22:16:51 +03:00
alexey-milovidov
c275764647
Merge pull request #3124 from yandex/CLICKHOUSE-3800
...
CLICKHOUSE-3800: Enable compilation to llvm by default
2018-09-17 21:50:45 +03:00
CurtizJ
8c9fe80d2d
add modificator cube
2018-09-17 21:01:04 +03:00
Alexey Milovidov
2963e056ef
Whitespaces [#CLICKHOUSE-3800]
2018-09-17 18:34:43 +03:00
Nikolai Kochetov
e84c64dae4
Fix build
2018-09-17 15:47:06 +03:00
Alexey Milovidov
01435a2c5d
Fixed error in documentation for setting "send_logs_level" #3136
2018-09-15 00:53:03 +03:00
Nikolai Kochetov
e2e31751e9
Support low cardinality columns in aggregation method with fixed keys. [#CLICKHOUSE-3903]
2018-09-14 20:14:31 +03:00
Veloman Yunkan
5fe127e4c3
Added --input_format_import_nested_json option
...
By default mapping of nested json data to nested tables is disabled. To
enable the import of nested json data (into corresponding nested tables)
clickhouse must be run with the --input_format_import_nested_json=1
option.
2018-09-14 13:43:57 +00:00
alesapin
d8a2b063dc
CLICKHOUSE-3800: More convinient names for functions, comments and new profile event.
2018-09-14 13:08:38 +03:00
alesapin
fc3153e64c
CLICKHOUSE-3800: Fix rare race condition
2018-09-14 13:08:38 +03:00
alesapin
0bd32876e9
Initialize compilation_cache pointer in ALL constructors
2018-09-14 13:08:38 +03:00
alesapin
a3bc82c745
CLICKHOUSE-3800: Fix segfault
2018-09-14 13:08:38 +03:00
alesapin
3989a06000
CLICKHOUSE-3800: Enable compilation to llvm by default
2018-09-14 13:08:38 +03:00
Nikolai Kochetov
16ed282dfc
Fix build.
2018-09-14 12:42:38 +03:00
Nikolai Kochetov
3dc5cd3a3a
Merged with master.
2018-09-14 12:14:37 +03:00
Nikolai Kochetov
12ec9caaf5
Added comments.
2018-09-14 11:04:19 +03:00
Nikolai Kochetov
4674beb900
Shared cache for low cradinality single aggregation column. [#CLICKHOUSE-3903]
2018-09-14 11:04:18 +03:00
Nikolai Kochetov
df71c47840
Added dictionary hash for low cardinality column. [#CLICKHOUSE-3903]
2018-09-14 11:04:18 +03:00
Nikolai Kochetov
94bfe50f52
Cache saved hash for low cardinality aggregate method. [#CLICKHOUSE-3903]
2018-09-14 11:04:18 +03:00
Nikolai Kochetov
2eb35dd6ef
Cache AggregateDataPtr for single low cardinality column. [#CLICKHOUSE-3903]
2018-09-14 11:04:09 +03:00
Nikolai Kochetov
787e814e4c
Low cardinality group by signle column. [#CLICKHOUSE-3903]
2018-09-14 11:03:02 +03:00
alexey-milovidov
92b2cc6625
Merge pull request #3107 from zhang2014/fix/ISSUES-3105
...
ISSUES-3105 fix some bugs in the predicate optimizer
2018-09-13 22:19:11 +03:00
alexey-milovidov
3a4582baef
Merge pull request #3125 from amosbird/self
...
Simply Self.
2018-09-13 21:56:10 +03:00
alexey-milovidov
dcfe84b5fd
Merge pull request #3128 from VadimPE/part_id_in_log
...
Add partition_id in part_log
2018-09-13 21:52:52 +03:00
Alexey Milovidov
a56413884d
Added clarification [#CLICKHOUSE-3]
2018-09-13 21:45:14 +03:00
VadimPE
f544564df6
Add documentation
2018-09-13 18:57:51 +03:00
Amos Bird
af369483a9
Simply Self.
...
> When the normal name of the template (i.e., the name from the enclosing scope, not the injected-class-name) is used, it always refers to the class template itself and not a specialization of the template
http://eel.is/c++draft/temp.local
2018-09-13 22:59:54 +08:00
zhang2014
3c4b34e94f
ISSUES-3105 turned on enable_optimize_predicate_expression
2018-09-13 21:53:08 +08:00
VadimPE
7ed39aaca3
add partition_id
2018-09-13 15:48:46 +03:00
zhang2014
25f79593a2
ISSUES-3105 fix some bugs in the predicate optimizer
2018-09-13 20:08:27 +08:00
Alexey Milovidov
59f8313b83
utils/check-style/check-style
2018-09-13 06:34:58 +03:00
alexey-milovidov
0223225a05
Merge pull request #3035 from yandex/alter-update
...
ALTER UPDATE
2018-09-13 06:03:35 +03:00
alexey-milovidov
3bad4cee5c
Merge pull request #3098 from zhang2014/fix/ISSUES-2560
...
ISSUES-2560 fix crash when create temporary with in clause
2018-09-13 03:09:29 +03:00
Anton Popov
6214f6a559
Update InterpreterSetQuery.cpp
2018-09-11 21:41:53 +03:00
CurtizJ
c1ed0bb86a
add setting allow_ddl
2018-09-11 21:37:19 +03:00