Maksim Kita
e9bfcd20e6
ExpressionJIT fix loop
2021-06-15 10:56:08 +03:00
Alexey Milovidov
447d7bb8cd
Minor changes
2021-06-14 07:13:35 +03:00
alexey-milovidov
99cfa9f463
Merge pull request #25248 from matwey/missed_include_condition_variable
...
Add missed #include <condition_variable>
2021-06-13 22:55:10 +03:00
Matwey V. Kornilov
797b29d082
Add missed #include <condition_variable>
...
std::condition_variable is used for wait_table_finally_dropped
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
2021-06-13 22:14:05 +03:00
mergify[bot]
9cfedd9c64
Merge branch 'master' into progress-bar
2021-06-12 01:15:23 +00:00
alexey-milovidov
05d1af153c
Merge branch 'master' into rename-const-context-ptr
2021-06-12 03:25:09 +03:00
alexey-milovidov
768b8fed75
Merge branch 'master' into mv-dist-join-fix
2021-06-12 03:19:09 +03:00
alexey-milovidov
99f108d704
Merge pull request #25162 from kitaisreal/rewrite-function-to-subcolumn-visitor-add-into-ya-make
...
RewriteFunctionToSubcolumnVisitor add into ya.make
2021-06-12 02:58:53 +03:00
alexey-milovidov
320f253912
Merge pull request #25022 from amosbird/initialquerystarttimefix
...
Add initial_query_start_time to query log
2021-06-12 02:41:24 +03:00
Ivan Lezhankin
e6b9ab6261
Fix false-positive issue from clang-tidy
2021-06-11 21:05:45 +03:00
Ivan Lezhankin
f7979292d6
Merge branch 'ast-table-identifier-2' of github.com:abyss7/ClickHouse into ast-table-identifier-2
2021-06-11 18:29:04 +03:00
Ivan Lezhankin
4773c79300
Fix ANTLR grammar
2021-06-11 18:27:32 +03:00
Amos Bird
49db4dbe6a
Update comment
2021-06-11 23:24:38 +08:00
tavplubix
182c10826c
Update TableJoin.h
2021-06-11 17:47:30 +03:00
Amos Bird
7d9a1106b8
Add initial_query_start_time to query log
2021-06-11 22:24:53 +08:00
Storozhuk Kostiantyn
b2ddc98958
Update InterpretersMySQLDDLQuery.cpp
2021-06-11 14:34:03 +03:00
Kostiantyn Storozhuk
3dc718ff36
style fixes
2021-06-11 19:29:12 +08:00
vdimir
c3aec8ae57
Fix random indentation to trigger ci
2021-06-11 14:03:53 +03:00
Nikolai Kochetov
52f60692c8
Do not optimize query plan for mutations.
2021-06-11 11:48:12 +03:00
Storozhuk Kostiantyn
6c9f701636
Wip my sql column comments support ( #1 )
...
Implemented MySQL engine column comments support
2021-06-11 11:43:36 +03:00
alexey-milovidov
7616216f10
Merge pull request #25015 from ClickHouse/fix-wrong-code-in-aggregate-functions
...
Remove a chunk of wrong code and look what will happen
2021-06-11 00:36:35 +03:00
Alexey Milovidov
7a6df49964
Fix clang-tidy
2021-06-10 22:14:24 +03:00
Ivan
a7fa4e641c
Merge branch 'master' into ast-table-identifier-2
2021-06-10 16:43:22 +03:00
Maksim Kita
005946945f
RewriteFunctionToSubcolumnVisitor add into ya.make
2021-06-10 11:41:16 +03:00
Alexey Milovidov
39abf41b4d
Fix clang-tidy
2021-06-10 02:16:01 +03:00
Alexander Kuzmenkov
c0e6aa97a6
Merge pull request #24734 from ClickHouse/aku/frame-expressions
...
support expressions in window frame
2021-06-10 00:25:32 +03:00
Nikolai Kochetov
a163453e74
Merge pull request #25082 from ClickHouse/fix-24011
...
Fix crash in explain syntax and cross join.
2021-06-09 19:40:23 +03:00
Nikolai Kochetov
9e0f3e5e9e
Avoid using empty table name in identifier.
2021-06-09 13:13:13 +03:00
Anton Popov
bb6f0dfbb8
Merge pull request #24406 from CurtizJ/rewrite-functions-to-subcolumns
...
Optimize some functions to subcolumns
2021-06-09 11:07:09 +03:00
mergify[bot]
3a47feedb0
Merge branch 'master' into progress-bar
2021-06-09 08:04:48 +00:00
Azat Khuzhin
18e8f0eb5e
Add ability to push down LIMIT for distributed queries
...
This way the remote nodes will not need to send all the rows, so this
will decrease network io and also this will make queries w/
optimize_aggregation_in_order=1/LIMIT X and w/o ORDER BY faster since it
initiator will not need to read all the rows, only first X (but note
that for this you need to your data to be sharded correctly or you may
get inaccurate results).
Note, that having lots of processing stages will increase the complexity
of interpreter (it is already not that clean and simple right now).
Although using separate QueryProcessingStage looks pretty natural.
Another option is to make WithMergeableStateAfterAggregation always, but
in this case you will not be able to disable only this optimization,
i.e. if there will be some issue with it.
v2: fix OFFSET
v3: convert 01814_distributed_push_down_limit test to .sh and add retries
v4: add test with OFFSET
v5: add new query stage into the bash completion
v6/tests: use LIMIT O,L syntax over LIMIT L OFFSET O since it is broken in ANTLR parser
https://clickhouse-test-reports.s3.yandex.net/23027/a18a06399b7aeacba7c50b5d1e981ada5df19745/functional_stateless_tests_(antlr_debug).html#fail1
v7/tests: set use_hedged_requests to 0, to avoid excessive log entries on retries
https://clickhouse-test-reports.s3.yandex.net/23027/a18a06399b7aeacba7c50b5d1e981ada5df19745/functional_stateless_tests_flaky_check_(address).html#fail1
2021-06-09 02:29:50 +03:00
alesapin
185fb83587
Merge pull request #25059 from ClickHouse/fix_loop_aliases
...
Ban loop aliases in table definitions
2021-06-08 23:36:54 +03:00
alexey-milovidov
e25d9843d1
Merge pull request #25025 from azat/parallel-kill-mutation
...
Distinguish KILL MUTATION for different tables.
2021-06-08 21:40:53 +03:00
alesapin
11a1606c15
Less strict
2021-06-08 12:54:00 +03:00
Azat Khuzhin
33b0429dd1
Add StorageID::operator==()
2021-06-08 10:51:22 +03:00
Azat Khuzhin
d5a8a1a8a1
Mark StorageID::operator bool() as explicit
...
This will avoid bugs, like comparing StorageID w/o operator== via cast
to bool.
2021-06-08 10:51:22 +03:00
Alexey Milovidov
d6513b22cb
Merge remote-tracking branch 'origin/master' into fix-wrong-code-in-aggregate-functions
2021-06-08 03:08:03 +03:00
alesapin
5284f192ee
Ban loop aliases in table definitions
2021-06-07 23:59:38 +03:00
Ivan
579250168f
Merge branch 'master' into ast-table-identifier-2
2021-06-07 20:30:39 +03:00
Amos Bird
840895509e
Fix using aggregate projection when group by without key
2021-06-07 22:44:42 +08:00
mergify[bot]
b8dcce68b5
Merge branch 'master' into rename-const-context-ptr
2021-06-07 09:46:24 +00:00
Nikolai Kochetov
0043434d5c
Merge pull request #24894 from amosbird/notinpartitionprune
...
Allow not in be used in partition pruning
2021-06-07 12:42:48 +03:00
Nikolai Kochetov
cbd46280eb
Update Set.cpp
2021-06-07 12:36:34 +03:00
Alexey Milovidov
885ce194e0
Making fundamentals correct
2021-06-07 00:49:55 +03:00
mergify[bot]
f84ac23951
Merge branch 'master' into compression-codecs-refactoring
2021-06-06 18:02:39 +00:00
alexey-milovidov
295dc6b517
Revert "Add initial_query_start_time to query log"
2021-06-06 20:57:04 +03:00
Alexey Milovidov
6a652ef4f6
Remove a chunk of wrong code and look what will happen
2021-06-06 19:28:54 +03:00
alexey-milovidov
81a12404c7
Merge pull request #24940 from azat/settings-limit-offset-fix
...
Fix limit/offset settings for distributed queries (ignore on the remote nodes)
2021-06-06 17:39:15 +03:00
alexey-milovidov
c3baba2287
Merge pull request #24930 from amosbird/distributedfix
...
Allow shard pruning with IN literal
2021-06-06 17:36:47 +03:00
alexey-milovidov
db384a163c
Merge pull request #24388 from amosbird/initialquerystarttime
...
Add initial_query_start_time to query log
2021-06-06 16:15:37 +03:00
Alexey Milovidov
17962459f5
Merge branch 'master' into issue-16775
2021-06-06 02:18:28 +03:00
Maksim Kita
a7ca1f5999
DictionaryLoader unnecessary dictionary configuration creation fix
2021-06-05 23:37:24 +03:00
Nicolae Vartolomei
af311c8642
Add acl for move partition between shards
...
We can not easily verify permissions on destination shard
and instead we require a custom grant that can be given to
superadmins.
2021-06-05 10:41:30 +01:00
Nicolae Vartolomei
4d91dfda7e
Replace if over an enum with a switch to make it hard to miss new cases
2021-06-04 17:57:17 +01:00
mergify[bot]
d68d5e0ef1
Merge branch 'master' into rename-const-context-ptr
2021-06-04 14:41:41 +00:00
Amos Bird
fd336411ee
Allow shard pruning with IN literal
2021-06-04 21:16:15 +08:00
Nikolai Kochetov
1850f411cc
Merge pull request #24874 from amosbird/rowpolicyfix1
...
Try reusing built sets during multi-pass analysis
2021-06-04 13:22:25 +03:00
Azat Khuzhin
8164c49f04
Fix limit/offset settings for distributed queries (ignore on the remote nodes)
2021-06-03 21:14:24 +03:00
Azat Khuzhin
578ecc1645
removeJoin: remove joined columns
2021-06-03 21:07:47 +03:00
Kruglov Pavel
8acf031c1b
Merge pull request #24398 from Avogar/fix-deltasum
...
Fix logical error AggregateFunctionFactory returned nullptr
2021-06-03 19:40:06 +03:00
Amos Bird
9dfa4c06bd
Try reusing built sets during multi-pass analysis
2021-06-03 22:06:05 +08:00
Amos Bird
df86f8ed36
Allow not in be used in partition pruning
2021-06-03 11:36:43 +08:00
alesapin
4a1bf51ad1
Merge branch 'master' into limited_fetches
2021-06-02 23:01:47 +03:00
Ivan Lezhankin
ae38b4a3f1
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-06-02 16:07:59 +03:00
Alexander Kuzmenkov
cc5465a2bd
remove const_cast that is not needed anymore
2021-06-02 15:22:05 +03:00
Alexander Kuzmenkov
ae79bbea7d
Merge remote-tracking branch 'origin/master' into HEAD
2021-06-02 15:06:22 +03:00
Nikolai Kochetov
fb1b0265b8
Merge branch 'master' into rename-const-context-ptr
2021-06-02 14:46:26 +03:00
Nikolai Kochetov
0dc4bea16b
Update Context_fwd.h
2021-06-01 16:38:47 +03:00
Nikolai Kochetov
dbaa6ffc62
Rename ContextConstPtr to ContextPtr.
2021-06-01 15:20:52 +03:00
Alexander Kuzmenkov
f51ecf8a72
Merge pull request #23769 from vdimir/issue-20309
...
Add qualified names for right columns for storage join
2021-06-01 14:42:49 +03:00
alesapin
c3321bef30
Merge branch 'master' into limited_fetches
2021-06-01 13:09:02 +03:00
kssenii
de277f8ac4
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into progress-bar
2021-06-01 07:58:19 +00:00
Maksim Kita
a21d0bc5c6
Merge pull request #24812 from ClickHouse/fix-typo-3
...
Fix typo. Remove the "allow_experimental_bigint_types" setting.
2021-06-01 10:55:37 +03:00
Maksim Kita
7aee971799
Merge pull request #24813 from kitaisreal/expression-jit-remove-unnecessary-logging
...
ExpressionJIT remove unncecessary logging
2021-06-01 10:50:31 +03:00
Maksim Kita
0093ee17b0
ExpressionJIT remove unnecessary logging
2021-05-31 23:17:40 +03:00
tavplubix
e9ff0b6d70
Merge pull request #23657 from kssenii/poco-file-to-std-fs
...
Poco::File to std::filesystem
2021-05-31 23:17:02 +03:00
Anton Popov
b24f65e1ad
Merge remote-tracking branch 'upstream/master' into HEAD
2021-05-31 23:04:52 +03:00
mergify[bot]
08eca33d81
Merge branch 'master' into progress-bar
2021-05-31 19:54:20 +00:00
Alexey Milovidov
4187aa444b
Fix typo. Remove "allow_experimental_bigint_types" setting.
2021-05-31 22:21:28 +03:00
Ivan Lezhankin
54a385d1b0
More fixes
2021-05-31 18:00:04 +03:00
Nikolai Kochetov
afc1fe7f3d
Make ContextPtr const by default.
2021-05-31 17:49:02 +03:00
Alexander Kuzmenkov
104f9bf6de
Merge remote-tracking branch 'origin/master' into HEAD
2021-05-29 16:12:34 +03:00
Alexander Kuzmenkov
73c2ca7da5
fixes
2021-05-29 16:12:18 +03:00
Alexander Kuzmenkov
d270731e9f
Merge pull request #24732 from ClickHouse/aku/immutable-context-1
...
remove mutable references to Context from IFunction interface
2021-05-29 14:07:43 +03:00
kssenii
db9f4762eb
Merge branch 'master' of github.com:ClickHouse/ClickHouse into poco-file-to-std-fs
2021-05-29 01:15:43 +03:00
kssenii
0a3589524e
File movement
2021-05-29 00:57:53 +03:00
kssenii
2a631aaf08
Final fixes
2021-05-29 00:34:44 +03:00
Maksim Kita
6aa3137c86
ExecuteScalarSubqueriesVisitor fix error code style check
2021-05-28 23:58:41 +03:00
Alexander Kuzmenkov
3824ba656c
Merge pull request #24576 from ClickHouse/aku/inherit-window
...
allow inheriting from a named window in window definition
2021-05-28 23:43:35 +03:00
Maksim Kita
15da5eb88d
Merge branch 'master' into nv/scalar-subquery-exception
2021-05-28 21:38:27 +03:00
Alexander Kuzmenkov
40b1dc1812
support expressions in window frame -- draft
2021-05-28 20:49:47 +03:00
Alexander Kuzmenkov
3f57fc085b
remove mutable context references from functions interface
...
Also remove it from some visitors.
2021-05-28 19:45:37 +03:00
Pavel Kruglov
42d57138f2
replace all isDateOrDateTime invocations to explicit calls to isDate and isDateTime and isDateTime64
2021-05-28 15:34:49 +03:00
Alexander Kuzmenkov
28ae6bcc7b
Update ExpressionAnalyzer.cpp
2021-05-28 13:08:45 +03:00
Alexander Kuzmenkov
d870e9c6d5
Merge pull request #24580 from ClickHouse/aku/distirbuted-window-order
...
fix ORDER BY after window fuctions over Distributed
2021-05-28 13:07:13 +03:00
Alexander Kuzmenkov
6cccb0992a
fix ORDER BY after window fuctions over Distributed
2021-05-27 19:06:37 +03:00
Alexander Kuzmenkov
cce04ce9c9
fix ORDER BY after window fuctions over Distributed
2021-05-27 19:05:49 +03:00
Alexander Kuzmenkov
7c6399d82d
fixes
2021-05-27 17:45:40 +03:00
Alexander Kuzmenkov
1d0b61dd0e
Merge remote-tracking branch 'origin/master' into HEAD
2021-05-27 15:59:00 +03:00
Alexander Kuzmenkov
23e6b6fc48
parent window spec - tmp
2021-05-27 15:58:50 +03:00
Ivan Lezhankin
06a0ab12bc
Merge remote-tracking branch 'upstream/master' into ast-table-identifier-2
2021-05-27 15:57:59 +03:00
alesapin
2985def91d
Add tests
2021-05-27 15:54:47 +03:00
kssenii
a0d8d689d3
Merge branch 'master' of github.com:ClickHouse/ClickHouse into poco-file-to-std-fs
2021-05-27 15:44:12 +03:00
Maksim Kita
5e65aff3fd
Merge pull request #24466 from kitaisreal/dictionaries-update-file-paths-restrictions
...
Dictionaries update file path restrictions
2021-05-27 13:46:47 +03:00
alesapin
6924dd51a2
Merge branch 'master' into limited_fetches
2021-05-27 11:17:36 +03:00
Maksim Kita
4ca651838c
Merge pull request #24550 from kitaisreal/jit_example_update
...
Update jit_example
2021-05-27 01:02:31 +03:00
Maksim Kita
b26783b308
Dictionaries update file path restrictions
2021-05-27 00:17:45 +03:00
alesapin
42b2383e01
Basic throttler implementation
2021-05-26 23:37:44 +03:00
kssenii
73f16ee9ee
Merge branch 'master' of github.com:ClickHouse/ClickHouse into poco-file-to-std-fs
2021-05-26 23:08:08 +03:00
Nicolae Vartolomei
be95a425d6
Avoid hiding errors like Limit for rows or bytes to read exceeded
for subqueries
2021-05-26 16:45:05 +01:00
Maksim Kita
d56dc82784
Merge pull request #24468 from kitaisreal/compile-expressions-cached-functions-with-context-fix
...
CompileExpression cached functions with context fix
2021-05-26 10:52:22 +03:00
kssenii
940eab6924
Review fixes
2021-05-26 09:26:19 +03:00
Alexey Milovidov
20f59ffbb9
Merge branch 'master' into issue-16775
2021-05-26 03:46:43 +03:00
tavplubix
84f9d38620
Merge pull request #24321 from amosbird/fixdroppartition
...
Fix drop partition in rare case
2021-05-26 01:34:22 +03:00
Maksim Kita
c79f480e46
Fix expression compilation without cache
2021-05-25 23:53:46 +03:00
Maksim Kita
0eabdc7241
CompileExpression cached functions with context fix
2021-05-25 21:46:40 +03:00
Maksim Kita
315994f686
Merge pull request #24442 from kitaisreal/actions-dag-compile-expressions-update
...
ActionsDAG compile expressions update
2021-05-25 21:44:23 +03:00
Alexander Tokmakov
4849ea2e03
fix unexpected behavior in mutation finalization
2021-05-25 14:10:45 +03:00
Nikolai Kochetov
d4998909b6
Merge pull request #24463 from ClickHouse/fix-24024
...
Fix header mismatch for UNION.
2021-05-25 12:04:45 +03:00
Maksim Kita
ba43fe784c
Updated tests
2021-05-25 11:50:40 +03:00
Maksim Kita
f9f1ac165c
Update jit_example
2021-05-25 10:22:25 +03:00
Maksim Kita
0628fb8b1b
Merge pull request #24417 from kitaisreal/function-constant-result-with-nonconstant-arguments
...
Function constant result with nonconstant arguments
2021-05-24 23:16:47 +03:00
elevankoff
9d3c24c9c0
Fix typo
2021-05-24 19:48:29 +00:00
Nikolai Kochetov
79a0029843
Fix header mismatch for UNION.
2021-05-24 21:09:00 +03:00
elevankoff
7d1524561e
Delete extra whitespaces
2021-05-24 17:35:38 +00:00
Anton Popov
a36c1793d0
Merge remote-tracking branch 'upstream/master' into HEAD
2021-05-24 15:57:43 +03:00
Anton Popov
d1b9dcdcec
fix build
2021-05-24 15:57:03 +03:00
Maksim Kita
7af4d5b86d
Fixed tests
2021-05-24 14:25:02 +03:00
Amos Bird
7bc13f7ae8
Add initial_query_start_time to query log
2021-05-24 17:06:40 +08:00
Maksim Kita
b128221cf0
ActionsDAG compile expressions update
2021-05-24 11:59:27 +03:00
Maksim Kita
1a725d916b
Upated LogicalFunctions
2021-05-24 10:16:12 +03:00
Maksim Kita
72fbb2dd54
Fixed tests
2021-05-24 10:16:12 +03:00
Maksim Kita
ed443c8941
Function constant result with nonconstant arguments
2021-05-24 10:16:12 +03:00
Alexey Milovidov
d32819f068
Mark false positives for PVS-Studio
2021-05-24 06:59:12 +03:00
Alexey Milovidov
54f0591aa5
Allow to ATTACH a table with experimental codecs
2021-05-24 06:47:00 +03:00
Alexey Milovidov
6f70feed2f
Merge branch 'master' into issue-16775
2021-05-24 05:56:57 +03:00
Alexey Milovidov
ff7b5d34bb
Mark false positives for PVS-Studio
2021-05-24 02:56:03 +03:00
kssenii
866b29fb5a
Return list fds with Poco, more canonical
2021-05-23 10:56:13 +03:00
Maksim Kita
518552c866
Fixed tests
2021-05-23 01:37:54 +03:00
kssenii
1c43b333ea
Merge branch 'master' of github.com:ClickHouse/ClickHouse into poco-file-to-std-fs
2021-05-22 21:26:48 +03:00
alexey-milovidov
1ed30f7246
Merge branch 'master' into issue-16775
2021-05-22 17:14:23 +03:00
Maksim Kita
42e91df363
Updated submodule to llvm12
2021-05-22 15:22:38 +03:00
elevankoff
ee3223b944
Add ProcessorStatisticsOS, MemoryInfoOS and DiskStatisticsOS
2021-05-22 09:57:51 +00:00
Anton Popov
e3ca1cf94d
Merge remote-tracking branch 'upstream/master' into rewrite-functions-to-subcolumns
2021-05-22 03:06:36 +03:00
Anton Popov
75adbd8e23
optimize some functions to subcolumns
2021-05-22 02:22:22 +03:00
alexey-milovidov
a25f1910cc
Merge pull request #24320 from ClickHouse/remove-auto-array
...
Remove AutoArray
2021-05-22 02:19:59 +03:00
kssenii
096d117f68
Review fixes
2021-05-22 00:12:46 +03:00
Anton Popov
13cfedd188
optimize some functions to subcolumns
2021-05-21 21:48:19 +03:00
mergify[bot]
970243850f
Merge branch 'master' into ast-table-identifier-2
2021-05-21 12:56:49 +00:00
vdimir
3e9dd96056
Merge branch 'master' into view-join-settings
2021-05-21 13:50:44 +03:00