Commit Graph

1301 Commits

Author SHA1 Message Date
Nikolai Kochetov
fcde0d36bd
Merge pull request #10978 from ClickHouse/static-mutate
Try fix performance after static mutate.
2020-05-18 09:02:24 +03:00
Alexey Milovidov
f5072aab18 Fix error 2020-05-18 08:01:55 +03:00
Alexey Milovidov
719a3b5a2c Performance improvement for "sum" over nullable 2020-05-18 07:49:51 +03:00
Alexey Milovidov
6f0c78dfdd Vectorize "sum" function 2020-05-18 06:50:53 +03:00
alexey-milovidov
7efd2a825f
Merge pull request #10463 from ClickHouse/parallel-final
Parallel final
2020-05-18 05:20:18 +03:00
alexey-milovidov
327a48bcf9
Update AddingSelectorTransform.h 2020-05-18 05:19:08 +03:00
Alexey Milovidov
c2b6ed5e21 Whitespaces 2020-05-18 04:42:46 +03:00
Alexey Milovidov
4d1dddeee9 Merge branch 'random_string_utf8_function' of https://github.com/xolm/ClickHouse into xolm-random_string_utf8_function 2020-05-18 04:22:16 +03:00
Alexey Milovidov
b0a5ce7743 Enable clang-tidy for programs and utils 2020-05-18 04:19:50 +03:00
Alexey Milovidov
7b5dfd9c00 Wait for odbc-bridge with exponential backoff 2020-05-18 04:06:04 +03:00
alexey-milovidov
073dc2e1e3
Merge pull request #10986 from ClickHouse/try-fix-use-after-free-mergetree
Try to fix use-after-free error in MergeTree
2020-05-18 03:41:53 +03:00
Andrei Nekrashevich
770b720620 no reinterpret_cast 2020-05-18 02:58:19 +03:00
Nikolai Kochetov
aab2599fad Fix build. 2020-05-17 23:26:53 +03:00
alexey-milovidov
6f1d522b6a
Merge pull request #10980 from azat/database-atomic-fixes
Database atomic fixes
2020-05-17 23:25:56 +03:00
alexey-milovidov
3820075813
Merge pull request #10983 from azat/configure-librdkafka
Configure librdkafka (logging and thread names)
2020-05-17 23:25:18 +03:00
Andrei Nekrashevich
eba043aaf8 Merge branch 'master' into random_string_utf8_function 2020-05-17 22:53:42 +03:00
Alexey Milovidov
70c31cbdc4 Fix error 2020-05-17 22:44:31 +03:00
Alexey Milovidov
81a7930c3e Merge branch 'master' of github.com:yandex/ClickHouse into try-fix-use-after-free-mergetree 2020-05-17 22:42:34 +03:00
Alexey Milovidov
20dbd6c3ef Fix error 2020-05-17 22:41:49 +03:00
alexey-milovidov
ca1a9b890d
Revert "Try to fix use-after-free error in MergeTree" 2020-05-17 22:36:27 +03:00
alexey-milovidov
f7b1263d41
Merge pull request #10268 from ClickHouse/max-rows-to-sort
Added failing tests about "max_rows_to_sort" setting.
2020-05-17 22:21:30 +03:00
alexey-milovidov
8d3c37992a
Merge pull request #10533 from ClickHouse/alter-key-column-better-exception-message
Better exception message and error code for ALTER of key column #9078
2020-05-17 22:21:14 +03:00
alexey-milovidov
92686fea27
Merge pull request #10974 from ClickHouse/xolm-random_fixed_string_function
Merging  #10866
2020-05-17 22:20:53 +03:00
alexey-milovidov
76dfc37bbf
Merge pull request #10975 from ClickHouse/Potya-master
Merging #10856
2020-05-17 22:20:36 +03:00
Nikolai Kochetov
c8e7ea0d6c Try fix performance. 2020-05-17 21:55:49 +03:00
Azat Khuzhin
e3d69eea88 Configure thread names for librdkafka
First of all it is nice to have part of the table name in it.

And secondly, librdkafka uses pthread_setname_np(), but due to
glibc-compatibility it is a noop in clickhouse sources:

  # librdkafka uses rdk: prefix for thread names by default
  $ grep rdk /proc/$(pgrep clickhouse-serv)/task/*/comm
  # just in case:
  $ grep rdk /proc/*/task/*/comm
  $ grep rdk /proc/*/comm

  (gdb) disas pthread_setname_np
  Dump of assembler code for function pthread_setname_np:
     0x000000000c603250 <+0>:     xor    %eax,%eax
     0x000000000c603252 <+2>:     retq
  End of assembler dump.
