Alexey Milovidov
cc5b34d778
Addition to prev. revision
2019-08-11 04:00:54 +03:00
Alexey Milovidov
f00fa640ba
Removed old optimization that is now dominated by the new optimization
2019-08-11 02:40:15 +03:00
Alexey Milovidov
011e50cae6
Removed useless function arguments
2019-08-11 02:27:25 +03:00
Alexey Milovidov
3885cc20b8
Improved performance of aggregation without key
2019-08-11 02:22:23 +03:00
Alexey Milovidov
efa51a6cd9
Batch aggregation (experimental)
2019-08-11 01:36:55 +03:00
alexey-milovidov
838c5e535f
Merge pull request #6433 from yandex/prevent-stack-overflow-in-parser
...
Fixed possible stack overflow in parser
2019-08-10 23:58:54 +03:00
Nikita Vasilev
75e381bde4
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-10 23:07:50 +03:00
Alexey Milovidov
afef5c6c70
Added stack protection; added a test
2019-08-10 20:51:47 +03:00
Olga Khvostikova
dd6f48342d
Merge pull request #6428 from yandex/low-cardinality-setting-in-cast
...
Fix behavior low cardinality setting in creating materialized view (Fix #6293 )
2019-08-10 18:26:59 +03:00
kreuzerkrieg
112fc71276
adding -Wshadow for GCC
2019-08-09 23:58:16 +03:00
stavrolia
626b75b6a5
Fix behavior low cardinality setting in creating materialized view
2019-08-09 22:17:19 +03:00
chertus
6491de7edd
forget to remove field in last patch
2019-08-09 19:17:01 +03:00
Nikolai Kochetov
2ae3db7920
Merged with master.
2019-08-09 18:32:44 +03:00
Nikolai Kochetov
9bd949fff5
Convert streams structure to sample block in InterpreterSelectQuery.
2019-08-09 17:57:15 +03:00
chertus
e06c994b0e
refactoring: move collectUsedColumns from ExpressionAnalyzer to SyntaxAnalyzer
2019-08-09 17:50:04 +03:00
Nikolai Kochetov
78516083ac
Remove dry_run flag from InterpreterSelectQuery::executeImpl.
2019-08-09 16:42:58 +03:00
Nikolai Kochetov
a1023bebff
Fix tests.
2019-08-09 16:37:42 +03:00
alesapin
2803fcc2ba
Make atomic settings
2019-08-09 16:07:19 +03:00
Nikita Mikhaylov
636793fd89
better
2019-08-09 15:56:19 +03:00
Nikita Mikhaylov
596a3fe1a8
better
2019-08-09 15:54:47 +03:00
Nikita Mikhaylov
4c85e9f481
atomic drop table
2019-08-09 14:17:33 +03:00
Alexey Milovidov
a6e4b34ab4
Fixed unpleasant code #6401
2019-08-08 23:02:30 +03:00
Alexey Milovidov
1437065c70
Fixed tests and error messages #6351
2019-08-08 22:42:34 +03:00
Alexander Tokmakov
ae6efb23b4
Merge branch 'master' into alter_table_drop_detached_part
2019-08-08 22:31:31 +03:00
alesapin
a03fcd9f12
Make settings values atomic to avoid race conditions
2019-08-08 22:29:56 +03:00
alexey-milovidov
35f4e7cf33
Merge pull request #6351 from 4ertus2/some
...
Disable ANY RIGHT and ANY FULL JOINs by default
2019-08-08 19:16:49 +03:00
Alexander Tokmakov
b5eee531a9
fix setting name
2019-08-08 19:08:43 +03:00
Nikolai Kochetov
9ac401573f
Added InterpreterSelectQuery::getSampleBlockImpl. Disable dry_run.
2019-08-08 18:18:28 +03:00
chertus
391574f361
rename setting + disable ANY INNER JOIN too
2019-08-08 17:20:25 +03:00
alesapin
75c3ed967a
Checking updatable for user settings
2019-08-07 19:13:28 +03:00
Nikolai Kochetov
42c2833932
Added function which calculates header for execution step (InterpreterSelectQuery::getHeaderForExecutionStep). Removed InterpreterSelectQuery:;getSampleBlock from StorageDistributed and StorageMerge.
2019-08-07 16:41:36 +03:00
Nikita Vasilev
90ce4608fb
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-06 21:07:13 +03:00
Nikolai Kochetov
e73ea8a131
Make InterpreterSelectQuery::analyzeExpressions static.
2019-08-06 16:00:56 +03:00
alexey-milovidov
9dd9553d73
Merge pull request #6344 from amosbird/c9
...
Optimize Count() Cond.
2019-08-06 13:55:45 +03:00
Amos Bird
9950c9442b
Update
2019-08-06 09:34:49 +08:00
chertus
c909e00865
disable ANY RIGHT and ANY FULL JOINs by default
2019-08-05 22:23:02 +03:00
Nikita Vasilev
4e8ab12816
refactoring
2019-08-05 21:22:44 +03:00
Nikita Vasilev
7b8c0f1750
experiment
2019-08-05 21:06:05 +03:00
Amos Bird
a7db425592
Optimize Count() Cond.
...
Follow up https://github.com/yandex/ClickHouse/pull/6028
2019-08-05 22:15:15 +08:00
chertus
ef7d19e143
better JOIN exception messages #5565
2019-08-05 17:03:14 +03:00
CurtizJ
cfe32ad89b
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-08-04 21:43:00 +03:00
Alexey Milovidov
8c05766888
Attempt to simplify text log
2019-08-04 18:51:04 +03:00
alexey-milovidov
a0599214ef
Merge pull request #6103 from nikitamikhaylov/system_text_log
...
Allow to write ClickHouse text logs into system table.
2019-08-04 17:51:34 +03:00
Nikita Vasilev
4a39538625
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-08-04 16:58:21 +03:00
Alexey Milovidov
8b85e09f06
Removed useless includes
2019-08-04 03:34:43 +03:00
Alexey Milovidov
8b8c59d71b
Simplification of #3796
2019-08-04 03:29:32 +03:00
Alexey Milovidov
224bc4df97
Minor modifications + a comment #3796
2019-08-04 03:12:17 +03:00
alexey-milovidov
b045e85469
Merge pull request #3796 from amosbird/hang
...
Fix materialized view with column defaults.
2019-08-04 03:06:40 +03:00
alexey-milovidov
72e3f35924
Merge pull request #6309 from yandex/compiler-no-defaultlibs
...
Avoid extra dependency in Compiler (used with compile = 1 setting)
2019-08-03 18:46:03 +03:00
alexey-milovidov
349ad17436
Merge pull request #6298 from yandex/aku/uint816-nocache
...
Disable consecutive key optimization for UInt8/16.
2019-08-03 06:23:03 +03:00
Alexey Milovidov
ea98bd4ae2
Avoid extra dependency in Compiler (used with compile = 1 setting)
2019-08-03 06:01:13 +03:00
alexey-milovidov
149ed67462
Merge pull request #6281 from yandex/fix-low-cardinality-aggregate-arguments
...
Fix LowCardinality arguments conversion in AggregateFunctionFactory
2019-08-03 01:50:21 +03:00
alexey-milovidov
f149e3b436
Merge pull request #6277 from yandex/aku/pairnoinit
...
Make PairNoInit a simple struct.
2019-08-02 22:56:12 +03:00
alexey-milovidov
f8980e691e
Merge pull request #6274 from CurtizJ/ttl-old-parts
...
TTL improvements.
2019-08-02 22:51:28 +03:00
alexey-milovidov
3e0ce7df58
Merge pull request #6249 from 4ertus2/joins
...
Fix join_use_nulls. Nulls in JOIN keys issue
2019-08-02 22:07:03 +03:00
CurtizJ
e06a53a5d9
fix ranges selection at reading in order
2019-08-02 20:34:29 +03:00
CurtizJ
5f7ebb18ed
more optimal ranges selection at reading in order
2019-08-02 19:16:18 +03:00
Alexander Kuzmenkov
d808fafa8f
Disable consecutive key optimization for UInt8/16.
...
These types use a FixedHashMap for aggregation, which makes lookup
almost free, so we don't have to cache the last lookup result.
This is a part of StringHashMap PR #5417 by Amos Bird.
2019-08-02 18:37:32 +03:00
chertus
c5a661a05c
undo wrong changes
2019-08-01 22:56:29 +03:00
chertus
94813b21ba
restore names deduplication
2019-08-01 22:48:21 +03:00
chertus
479a0a9c8e
fix case with several same keys in join
2019-08-01 22:39:39 +03:00
Nikolai Kochetov
a8378e8ef0
Fix LowCardinality arguments conversion for AggregateFunctionFactory.
2019-08-01 21:22:38 +03:00
chertus
4072214b5d
fix UB in join keys order
2019-08-01 20:27:51 +03:00
Alexander Kuzmenkov
011150fa8a
Make PairNoInit a simple struct.
2019-08-01 19:54:33 +03:00
Nikita Mikhaylov
241751542e
CamelCase
2019-08-01 19:37:50 +03:00
CurtizJ
82f304f81e
add query 'SYSTEM STOP TTL MERGES'
2019-08-01 18:36:12 +03:00
Nikita Mikhaylov
9dbb758133
better style
2019-08-01 15:40:12 +03:00
Nikita Mikhaylov
406f7a2bfe
done
2019-08-01 14:11:08 +03:00
Igr Mineev
0f1e8404dc
Merge branch 'master' of github.com:yandex/ClickHouse into feature_multiple_disks
2019-08-01 13:42:59 +03:00
Nikita Mikhaylov
a9fea0314e
better style
2019-08-01 13:31:29 +03:00
Igr Mineev
fc79ed86ef
Ready for review
2019-08-01 13:29:14 +03:00
alexey-milovidov
e8cac8ab6e
Merge pull request #6253 from yandex/std-filesystem-2
...
Changed boost::filesystem to std::filesystem
2019-08-01 04:32:40 +03:00
Alexey Milovidov
f3921ce3e0
Changed boost::filesystem to std::filesystem
2019-08-01 01:37:41 +03:00
alesapin
cfbae59701
Merge pull request #6236 from yandex/fix_prewhere_remote
...
Fix bug in prewhere + distributed
2019-07-31 23:22:29 +03:00
chertus
10edd76fe4
fix join_use_nulls results for key columns
2019-07-31 23:19:52 +03:00
alesapin
f70b0ed910
Slightly better
2019-07-31 18:05:21 +03:00
alesapin
aed4e5d1c4
Get type from source column
2019-07-31 17:57:14 +03:00
alesapin
4481bf429f
Remove nulltype from assignment
2019-07-31 17:54:58 +03:00
Nikita Mikhaylov
cac7972837
better
2019-07-31 17:18:59 +03:00
Nikita Mikhaylov
ad4459c4a2
fixed flush_logs + added pretty function
2019-07-31 17:03:23 +03:00
alesapin
2254e6fd32
Fix comment
2019-07-31 15:35:23 +03:00
alesapin
46c1e9d1a2
Use COPY_COLUMN instead of PROJECT
2019-07-31 15:33:58 +03:00
chertus
f402ae5092
Merge branch 'master' into joins
2019-07-31 14:40:19 +03:00
alesapin
e6052ec117
Fix bug in prewhere + distributed
2019-07-31 13:22:56 +03:00
alexey-milovidov
94454e514d
Merge pull request #6211 from 4ertus2/asof
...
Support ASOF JOIN ON syntax
2019-07-31 06:00:22 +03:00
alexey-milovidov
10ab19b2e4
Merge pull request #6231 from yandex/bad-server-shutdown
...
Fixed bad server shutdown
2019-07-31 05:53:11 +03:00
alexey-milovidov
7fd6204114
Merge pull request #6197 from yandex/thread_local_rng
...
Less number of "clock_gettime" calls; fixed ABI compatibility between debug/release in Allocator.
2019-07-31 04:36:30 +03:00
Alexey Milovidov
b6275010f2
Fixed error with server shutdown
2019-07-31 02:12:04 +03:00
alexey-milovidov
cb37c79c41
Merge pull request #6201 from yandex/speed-up-dladdr
...
Introspection functions + better stack traces.
2019-07-31 00:49:16 +03:00
chertus
504d548d79
AnalyzedJoin refactoring
2019-07-30 21:39:37 +03:00
Igr Mineev
7f7b47fc0a
Add check of RW access to paths on start. Add multiple disks tests.
2019-07-30 19:15:57 +03:00
Igr Mineev
31c36efa25
Merge branch 'master' of github.com:yandex/ClickHouse into feature_multiple_disks
2019-07-30 19:13:58 +03:00
Nikita Mikhaylov
e06b3b17b3
some changes to log all text logs
2019-07-30 17:04:18 +03:00
chertus
24fd416084
remove unused ExpressionAnalyzer settings
2019-07-30 14:41:11 +03:00
Amos Bird
6db1c02bfd
Fix materialized view with column defaults.
...
https://github.com/yandex/ClickHouse/issues/448
https://github.com/yandex/ClickHouse/issues/3484
https://github.com/yandex/ClickHouse/issues/3450
https://github.com/yandex/ClickHouse/issues/2878
https://github.com/yandex/ClickHouse/issues/2285
2019-07-30 10:49:54 +08:00
Alexey Milovidov
b5b80fb342
Merge branch 'master' into thread_local_rng
2019-07-30 03:19:48 +03:00
Alexey Milovidov
372c4d89b2
Enabled line numbers in stack traces
2019-07-30 01:26:44 +03:00
chertus
7b4ddd268e
support ASOF JOIN ON syntax
2019-07-29 17:58:36 +03:00
Alexander Tokmakov
3c15b87003
Merge branch 'master' into alter_table_drop_detached_part
2019-07-29 14:29:23 +03:00
Yuriy
f1694a1746
build fix
2019-07-29 03:09:17 +03:00
alexey-milovidov
3e9dd7ed42
Merge pull request #6196 from zlobober/patch-2
...
Fix build under gcc-8.2
2019-07-29 02:21:46 +03:00
Max Akhmedov
5e9ea2a905
Remove spaces from empty line
2019-07-28 20:46:48 +03:00
alexey-milovidov
129e88ee26
Merge pull request #6189 from CurtizJ/order-by-efficient
...
Fix reading in order of sorting key and refactoring.
2019-07-28 19:43:49 +03:00
Alexey Milovidov
856cc1b9c5
Added thread_local_rng
2019-07-28 18:30:38 +03:00
Max Akhmedov
f632a0b241
Fix build under gcc-8.2
2019-07-28 18:12:07 +03:00
Yuriy
b1d5f4ca20
disabled mysql_native_password when password is specified as a plain text as it allows to connect to ClickHouse knowing only SHA1 instead of a password
2019-07-28 17:17:33 +03:00
Yuriy
760afb007c
arbitrary passwords
2019-07-28 16:36:27 +03:00
Yuriy
21ce5331d1
implemented mysql_native_password auth plugin for compatibility with mysqljs
2019-07-28 16:12:26 +03:00
Gleb Novikov
8f4883b0d2
Better constraint exception
2019-07-28 15:33:40 +03:00
CurtizJ
b4991b38bf
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-28 04:26:43 +03:00
CurtizJ
d69d68f065
rename setting 'optimize_pk_order' and some functions
2019-07-28 04:16:56 +03:00
Yuriy
383fa25c51
resolved conflict
2019-07-28 02:00:15 +03:00
alexey-milovidov
12a15316fd
Merge pull request #6181 from 4ertus2/joins
...
Fix crop column names in GLOBAL JOIN ON
2019-07-28 00:31:29 +03:00
CurtizJ
08d5ebb54d
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-27 10:38:10 +03:00
Nikita Vasilev
7efb1bcb12
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-07-27 10:30:43 +03:00
CurtizJ
60289cd764
fix optimizeSortingWithPK
2019-07-27 03:15:22 +03:00
CurtizJ
cb85721cba
handle ExpressionAnalyzer exceptions, while trying to optimize order by, in case of complicated queries
2019-07-27 03:02:04 +03:00
CurtizJ
b1d981ec3a
better pipeline while reading in pk_order
2019-07-27 01:18:27 +03:00
chertus
9f9ba3a06f
restore cropped names in JOIN ON section for distributed queries
2019-07-26 20:43:42 +03:00
qianlixiang
64d65c0123
Fixed mismatched header of prewhere with sample column
2019-07-26 18:48:42 +08:00
alexey-milovidov
2442e65367
Merge pull request #6124 from yandex/merge-profiler
...
Fixes for query profiler.
2019-07-26 03:51:57 +03:00
alexey-milovidov
a3e4c1d39f
Merge pull request #6131 from 4ertus2/joins
...
Better JOIN ON keys extraction
2019-07-26 02:10:45 +03:00
Alexey Milovidov
f4ec18b30f
Merge branch 'system_text_log' of https://github.com/nikitamikhaylov/ClickHouse into nikitamikhaylov-system_text_log
2019-07-26 01:51:19 +03:00
Alexey Milovidov
0cce86db3f
Merge remote-tracking branch 'origin/master' into merge-profiler
2019-07-26 00:41:24 +03:00
Alexey Milovidov
050db07e3d
Merge branch 'master' into merge-profiler
2019-07-25 22:54:22 +03:00
chertus
554e4ab5b8
fix cross alliasing case with JOIN ON
2019-07-25 22:25:51 +03:00
Alexey Milovidov
93c7f6aedf
Merge branch 'fix_ISSUE5695' of https://github.com/TCeason/ClickHouse into TCeason-fix_ISSUE5695
2019-07-25 19:09:18 +03:00
CurtizJ
b1cc019bd4
fix pipeline
2019-07-25 14:00:14 +03:00
chertus
06076e67a3
Merge branch 'master' into joins
2019-07-25 13:48:32 +03:00
CurtizJ
f5b93eb991
fix order by optimization
2019-07-25 13:45:01 +03:00
alexey-milovidov
a985897a07
Update PredicateExpressionsOptimizer.h
2019-07-25 04:05:16 +03:00
alexey-milovidov
3022c4a759
Update PredicateExpressionsOptimizer.cpp
2019-07-25 04:04:03 +03:00
Alexey Milovidov
4c57405770
Added information about revision to trace log
2019-07-24 23:12:32 +03:00
Alexey Milovidov
cfb2066198
Added information about thread number to trace log
2019-07-24 23:10:23 +03:00
chertus
b3123df58e
use source and joined columns to detect JOIN ON right and left keys
2019-07-24 18:37:37 +03:00
CurtizJ
3d706ec20e
support 'order by' optimiation with simple monotonic functions
2019-07-24 17:23:57 +03:00
Nikita Mikhaylov
38607af95f
nothing interesting
2019-07-24 11:26:23 +03:00
Alexey Milovidov
a3f6b70433
Fixed warning from PVS-Studio
2019-07-23 23:07:33 +03:00
chertus
9da1b0089c
visitor for JOIN ON keys extraction
2019-07-23 22:49:15 +03:00
Alexander Tokmakov
3c2172b750
parse and interpret query
2019-07-23 22:25:10 +03:00
Nikita Mikhaylov
811e3ab241
style check
2019-07-23 17:50:38 +03:00
Alexey Milovidov
1b00e99334
Fixed error with initialization of query profiler
2019-07-23 17:30:14 +03:00
Igr
3e017ec69c
Merge branch 'master' into feature_multiple_disks
2019-07-23 16:38:20 +03:00
Igr Mineev
e967c23adb
Add Space interface for reservation. Add move to volume command
2019-07-23 16:34:17 +03:00
Nikita Mikhaylov
14b384f3e5
Merge branch 'master' into system_text_log
2019-07-23 15:51:04 +03:00
chertus
9baf1bf196
Merge branch 'master' into ast
2019-07-23 13:49:18 +03:00
tai
b01f54ade1
ISSUE-5695: support push down predicate to final subquery
2019-07-23 18:22:07 +08:00
Igr Mineev
2925657f5e
Remove non-alter move command.
2019-07-23 12:38:26 +03:00
Nikita Mikhaylov
61412e7f74
changes after review + update config + resolve build fail
2019-07-23 11:22:38 +03:00
alexey-milovidov
e4ad0da6e3
Merge pull request #4247 from laplab/query-poor-mans-profiler
...
Poor man's profiler on query level [Work in progress]
2019-07-23 03:02:58 +03:00
alexey-milovidov
cd6c15b79f
Merge pull request #6057 from dimarub2000/master
...
CREATE TABLE AS table_function()
2019-07-23 02:50:08 +03:00
chertus
eaa3cb557a
move prefer_alias_to_column_name logic out of parser
2019-07-22 22:21:07 +03:00
Nikita Mikhaylov
daa7fc154f
better includes
2019-07-22 19:21:34 +03:00
Nikita Mikhaylov
a80e066769
better
2019-07-22 19:04:15 +03:00
Nikita Mikhaylov
0f3a4a34b4
test + comment
2019-07-22 18:33:38 +03:00
Nikita Mikhaylov
8289472b98
style improvements
2019-07-22 18:09:33 +03:00
Nikita Mikhaylov
c6667ff888
wip
2019-07-22 16:54:08 +03:00
Dmitry Rubashkin
0320de9132
test and fixes
2019-07-22 16:49:16 +03:00
Dmitry Rubashkin
9ffbf65741
Fix of a fix
2019-07-22 15:50:10 +03:00
Dmitry Rubashkin
42efc1051e
fixes of bad commit
2019-07-22 15:35:29 +03:00
Dmitry Rubashkin
d279a685a9
Merge branch
2019-07-22 15:31:17 +03:00
Dmitry Rubashkin
6c6af60194
Fixes after review
2019-07-22 15:18:53 +03:00
alexey-milovidov
adfc369172
Merge pull request #6082 from vitlibar/fix-segfault-in-reload-outdated
...
Fix segfault in ExternalLoader::reloadOutdated().
2019-07-22 01:28:37 +03:00
Alexey Milovidov
b2961bcc31
Added check for empty number of columns; improved test
2019-07-22 00:19:42 +03:00
Alexey Milovidov
8060993ca2
Removed obsolete comment
2019-07-21 23:40:34 +03:00
Alexey Milovidov
fb0d09c5d3
Rename files
2019-07-21 20:03:58 +03:00
Alexey Milovidov
47058e8e11
Fixed error
2019-07-21 05:13:42 +03:00
Alexey Milovidov
7064fe6678
Merge branch 'master' into Immowelt-ThreeDots
2019-07-21 02:21:55 +03:00
alexey-milovidov
b035edefea
Update InterpreterCreateQuery.cpp
2019-07-20 03:02:18 +03:00
alexey-milovidov
175c4655d8
Merge pull request #6043 from 4ertus2/ast
...
Enable 'input_format_defaults_for_omitted_fields' by default
2019-07-20 00:42:01 +03:00
alexey-milovidov
746fe5cdac
Merge pull request #6073 from yandex/aku/loaddb-race
...
Fix a race condition in parallel table loading.
2019-07-20 00:08:09 +03:00
Vitaly Baranov
e64f8e606d
Add comments.
2019-07-20 00:04:19 +03:00
alexey-milovidov
f18e9592a1
Update ExternalLoader.cpp
2019-07-20 00:03:57 +03:00
Vitaly Baranov
5b879e143f
Fix segfault in ExternalLoader::reloadOutdated().
2019-07-20 00:03:25 +03:00
Yuriy
fa2dfcd71d
better
2019-07-19 21:43:52 +03:00
Alexey Milovidov
9ccf5a7c90
Merge branch 'master' into Immowelt-ThreeDots
2019-07-19 19:54:00 +03:00
chertus
e15f6e9752
Merge branch 'master' into ast
2019-07-19 18:01:09 +03:00
Alexander Kuzmenkov
de72d117ce
Fix a race condition in parallel table loading.
...
ThreadSanitizer reported that a data race occurs when we attach to a
database and load its tables concurrently. Remove the custom code that
waits for all tables to load, and replace it with a local thread pool
and its wait() method.
This changes observable behavior: before, we would load the tables
sequentially when loading the system database, or performing an ATTACH
DATABASE query. Now we always load tables of ordinary databases in
parallel.
2019-07-19 17:35:02 +03:00
Mikhail Filimonov
b9f208d54c
reverse order of cropping and removing sensitive data in query
2019-07-19 15:50:11 +02:00
Dmitry Rubashkin
1aca3da121
Fixed inegration
2019-07-19 16:28:28 +03:00
CurtizJ
2797c16930
fix prewhere at fetching columns
2019-07-19 13:14:27 +03:00
Mikhail Filimonov
f13e18d4fb
atomic masker in channel
2019-07-19 10:23:51 +02:00
Mikhail Filimonov
9c2ae4513d
SensitiveDataMasker
2019-07-19 10:22:42 +02:00
CurtizJ
b9dc472071
Merge remote-tracking branch 'upstream/master' into order-by-efficient
2019-07-19 01:09:59 +03:00
dimarub2000
20a846d753
Merge branch 'master' of github.com:yandex/ClickHouse
2019-07-18 21:52:18 +03:00
Dmitry Rubashkin
7382cb41fa
CREATE TABLE AS table_function()
2019-07-18 21:29:49 +03:00
CurtizJ
a3d25790bd
basic implementation of reading in pk order and 'order by' optimization
2019-07-18 17:41:11 +03:00
alexey-milovidov
a20a39caac
Merge pull request #6036 from vitlibar/remove-unnecessary-try-catch
...
Remove unnecessary try catch
2019-07-17 23:34:37 +03:00
alexey-milovidov
f6c636ce2e
Merge pull request #6039 from nikitamikhaylov/metrics_task
...
AsynchronousMetrics: add a metric for number of databases and total number of tables.
2019-07-17 22:34:37 +03:00
alexey-milovidov
aaee4724c3
Update AsynchronousMetrics.cpp
2019-07-17 22:34:29 +03:00
chertus
fbc0c87c18
enable input_format_defaults_for_omitted_fields & disable (not working) defaults for table functions
2019-07-17 21:30:17 +03:00
Alexey Milovidov
dd97878107
Style
2019-07-17 20:19:55 +03:00
Ivan
af44506ab4
Do not show virtual columns in DESCRIBE TABLE
2019-07-17 18:45:32 +03:00
Nikita Mikhaylov
44db7badbe
done
2019-07-17 18:36:28 +03:00
Alexey Milovidov
eb625cba11
Merge remote-tracking branch 'origin/master' into Immowelt-ThreeDots
2019-07-17 17:49:21 +03:00
alexey-milovidov
ea28254711
Merge pull request #5964 from nikitamikhaylov/logs_bugfix
...
"send_logs_level" bugfix
2019-07-17 17:42:54 +03:00
Vitaly Baranov
ee2fd91e8f
Merge branch 'master' into remove-unnecessary-try-catch
2019-07-17 16:10:58 +03:00
Vitaly Baranov
a01fa50a93
Merge pull request #6011 from vitlibar/check-dictionaries-for-modification-with-unlocked-mutex
...
Check dictionaries for modification with unlocked ExternalLoader::mutex
2019-07-17 16:06:25 +03:00
Vitaly Baranov
503553cbe4
Check dictionaries for modification with unlocked ExternalLoader::mutex
2019-07-17 11:40:35 +03:00
Vitaly Baranov
6d563c51e6
Remove unnecessary try-catch in the constructors of classes derived from IExternalLoadable.
2019-07-17 11:39:36 +03:00
Alexey Milovidov
ef6c7ea5be
Merge COLUMNS matcher (incomplete)
2019-07-16 23:05:00 +03:00
alexey-milovidov
503556ae53
Update ExpressionAnalyzer.cpp
2019-07-16 22:22:05 +03:00
alexey-milovidov
d0c088b9cc
Update ExpressionAnalyzer.cpp
2019-07-16 22:16:25 +03:00
Amos Bird
9fa955403b
Optimize count()
...
Choose the smallest column to count if possible.
2019-07-17 02:29:17 +08:00
Vitaly Baranov
b74dacf9c4
Check dictionaries for modification with unlocked ExternalLoader::mutex
2019-07-16 20:47:18 +03:00
Alexey Milovidov
3793c3cd13
Merge branch 'ThreeDots' of https://github.com/Immowelt/ClickHouse into Immowelt-ThreeDots
2019-07-16 19:41:05 +03:00
alexey-milovidov
14dc9ad801
Merge pull request #6024 from yandex/check_table_old_behaviour
...
Add settings for check query backward compatibility
2019-07-16 15:19:55 +03:00
alesapin
27447d4816
Fix style
2019-07-16 13:50:59 +03:00
Igr Mineev
21e0bec3d0
Merge remote-tracking branch 'upstream/master' into feature_multiple_disks
2019-07-16 13:45:07 +03:00
alesapin
f786c45ac4
Add settings for check query backward compatibility
2019-07-16 13:19:37 +03:00
Yuriy
1d6e31be4d
merged master
2019-07-16 10:33:25 +03:00
Yuriy
c370de432a
better
2019-07-16 10:28:53 +03:00
Yuriy
4df72f18ce
writing packets in parts
2019-07-16 09:39:18 +03:00
Alexey Milovidov
b3c0292613
Fixed error; added test
2019-07-15 19:32:52 +03:00
Nikita Mikhailov
cc5f87e352
Merge branch 'master' of github.com:yandex/ClickHouse into logs_bugfix
2019-07-15 19:31:54 +03:00
Alexey Milovidov
4d14f8c230
Fixed error in query_id printing
2019-07-15 04:07:01 +03:00
alexey-milovidov
a93c76837e
Merge pull request #5953 from abyss7/fix-filter-table
...
Implement getDatabaseName() and rename() for all storages
2019-07-13 00:51:39 +03:00
Maxim Fridental
bb40d4729c
Implement COLUMNS clause
2019-07-12 13:17:38 +02:00
alexey-milovidov
a3dda4053f
Merge pull request #5979 from vitlibar/read-prefix-before-blocks-while-executing-subquery
...
Fix using a table powered by the File engine in a subquery.
2019-07-12 03:20:31 +03:00
Nikolai Kochetov
e9f3d4d6b8
Merge pull request #4914 from yandex/processors
...
Processors
2019-07-11 19:22:02 +03:00
Vitaly Baranov
001e4daf25
Read prefix before blocks while executing subquery.
2019-07-11 16:53:26 +03:00
Nikita Lapkov
9d540abc84
refactor
2019-07-10 20:47:39 +00:00
Ivan Lezhankin
998aa795fc
Merge remote-tracking branch 'upstream/master' into fix-filter-table
2019-07-10 18:14:15 +03:00
NIKITA MIKHAILOV
865606b83c
bugfix client logs + some tests
2019-07-10 16:15:22 +03:00
Ivan Lezhankin
befb3ce15b
Merge branch 'master' into fix-filter-table
2019-07-10 13:27:26 +03:00
Alexey Milovidov
499d798b34
Remove "clickhouse_compression" library because it is not a library (cyclic dependency via IDataType)
2019-07-10 00:37:43 +03:00
Ivan Lezhankin
8a600c39af
Fix build for gtests
2019-07-09 21:53:16 +03:00
Ivan Lezhankin
9f01fa7aaa
Implement getDatabaseName() and rename() for all storages
2019-07-09 18:40:21 +03:00
alesapin
6a3b543e10
Merge branch 'master' of github.com:yandex/ClickHouse into fix_fetch_of_existing_part
2019-07-09 11:21:44 +03:00
alexey-milovidov
d6afdd5a8d
Merge pull request #5941 from 4ertus2/bugs
...
Fix wrong array_join_columns calculation
2019-07-09 03:58:36 +03:00
alexey-milovidov
a8d8eb6b28
Merge pull request #5921 from yandex/pvs-studio-fixes-4
...
A few fixes for PVS-Studio
2019-07-09 01:10:05 +03:00
chertus
ef41b16a44
fix wrong ExpressionAnalyzer.array_join_columns calculation
2019-07-08 23:06:17 +03:00
Alexey Milovidov
e07235e294
Addition to prev. revision
2019-07-08 21:55:06 +03:00
Alexey Milovidov
886e8ea0d4
Merge branch 'master' into pvs-studio-fixes-4
2019-07-08 19:58:42 +03:00
Nikolai Kochetov
209793c981
Merged with master.
2019-07-08 16:00:54 +03:00
Nikolai Kochetov
472f32f718
Remove ThreadGroupThreadPoolCallbacks
2019-07-08 15:49:52 +03:00
Alexey Milovidov
f40b70884f
Two more fixes for PVS-Studio
2019-07-08 05:14:32 +03:00
Alexey Milovidov
4752dae9bb
Allowed unresolvable addresses in cluster configuration #5714
2019-07-08 04:43:41 +03:00
Alexey Milovidov
553e6a273e
Two more fixes for PVS-Studio
2019-07-08 03:51:43 +03:00
Vitaliy Zakaznikov
24a3726235
Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview
2019-07-07 20:03:14 -04:00
Vitaliy Zakaznikov
259a95a3da
* Updates to fix issues after the merge
2019-07-07 19:57:58 -04:00
Alexey Milovidov
bba2641bd0
A few fixes for PVS-Studio
2019-07-08 02:25:15 +03:00
Nikita Lapkov
e935cb08a8
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-07-07 01:06:10 +00:00
Nikita Lapkov
3828684f7a
style
2019-07-06 20:42:03 +00:00
Nikita Lapkov
ef1d84b35a
do not run trace collector without trace_log. do not run query profilers without trace collector.
2019-07-06 20:29:00 +00:00
Alexey Milovidov
338c0d27ca
Added "os_thread_priority" setting
2019-07-06 21:02:28 +03:00
Nikita Lapkov
17e3542a5a
refactor
2019-07-05 22:35:09 +00:00
Nikita Lapkov
aaea6cbfc9
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-07-05 21:37:31 +00:00
alexey-milovidov
78c61ab772
Merge pull request #5890 from yandex/dns-cache-updater-allow-drift
...
Allow time drift in DNSCacheUpdater for natural randomization
2019-07-05 21:27:24 +03:00
Alexey Milovidov
0225cb0089
ThreadStatus: removed bad and questionable code
2019-07-05 17:15:05 +03:00
Nikita Lapkov
b8585a5630
refactor and comments
2019-07-05 13:48:47 +00:00
CurtizJ
a49112a14e
Merge branch 'master' of https://github.com/yandex/ClickHouse into order-by-efficient
2019-07-05 16:41:48 +03:00
Alexey Milovidov
5c3cd40db3
Allow time drift in DNSCacheUpdater for natural randomization
2019-07-05 16:20:21 +03:00
alexey-milovidov
2469ec1af3
Merge pull request #5857 from CurtizJ/dns-cache
...
Implement dns cache with asynchronous update.
2019-07-05 15:56:26 +03:00
alexey-milovidov
8b62c96989
Merge pull request #5859 from 4ertus2/joins
...
Fix FULL|RIGHT JOIN with nulls in right table's keys
2019-07-05 14:23:35 +03:00
CurtizJ
410b62f7fa
Merge branch 'clickhouse-4013' of https://github.com/anrodigina/ClickHouse into order-by-efficient
2019-07-05 13:48:04 +03:00
Nikita Lapkov
0f579860f7
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-07-04 22:13:51 +00:00
Gleb Novikov
71c2ca0fe9
Merge branch 'master' into table-constraints
2019-07-04 22:40:00 +03:00
Nikolai Kochetov
72afe9b842
Fix heap-use-after-free in ClusterCopier caused by watch which try to use already removed copier object.
2019-07-04 17:48:40 +03:00
chertus
8dc6810799
do not save null bitmaps for blocks without nulls
2019-07-04 15:38:54 +03:00
chertus
301345724a
use better data types
2019-07-04 15:12:39 +03:00
chertus
4759e8632e
fix crash and update test results
2019-07-04 14:50:32 +03:00
alesapin
a0496da05f
Merge branch 'master' of github.com:yandex/ClickHouse into fix_fetch_of_existing_part
2019-07-04 12:46:54 +03:00
chertus
73d6784c59
join right table nulls
2019-07-03 22:06:34 +03:00
CurtizJ
187812a00e
cleanup
2019-07-03 21:34:37 +03:00
CurtizJ
80e96995ae
Merge branch 'master' of https://github.com/yandex/ClickHouse into dns-cache
2019-07-03 21:27:43 +03:00
CurtizJ
35ad1a3b6b
implement dns cache with asynchronous update
2019-07-03 19:26:22 +03:00
alesapin
3925a3bd13
Generalize check query
2019-07-03 16:17:19 +03:00
alexey-milovidov
d81ae49f2c
Merge pull request #5755 from 4ertus2/bugs
...
Fix wrong ColumnConst.isColumnNullable()
2019-07-03 02:06:07 +03:00
alexey-milovidov
de92b9854e
Merge pull request #5838 from 4ertus2/joins
...
Joins refactoring: extract joinDispatch into own file
2019-07-03 01:55:45 +03:00
alexey-milovidov
8d4af1bd33
Update joinDispatch.h
2019-07-03 01:55:36 +03:00
alexey-milovidov
1d582c92a7
Merge pull request #5842 from yandex/revert-questionable-code-query-priorities
...
Fixed wrong code in QueryPriorities
2019-07-03 01:53:07 +03:00
Alexey Milovidov
6fba717d50
Fixed wrong code in QueryPriorities
2019-07-02 23:21:31 +03:00
Alexey Milovidov
ffaaf93c49
Compatibility with old compiler (gcc-7)
2019-07-02 20:24:22 +03:00
chertus
207145025c
Join.h refactoring: extract joinDispatch into own file
2019-07-02 17:38:31 +03:00
chertus
8932dc9c23
minpr perf improvement
2019-07-02 15:31:20 +03:00
Vitaliy Zakaznikov
b5120931d5
Merge branch 'master' of https://github.com/yandex/ClickHouse into liveview
2019-07-01 18:12:31 -04:00
Nikita Lapkov
5286ab97fd
refactor and comments
2019-07-01 22:11:11 +00:00
Vitaliy Zakaznikov
a363189dfc
Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview
2019-07-01 18:05:14 -04:00
Nikita Lapkov
9641d058d0
Merge remote-tracking branch 'upstream/master' into update_libunwind
2019-07-01 21:11:26 +00:00
alexey-milovidov
c43dfce041
Merge pull request #5382 from abyss7/issue-5286
...
Add virtual columns to Kafka Engine tables
2019-07-01 21:30:09 +03:00
chertus
5df4ad0f28
Merge branch 'master' into bugs
2019-07-01 14:49:01 +03:00
chertus
0c634129da
add IColumn.isNullable()
2019-07-01 14:44:19 +03:00
Maxim Sabyanin
663aab6f5b
complete ExternalLoader method's implementations
2019-06-30 23:04:21 +03:00
Alexey Milovidov
33cff5ee0f
Merge remote-tracking branch 'origin/master' into sanych73-prepared_statements
2019-06-30 17:24:15 +03:00
proller
a69990ce27
CLICKHOUSE-4514 Unique query_id among all users ( #5430 )
...
* CLICKHOUSE-4514 Unique query_id among all users
* try 1
* Fix
* fix
* use condvar
* fix style
* Update ProcessList.cpp
2019-06-30 16:17:27 +03:00
alexey-milovidov
18535590ce
Merge pull request #5802 from CurtizJ/upstream/systemlog-flushing
...
Fix shutdown of SystemLogs
2019-06-30 15:51:35 +03:00
Gleb Novikov
a146b7383e
Merge branch 'master' into table-constraints
2019-06-30 11:32:02 +02:00
CurtizJ
1a8695ffd9
fix shutdown of system_logs
2019-06-30 04:56:16 +03:00
Alexey Milovidov
725bcd9d02
Merge branch 'master' into sanych73-prepared_statements
2019-06-30 02:59:37 +03:00
Alexey Milovidov
88fc72f0b9
Merge branch 'feature/bloom_filter' of https://github.com/zhang2014/ClickHouse into zhang2014-feature/bloom_filter
2019-06-29 20:44:11 +03:00
Alexey Milovidov
90898905e0
Allow to DROP database with Dictionary engine
2019-06-29 20:27:32 +03:00
Alexey Milovidov
de8a15b5f4
Removed unused method
2019-06-29 20:19:46 +03:00
Alexey Milovidov
a643f2f75e
Merge branch 'master' into sanych73-prepared_statements
2019-06-29 15:51:56 +03:00
alexey-milovidov
fe542e26f8
Merge pull request #5685 from CurtizJ/upstream/systemlog-flushing
...
Fix race condition in flushing system log in another way.
2019-06-29 15:46:22 +03:00
Nikita Lapkov
2a131185b0
Merge remote-tracking branch 'upstream/master' into update_libunwind
2019-06-28 18:20:23 +00:00
Nikita Lapkov
f8d2b5effd
introduce Backtrace class
2019-06-28 18:06:38 +00:00
alexey-milovidov
18659e367e
Merge pull request #5758 from zlobober/bool_masks
...
Extend KeyCondition interface so that it returns BoolMask.
2019-06-28 14:51:52 +03:00
alexey-milovidov
6e77fc4abe
Merge pull request #5775 from yandex/lfalloc2mimalloc
...
Use mimalloc instead of lfallocator
2019-06-28 14:48:18 +03:00
chertus
f19dee706a
move IColumn.isColumnConst() outside of interface
2019-06-27 22:28:52 +03:00
Alexey Milovidov
3c4784a466
Removed obsolete undocumented embedded dictionaries that were used by Yandex.Metrica
2019-06-27 22:18:28 +03:00
chertus
db7c8748e9
remove IColumn.isColumnNullable()
2019-06-27 21:50:20 +03:00
Danila Kutenin
e67431e455
Use mimalloc instead of lfallocator
2019-06-27 18:13:19 +03:00
Maxim Akhmedov
2cacc3cfd2
CHYT-142: extend KeyCondition interface so that it returns BoolMask.
2019-06-27 16:31:33 +03:00
chertus
68034103bb
fix arrayIndex for new columns's isNullable
2019-06-27 15:49:08 +03:00
chertus
65c0d23efa
better casts to ColumnNullable
2019-06-26 20:20:33 +03:00
alesapin
b7f173ad2c
Execute some distributed DDL queries on leader
2019-06-26 17:52:20 +03:00
Nikita Lapkov
7cff36fbfc
Merge remote-tracking branch 'upstream/master' into query-poor-mans-profiler
2019-06-26 11:46:04 +00:00
Nikolai Kochetov
f9b29bfdd2
Merged with master.
2019-06-25 20:00:54 +03:00
Nikolai Kochetov
3bee30a215
Update PipelineExecutor.
2019-06-25 19:41:11 +03:00
Nikolai Kochetov
b2a3835195
Unify streams for SourceFromInputStream.
2019-06-25 19:41:06 +03:00
Nikolai Kochetov
821d520a52
Fix limit by offset.
2019-06-25 19:41:06 +03:00
Nikolai Kochetov
96174e90b0
Fix build.
2019-06-25 19:41:00 +03:00
Nikita Vasilev
7079c91a0e
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-06-25 16:34:11 +03:00
Nikita Vasilev
7b7517ff85
Merge remote-tracking branch 'upstream/master' into nikvas0/index_mutate
2019-06-24 16:44:44 +03:00
Ivan Lezhankin
0917573493
Merge remote-tracking branch 'upstream/master' into issue-5286
2019-06-24 14:42:58 +03:00
proller
1ac09fa721
Split Common/config.h by libs (dbms) ( #5715 )
2019-06-24 14:17:15 +03:00
CurtizJ
53634a324e
fix error with uninitialized system_logs
2019-06-21 22:24:30 +03:00
CurtizJ
ac3072cd9b
better shutdown of system_logs
2019-06-21 20:25:47 +03:00
alexey-milovidov
606b074a4b
Merge pull request #5659 from yandex/ignore-mutation-limits
...
Ignore query execution limits and limits for max parts size for merge while executing mutations.
2019-06-21 02:14:41 +03:00
CurtizJ
25cbc901ed
fix deadlock at flushing on shutdown
2019-06-20 20:38:16 +03:00
stavrolia
aff92c263e
Make setting join_use_nulls get no effect for types that cannot be inside Nullable
2019-06-20 16:13:46 +03:00
Igr Mineev
23049ac9e8
Add mergetree part move in background.
2019-06-19 20:56:41 +03:00
CurtizJ
5e6ceef224
fix race condition in flushing system log
2019-06-19 19:50:17 +03:00
CurtizJ
047ee38838
fix race condition in flushing system log
2019-06-19 18:38:06 +03:00
zhang2014
a50aea09f1
fix float in bloom filter
2019-06-19 23:13:21 +08:00
zhang2014
d145295163
convert type with condition
2019-06-19 23:12:06 +08:00
zhang2014
6c8ff6dc31
add some test
2019-06-19 23:12:05 +08:00
zhang2014
f52b16e1e1
support bloom filter for any type
2019-06-19 23:12:05 +08:00
CurtizJ
bb95d9a860
fix race condition in flushing system log
2019-06-19 15:28:34 +03:00
Ivan Lezhankin
9fd048cdbd
Allow to select virtual columns in materialized view
2019-06-18 19:32:37 +03:00
Ivan Lezhankin
436052c67b
Merge branch 'master' into issue-5286
2019-06-18 16:03:29 +03:00
CurtizJ
2a04125360
fix ignore_limits option
2019-06-18 01:07:16 +03:00
Vitaliy Zakaznikov
51bf8a1baa
Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview
2019-06-17 12:42:31 -04:00
alesapin
fd3abbe93d
Merge pull request #4935 from zhang2014/feature/support_system_replicas
...
Support system replicas queries for distributed
2019-06-17 15:30:30 +03:00
alesapin
e45d727e9d
Merge pull request #4558 from podshumok/distributred-timeout
...
Distributed and remote timeouts
2019-06-17 13:58:17 +03:00
Alexey Milovidov
88c35d541d
Merge branch 'master' into sanych73-prepared_statements
2019-06-16 23:53:31 +03:00
Alexey Milovidov
413b780b65
Various fixes for PVS-Studio
2019-06-16 21:13:39 +03:00
Alexey Milovidov
02034c5d91
Merging
2019-06-16 20:32:37 +03:00
Alexey Milovidov
864dacd112
Merging
2019-06-16 19:47:47 +03:00
Alexey Milovidov
f98d0a108f
Removed useless header file
2019-06-16 15:16:16 +03:00
Vitaliy Zakaznikov
abc7c3f6c1
Merge branch 'master' of https://github.com/vzakaznikov/ClickHouse into liveview
2019-06-15 21:22:28 -04:00
Alexey Milovidov
7514674447
Merge remote-tracking branch 'origin/master' into sanych73-prepared_statements
2019-06-16 02:40:17 +03:00
Alexey Milovidov
f38855fe61
Merge branch 'master' into sanych73-prepared_statements
2019-06-16 02:39:55 +03:00
alexey-milovidov
39c6fbc324
Merge pull request #5567 from vitlibar/really-lazy-dictionary-load
...
Non-blocking loading of external dictionaries
2019-06-15 22:15:53 +03:00
Alexey Milovidov
b079631f61
Fixed tests
2019-06-15 21:22:48 +03:00
alexey-milovidov
a52e13b891
Merge pull request #5640 from yandex/use-ipv6-in-system-tables
...
Adopted IPv6 data type in system tables; unified client info columns in system.processes and system.query_log
2019-06-15 21:21:24 +03:00
Alexey Milovidov
fad6013270
Fixing query parameters
2019-06-15 20:52:53 +03:00
Alexey Milovidov
a999cb4fbc
Merge branch 'master' into sanych73-prepared_statements
2019-06-15 17:22:01 +03:00
Alexey Milovidov
d8f76152d5
Adopted IPv6 data type in system tables; unified client info columns in system.processes and system.query_log
2019-06-15 17:20:32 +03:00