2020-05-17 20:40:18 +03:00
Azat Khuzhin
dbe781451a Redirect librdkafka logs from stderr to clickhouse logger 2020-05-17 20:27:36 +03:00
Azat Khuzhin
fb6b19d57a Fix symlinking data directory for Atomic database 2020-05-17 17:14:51 +03:00
Azat Khuzhin
31035a3cd1 Allow relative path for renameat2 by using AT_FDCWD
Otherwise this will trigger logical error on CREATE TABLE with default
config.d overrides (path=./).
2020-05-17 17:02:03 +03:00
Andrei Nekrashevich
db07c9f5e9 fix 2020-05-17 16:22:52 +03:00
Andrei Nekrashevich
9d2801e0d8 fix 2020-05-17 16:07:37 +03:00
alexey-milovidov
7cf3538840
Merge pull request #10270 from ClickHouse/quota-key-in-client
Support quota_key for Native client
2020-05-17 14:09:40 +03:00
Nikolai Kochetov
29340d915a Try fix performance. 2020-05-17 13:51:52 +03:00
Azat Khuzhin
fdc4823065 Simplify min_insert_block_size_{rows,bytes}_for_materialized_views changed detection 2020-05-17 13:41:54 +03:00
alexey-milovidov
d3c9f5cb65
Update RowRef.h 2020-05-17 13:31:06 +03:00
Alexey Milovidov
90cd5d8a3c Remove unused header file 2020-05-17 13:27:13 +03:00
Azat Khuzhin
c1cf31f87d Introduce min_insert_block_size_{rows,bytes}_for_materialized_views
With tons of MATERIALIZED VIEW attached to one table pushing to this
views can be pretty memory consuming due to blocks squashing, add
ability to control this separatelly for MATERIALIZED VIEWs.

Plus squashing is useless if the underlying engine is Buffer().
2020-05-17 12:21:05 +03:00
alexey-milovidov
6c49967395
Merge pull request #10802 from PerformanceVision/offset_without_limit
Add the ability to set an OFFSET clause without a LIMIT
2020-05-17 12:06:22 +03:00
alexey-milovidov
6d34f24605
Merge branch 'master' into complex_key_direct 2020-05-17 11:55:01 +03:00
alexey-milovidov
103f66e13f
Merge pull request #10968 from ClickHouse/fix_database_atomic_terminate_called
Fix exception from destructor in DatabaseAtomic
2020-05-17 11:45:37 +03:00
Alexey Milovidov
d1d070fa8d More type aliases 2020-05-17 11:35:08 +03:00
Alexey Milovidov
6029b6d7bd Added REAL; remove Int1/2/4; remove LONG because it has conflict meaning in MySQL and MS Access 2020-05-17 11:22:59 +03:00
Alexey Milovidov
c701ccbec0 Merge branch 'master' of https://github.com/Potya/ClickHouse into Potya-master 2020-05-17 11:19:37 +03:00
alexey-milovidov
1bceb48e65
Merge pull request #10920 from ClickHouse/fix-notNullIn-with-null
Fix not null in with null
2020-05-17 11:16:43 +03:00
alexey-milovidov
7ee35f102d
Merge pull request #10867 from azat/dist-INSERT-load-balancing
Respect prefer_localhost_replica/load_balancing on INSERT into Distributed
2020-05-17 11:11:35 +03:00
Alexey Milovidov
7e7fd41266 Fix build + improvement 2020-05-17 11:00:10 +03:00
Alexey Milovidov
157d0b612c Merge branch 'random_fixed_string_function' of https://github.com/xolm/ClickHouse into xolm-random_fixed_string_function 2020-05-17 10:54:48 +03:00
Alexey Milovidov
7971f62776 Fix test 2020-05-17 10:47:53 +03:00
alexey-milovidov
2ec9d1e9ab
Merge pull request #10512 from ClickHouse/fix-ubsan-decimal-parse
Fix UBSan report in Decimal parse
2020-05-17 10:46:03 +03:00
Alexey Milovidov
c33373f7fb Minor modification 2020-05-17 10:43:23 +03:00
Alexey Milovidov
f2d438b79f Implement max_rows_to_sort again 2020-05-17 10:27:55 +03:00
Alexey Milovidov
de8120d69a Improvement; added a test 2020-05-17 10:17:54 +03:00
Alexey Milovidov
c06995c03c Whitespaces 2020-05-17 09:47:53 +03:00
alexey-milovidov
5297d1e86a
Merge pull request #10928 from vitlibar/check-access-once-for-dictget
dictGet() checks access once
2020-05-17 09:27:59 +03:00
alexey-milovidov
421eb6df8f
Merge pull request #10970 from ClickHouse/try-fix-use-after-free-mergetree
Try to fix use-after-free error in MergeTree
2020-05-17 09:09:45 +03:00
alexey-milovidov
a3346e9331
Merge pull request #10912 from ClickHouse/static-mutate
Static mutate
2020-05-17 09:05:35 +03:00
alexey-milovidov
261410ff58
Merge pull request #10829 from ClickHouse/variance-nonnegative
Ensure that variance is nonnegative
2020-05-17 09:04:27 +03:00
alexey-milovidov
ca1ded9124
Merge pull request #10937 from ClickHouse/input-format-use-header-by-default
Enable input_format_with_names_use_header by default
2020-05-17 09:00:05 +03:00
Alexey Milovidov
397859ccb8 Fix error 2020-05-17 08:45:20 +03:00
Alexey Milovidov
f4ac1eec04 Merge branch 'master' into quota-key-in-client 2020-05-17 08:15:13 +03:00
alexey-milovidov
7a220b7659
Update DataTypesDecimal.cpp 2020-05-17 08:12:33 +03:00
Andrei Nekrashevich
c4ff7eec01 fix 2020-05-17 07:49:41 +03:00
Alexey Milovidov
9fcfe5fb14 Better exception message and error code for ALTER of key column #9078 2020-05-17 07:46:25 +03:00
Andrei Nekrashevich
675509ed23 Added function randomStringUTF8 2020-05-17 07:43:53 +03:00
alexey-milovidov
0fd0711b51
Merge pull request #10910 from filimonov/kafka_drop_hang_fix
Fix for the hang during deletion of engine=Kafka
2020-05-17 07:13:54 +03:00
Alexey Milovidov
88ee76186b Try to fix use-after-free error in MergeTree 2020-05-17 07:12:33 +03:00
alexey-milovidov
0d76091fd9
Merge pull request #10940 from azat/dist-send-partially-written-read-fix
Avoid sending partially written files by the DistributedBlockOutputStream
2020-05-17 06:53:51 +03:00
Alexey Milovidov
a5d35bfdfb Better code 2020-05-17 06:18:52 +03:00
Alexey Milovidov
0636ea9f38 Add overflow check in Decimal parse 2020-05-17 06:16:58 +03:00
Alexey Milovidov
b156ac3cc1 Merge branch 'master' into fix-ubsan-decimal-parse 2020-05-17 05:42:24 +03:00
Alexey Milovidov
2df8c4f62e Merge branch 'master' into input-format-use-header-by-default 2020-05-17 05:40:01 +03:00
Alexey Milovidov
3320fdce57 Fix error 2020-05-17 05:39:02 +03:00
alexey-milovidov
19b4e68ecf
Merge pull request #10953 from azat/write-after-close
[RFC] Add an assert() in case of write into a file after close
2020-05-17 05:05:05 +03:00
Alexey Milovidov
7df4748753 Merge branch 'master' into variance-nonnegative 2020-05-17 05:00:59 +03:00
alexey-milovidov
ce8e3e478e
Merge pull request #10927 from azat/gcc10-build-fix
gcc10 unbundled build fixes
2020-05-17 04:57:42 +03:00
Alexander Tokmakov
791ccd8b05 never throw from destructor 2020-05-17 04:01:26 +03:00
alexey-milovidov
2e2ef08619
Merge pull request #10967 from myrrc/gtest-fix
gtest macro find fix
2020-05-17 03:49:01 +03:00
alexey-milovidov
b6b1947de0
Merge pull request #10964 from ObjatieGroba/bugfix_raw_column_size
Fix incorrect Column byte size
2020-05-17 03:33:10 +03:00
myrrc
a56aba0211 gtest macro find fix 2020-05-17 02:38:30 +03:00
Gleb Novikov
1a25ac6e1f Merge branch 'master' into refactor-reservations 2020-05-16 23:34:45 +03:00
Gleb Novikov
45b84d491e small fixes of review remarks 2020-05-16 23:31:17 +03:00
Nikolai Kochetov
d948fd61d8 try fix tests. 2020-05-16 23:15:19 +03:00
Nikolai Kochetov
caab379602
Merge pull request #10932 from ClickHouse/pulling-executor
Add PullingPipelineExecutor.
2020-05-16 23:09:18 +03:00
Igor Mineev
ce451bf396 Fix incorrect Column byte size 2020-05-16 23:06:32 +03:00
Alexey Milovidov
e0aaddb262 Fixed error 2020-05-16 22:55:38 +03:00
Alexey Milovidov
a9f64b4c1c Ensure that the variance is nonnegative 2020-05-16 22:55:38 +03:00
alesapin
d0b56a4c7d
Merge pull request #10887 from ClickHouse/vzakaznikov-add_alter_rename_column_to_distributed
Vzakaznikov add alter rename column to distributed
2020-05-16 12:54:32 +03:00
alesapin
be4037abb5
Merge pull request #10895 from ClickHouse/fix_multiple_renames
Fix error in multiple rename commands in a single query.
2020-05-16 12:54:04 +03:00
Nikolai Kochetov
7309cbbfda Try fix build. 2020-05-16 10:23:59 +03:00
Nikolai Kochetov
c957154fef
Merge pull request #10952 from ClickHouse/fix-distributed-queries-incompatibility-19.16-20.1
Fix incompatibility of two-level aggregation between 19.16 and 20.1
2020-05-16 10:17:15 +03:00
Azat Khuzhin
ec1aff245a Add an assert() in case of write into a file after close 2020-05-16 01:13:15 +03:00
Azat Khuzhin
2498041cc1 Avoid sending partially written files by the DistributedBlockOutputStream 2020-05-16 01:00:42 +03:00
Azat Khuzhin
c059ee0085 Use is_trivial+is_standard_layout over is_pod (later is deprecated) 2020-05-16 00:00:38 +03:00
Azat Khuzhin
b7d46fe979 Add missing headers for libstdc++ from gcc10 2020-05-16 00:00:38 +03:00
tavplubix
cc4ddfd89e
Merge pull request #10901 from ClickHouse/merging_10554
Merging #10554
2020-05-15 23:23:02 +03:00
Mikhail Filimonov
405cce2c53 Another variant of fix. It looks like we do not need destructor at all 2020-05-15 22:19:21 +02:00
alexey-milovidov
5898f611da Merge pull request #10861 from traceon/contrib-openldap
Add OpenLDAP third-party library integration (system or contrib/build)
2020-05-15 23:13:23 +03:00
Nikolai Kochetov
8c2d0aa7c0 Fix comment. 2020-05-15 22:30:41 +03:00
Nikolai Kochetov
fb38c2a30b
Remove experimental_use_processors setting, part 1. (#10924)
Remove experimental_use_processors setting, part 1.
2020-05-15 22:28:10 +03:00
Nikolai Kochetov
5e7a35bbae Try simplify code. 2020-05-15 22:19:20 +03:00
Alexey Milovidov
485d37b043 Fix incompatibility of two-level aggregation between 19.16 and 20.1 2020-05-15 22:09:32 +03:00
Nikolai Kochetov
6aea9c9a21 Tru fix build. 2020-05-15 21:55:30 +03:00
Nikolai Kochetov
b8052f512a try fix tests. 2020-05-15 20:40:11 +03:00
Nikolai Kochetov
c4a07812f7 Try fix build. 2020-05-15 18:48:19 +03:00
alesapin
a504db3451 Fix typo 2020-05-15 18:11:13 +03:00
alesapin
97c2e549be
Merge pull request #10865 from azat/dist-dir-mon-fix
Fix ENOENT exception on current_batch.txt in DirectoryMonitor
2020-05-15 18:05:48 +03:00
Anton Popov
11b4bc7189
Merge pull request #10889 from CurtizJ/tuple-literal
Fix backward compatibility with tuples and distributed.
2020-05-15 15:39:03 +03:00
Vitaly Baranov
d92ac9ea47
Merge branch 'master' into RBAC-10 2020-05-15 14:12:43 +03:00
alesapin
ef1c7da4af
Merge pull request #10757 from ClickHouse/fix-parallel-mv
Fix parallel MV
2020-05-15 14:03:09 +03:00
Alexander Kuzmenkov
500b9bac03 fix config prefix 2020-05-15 13:48:55 +03:00
alesapin
26606dd640 Fix polymorphic parts 2020-05-15 13:36:35 +03:00
Nikolai Kochetov
3537c1a65e Added comment. 2020-05-15 13:26:24 +03:00
Nikolai Kochetov
af0328bf30 Fix log tables. 2020-05-15 13:17:07 +03:00
Nikolai Kochetov
70ce0149b1 Try fix build. 2020-05-15 13:10:13 +03:00
Nikolai Kochetov
ad42ba09c8 Fix log tables. 2020-05-15 12:48:57 +03:00
Артем Стрельцов
33d4ae89f2 fixed yandex synchonization error 2020-05-15 12:16:01 +03:00
Nikolai Kochetov
34ce5bec48 Try fix tests. 2020-05-15 12:06:21 +03:00
Артем Стрельцов
be731ad62e Merge branch 'master' of github.com:yandex/ClickHouse into complex_key_direct 2020-05-15 12:01:09 +03:00
Nikolai Kochetov
d84be03268 Fix tests. 2020-05-15 11:17:40 +03:00
Nikolai Kochetov
0344c9d9dc Fix build. 2020-05-15 11:09:50 +03:00
alexey-milovidov
985b83a228
Merge pull request #10903 from ClickHouse/lexer-unicode-whitespaces
Support for unicode whitespaces in queries.
2020-05-15 10:31:59 +03:00
Alexey Milovidov
7a20d95339 Enable input_format_with_names_use_header by default 2020-05-15 10:30:26 +03:00
Vitaly Baranov
201c88f64f Get dictionary and check access rights only once per each call of any function reading external dictionaries. 2020-05-15 03:14:14 +03:00
Artem Zuikov
8e8a2a17d6 build fixes 2020-05-15 03:01:31 +03:00
Ri
fc7afaa639
Bitonic sort on GPU (OpenCL) (#10232) 2020-05-15 03:01:14 +03:00
Nikolai Kochetov
681955661f Add PullingPipelineExecutor. 2020-05-15 00:03:38 +03:00
Ivan
21ce8dbbc3
Fix CH-over-YDB build (#10921) 2020-05-14 22:56:10 +03:00
Nikolai Kochetov
83d420e608 Try fix tests. 2020-05-14 21:21:35 +03:00
Alexander Kuzmenkov
a11c9a3a22
Update MongoDBDictionarySource.cpp 2020-05-14 21:18:37 +03:00
Alexander Kuzmenkov
8e532a5d1f
Update MongoDBDictionarySource.cpp 2020-05-14 21:17:15 +03:00
Alexey Milovidov
81a5d02628 Fix annoying "Arcadia" build 2020-05-14 20:05:55 +03:00
alexey-milovidov
519e6ce6f3
Merge pull request #10832 from ClickHouse/better-sanitizer
Better cooperation with sanitizers
2020-05-14 20:01:49 +03:00
alesapin
8eb27f6f13 Fix rename with compact parts 2020-05-14 19:56:13 +03:00
Nikolai Kochetov
b556b7c76e Fix notNullIn with NULL argument. 2020-05-14 17:21:38 +03:00
potya
dc4af074b2 Remove REAl and INT8, add some tests 2020-05-14 17:11:59 +03:00
tavplubix
a47bf09337
Merge pull request #10859 from ClickHouse/fix_watch_livelock_with_database_atomic
Fix livelock with WATCH queries and DatabaseAtomic
2020-05-14 15:11:41 +03:00
Alexander Kuzmenkov
99d50063f3 Support MongoDB URI 2020-05-14 14:36:49 +03:00
Vitaly Baranov
bf2f38881d Fix compilation. 2020-05-14 14:12:20 +03:00
Vitaly Baranov
c30587196a Add system tables for users, roles and grants. 2020-05-14 14:12:20 +03:00
Vitaly Baranov
b1f362b2dc Add system table for access types. 2020-05-14 14:12:20 +03:00
Vitaly Baranov
a14f322723 Add system tables for settings profiles. 2020-05-14 14:12:15 +03:00
alesapin
316773d853 Better comment 2020-05-14 13:30:53 +03:00
Mikhail Filimonov
6499d702f9 After review fixes 2020-05-14 12:15:38 +02:00
Nikolai Kochetov
4d22374f24 Merged with master. 2020-05-14 12:06:15 +03:00
Nikolai Kochetov
d68c385d35 Remove old code. 2020-05-14 11:59:15 +03:00
Nikolai Kochetov
471993b03f Fix build. 2020-05-14 11:56:27 +03:00
Mikhail Filimonov
a1013f1e71 Fix for the hang during deletion of engine=Kafka 2020-05-14 10:38:02 +02:00
Nikolai Kochetov
4d0503f021 Make IColumn::mutate() static. 2020-05-14 11:30:18 +03:00
Nikolai Kochetov
f65305878b
Destructive IAggregateFunction::insertResultInto and ColumnAggregateFunction::convertToValues (#10890)
* Destructive IAggregateFunction::insertResultInto and ColumnAggregateFunction::convertToValues

* Try fix build.

* Try fix build.

* Fix build.

* Make convertToValues static.

* fix build.

* Remove const casts.

* Added comment.

* Fix build.

* Fix build.

* Add test.

* Fix test.
2020-05-14 10:59:14 +03:00
Azat Khuzhin
52d73c7f45 Fix prefer_localhost_replica=0 and load_balancing for Distributed INSERT 2020-05-14 03:29:03 +03:00