Commit Graph

9123 Commits

Author SHA1 Message Date
Alexander Tokmakov
64975c08e7 fix 2021-01-14 13:33:39 +03:00
alexey-milovidov
bf8d58d2e8
Merge pull request #18723 from ucasFL/select-all
add SELECT ALL syntax
2021-01-14 11:53:09 +03:00
alexey-milovidov
49ad73b9bc
Merge pull request #19013 from ClickHouse/tavplubix-patch-2
Fix misleading error message while inserting in a table function
2021-01-14 11:42:06 +03:00
alexey-milovidov
2ca185c9f9
Merge pull request #16995 from sundy-li/alias_column_partition_prune
Add optimize_respect_aliases
2021-01-14 11:30:45 +03:00
alexey-milovidov
53299cc17b
Update ColumnAliasesVisitor.cpp 2021-01-14 11:26:04 +03:00
Nikolai Kochetov
7b33ad5e44
Merge pull request #19010 from ClickHouse/fix-insert-lc-to-tiny-log
Fix insert LC to TinyLog
2021-01-14 11:25:38 +03:00
alesapin
bfc27254b2 Avoid redundant exception while dropping part 2021-01-14 11:07:13 +03:00
alexey-milovidov
6d79068a0f
Merge pull request #18981 from ClickHouse/disable-optimize-out-of-any
Disable optimize out of any
2021-01-14 10:12:55 +03:00
alexey-milovidov
2c8ce7d94e
Merge pull request #19019 from ClickHouse/group-uniq-array-enum
Fix return type of groupUniqArray
2021-01-14 10:11:44 +03:00
alesapin
c1732ef1b5
Merge pull request #19011 from ClickHouse/fix_operators_escaping
Fix manipulators for common string types
2021-01-14 10:08:16 +03:00
Kruglov Pavel
fedfcb78e1
Merge pull request #18791 from sundy-li/bitmap64-contains
Add [UInt8, UInt16, UInt32, UInt64] arguments types support for bitmapTransform, bitmapSubsetInRange, bitmapSubsetLimit, bitmapContains functions
2021-01-14 02:18:42 +03:00
Anton Popov
4dd9165934
Merge pull request #18552 from spongedu/support_exists_view_v3
support EXISTS VIEW syntax
2021-01-14 01:23:50 +03:00
Anton Popov
e40f7df4d7
Update InterpreterExistsQuery.cpp 2021-01-14 01:22:15 +03:00
alexey-milovidov
3b02a3ef02
Merge pull request #18976 from ClickHouse/fix_terminate_when_not_enough_memory
Finally get rid of allocations in ThreadPool::worker(...)
2021-01-13 23:48:46 +03:00
alexey-milovidov
ab15a936e4
Merge pull request #18998 from ucasFL/comment
fix some wrong words in comment
2021-01-13 23:46:53 +03:00
Alexey Milovidov
d27e04997d More tests 2021-01-13 21:13:52 +03:00
Alexander Tokmakov
5f0f8ae3cd fix duplicate UUIDs of LiveView on server startup 2021-01-13 21:13:46 +03:00
alesapin
2683bbc0f7 Disable lint for test 2021-01-13 18:35:35 +03:00
Nikita Mikhailov
ded35fe5b0 delete 2021-01-13 18:15:32 +03:00
Nikolai Kochetov
33d007dc46 Fix function ignore with LowCardinality argument. 2021-01-13 17:45:19 +03:00
tavplubix
94c0433d9f
Update InterpreterInsertQuery.cpp 2021-01-13 16:55:34 +03:00
Alexander Tokmakov
6c4be506fd add test 2021-01-13 16:43:42 +03:00
Nikolai Kochetov
da0cb8d47f Added comment. 2021-01-13 16:32:27 +03:00
ygrek
8f2a830d83
add zstd long range option (#17184)
* add zstd long compression option

* tests: add zstd long read-write test

Co-authored-by: Joris Giovannangeli <joris.giovannangeli@ahrefs.com>
Co-authored-by: ip <igor@ahrefs.com>
2021-01-13 16:22:59 +03:00
Alexey Milovidov
a18d5320ca Merge branch 'master' into disable-optimize-out-of-any 2021-01-13 15:51:10 +03:00
sundyli
e9a18fbd3a
Update FunctionsBitmap.h 2021-01-13 20:49:06 +08:00
sundyli
073379627c
Update FunctionsBitmap.h 2021-01-13 20:47:40 +08:00
alesapin
c84a8c4b16 Fix manipulators for common string types 2021-01-13 15:47:34 +03:00
Nikolai Kochetov
12f3b22623 Do not skip streams after serializeBinaryBulkStatePrefix. 2021-01-13 15:20:10 +03:00
Alexander Tokmakov
73e96250a8 add comments 2021-01-13 15:19:41 +03:00
Alexander Tokmakov
a6510cc4b7 Merge branch 'master' into fix_terminate_when_not_enough_memory 2021-01-13 14:05:54 +03:00
alesapin
c97469773d
Merge pull request #18969 from ClickHouse/fix_drop_part_deduplication
Fix DROP PART query break deduplication
2021-01-13 11:50:26 +03:00
feng lv
d5181b984a fix some wrong words in comment 2021-01-13 08:38:19 +00:00
alesapin
07431a6494
Merge pull request #18980 from ClickHouse/fix-expressions-merge
Fix expressions merge
2021-01-13 11:16:01 +03:00
alesapin
73e536a074
Merge pull request #18928 from ClickHouse/more_checks_in_writer_wide
More checks in merge tree writer wide
2021-01-13 09:59:45 +03:00
alesapin
48ad4dad5b
Merge pull request #18964 from ClickHouse/more-info-for-polling-queue-exception
Fix error Task was not found in task queue
2021-01-13 09:58:18 +03:00
templarzq
8b98b467b6
Update ColumnAggregateFunction.cpp 2021-01-13 13:57:42 +08:00
templarzq
c310f69dc3
Update ColumnAggregateFunction.cpp 2021-01-13 10:35:33 +08:00
Nikita Mikhailov
e1afae4492 just test 2021-01-13 00:49:11 +03:00
alexey-milovidov
781a1110bc
Update ColumnAliasesVisitor.h 2021-01-12 23:24:18 +03:00
Alexey Milovidov
a6296912f3 Fix incomplete code 2021-01-12 22:58:54 +03:00
Nikolai Kochetov
74cdf98e8f Try to fix ActionsDAG::merge. 2021-01-12 21:58:05 +03:00
Alexander Tokmakov
111f4d49e3 remove unread data limit from PeekableReadBuffer 2021-01-12 21:55:12 +03:00
Nikolai Kochetov
1937659450 Add more info for ActionsDAG 2021-01-12 21:47:54 +03:00
Nikolai Kochetov
1f2a90d321 Remove debug code. 2021-01-12 21:41:11 +03:00
Nikolai Kochetov
af79c6ca9b Remove debug code. 2021-01-12 21:40:07 +03:00
Alexey Milovidov
c51df126f1 Disable "optimize_move_functions_out_of_any" by default #18973 2021-01-12 19:46:18 +03:00
Alexander Tokmakov
ff6c3c75c2 add protection from unsafe allocations 2021-01-12 18:41:24 +03:00
Nikolai Kochetov
0aad1de330 Try fix Task was not found in task queue 2021-01-12 18:20:56 +03:00
alexey-milovidov
aa6e827d8b
Update TreeRewriter.cpp 2021-01-12 16:54:11 +03:00
Nikolai Kochetov
3b95ee8e60 Print log in case of exception in PollingQueue 2021-01-12 16:12:14 +03:00
Nikolai Kochetov
24503267d5 Print log in case of exception in PollingQueue 2021-01-12 15:42:18 +03:00
alesapin
dead1016d6 Fix deduplication block names parsing 2021-01-12 13:55:02 +03:00
sundy-li
ad01534bd5 Merge branch 'master' into alias_column_partition_prune 2021-01-12 18:28:30 +08:00
alexey-milovidov
2c71b997de
Merge pull request #18464 from hexiaoting/dev_fp_as_pk
Disallow floating point as partition key
2021-01-12 13:08:41 +03:00
Nikolai Kochetov
c61e9a655a Print log in case of exception in PollingQueue 2021-01-12 13:01:19 +03:00
sundy-li
7cfbc90fa5 Fix typo 2021-01-12 10:00:03 +00:00
sundy-li
e6351cf966 Add UInt64 Support for bitmapTransform/bitmapSubsetInRange/bitmapSubsetLimit 2021-01-12 17:13:43 +08:00
alesapin
f3e55183ad Better test and check 2021-01-12 11:46:31 +03:00
tavplubix
1d6bfe8ad7
Merge pull request #18944 from ClickHouse/fix_mutation_commands_escaping
Fix mutations text serialization
2021-01-12 11:29:24 +03:00
alesapin
5ae31b8068 Slightly relax check 2021-01-12 10:59:14 +03:00
alesapin
a7db584b36
Merge pull request #18953 from ClickHouse/try-to-remove-remove-from-actions-dag
Try to remove ActionsDAG::removeColumn
2021-01-12 10:22:09 +03:00
sundy-li
20ce82b86d Better exceptions 2021-01-12 14:52:31 +08:00
sundy-li
72e9484dac Fix a big bug 2021-01-12 14:52:31 +08:00
sundy-li
9c3c1d13ab Add bitmapContains support for all UInt types 2021-01-12 14:52:31 +08:00
templarzq
36381ce35e
Update ColumnAggregateFunction.cpp 2021-01-12 14:36:26 +08:00
Nikolai Kochetov
5062823227
Merge pull request #18922 from ClickHouse/more-debug-info-for-polling-queue
Add more debug info to PollingQueue exception.
2021-01-11 21:49:23 +03:00
Nikolai Kochetov
24d462b018 Try to remove ActionsDAG::removeColumn 2021-01-11 19:15:03 +03:00
alexey-milovidov
f8473222c6
Merge pull request #18897 from azat/stress-tests-no-restart-replicas
Drop RESTART REPLICAS from stateless tests to avoid locking lots of mutexes
2021-01-11 18:53:01 +03:00
alesapin
e3a50d13a5 Add missed header 2021-01-11 17:51:23 +03:00
alesapin
b1c4e5b9f2 Fix mutations text escaping 2021-01-11 17:43:05 +03:00
tavplubix
6022311a37
Merge pull request #18285 from weeds085490/hotfix/abort_when_failed_to_init_ddlworker
exit clickhouse when failing to initialize zookeeper with logical err…
2021-01-11 17:04:33 +03:00
Nikolai Kochetov
ec70d7961b Try fix build. 2021-01-11 17:01:32 +03:00
fastio
8dde70b937 Bugfix: attach partition should reset the mutation 2021-01-11 21:26:43 +08:00
tavplubix
00d240853d
Merge pull request #18718 from zhang2014/fix/ISSUES-7690
ISSUES-7690 try fix nullable string type convert to decimal type
2021-01-11 16:18:56 +03:00
alesapin
c5df8f324c More checks in writer wide 2021-01-11 15:03:00 +03:00
tavplubix
213c653ef8
Merge pull request #17656 from bharatnc/ncb/ddl-worker-queue-table
add  system.distributed_ddl_queue table
2021-01-11 14:59:26 +03:00
alexey-milovidov
667dd0cf0c
Merge pull request #18912 from sundy-li/bitmapOrCardinality-nullfix
Fix bitmapOrCardinality using wrong variable
2021-01-11 14:28:46 +03:00
kssenii
38a9cba850 Fix 2021-01-11 10:55:38 +00:00
Nikolai Kochetov
45b28a6374 Add more debug info to PollingQueue exception. 2021-01-11 13:09:40 +03:00
Nikolai Kochetov
496690896c Add more debug info to PollingQueue exception. 2021-01-11 12:08:13 +03:00
Alexey Milovidov
42f63e14b5 Revert "Auto version update to [21.2.1.1] [54446]"
This reverts commit bc2593688e.
2021-01-11 11:32:52 +03:00
Nikolai Kochetov
ee094ed7fd
Merge pull request #18896 from amosbird/keyconditionalias
correct index analysis of WITH aliases
2021-01-11 11:13:28 +03:00
robot-clickhouse
bc2593688e Auto version update to [21.2.1.1] [54446] 2021-01-11 11:12:11 +03:00
templarzq
8704136300
Update ColumnAggregateFunction.cpp 2021-01-11 14:38:21 +08:00
feng lv
5f962015ca fix
fix style

fix build
2021-01-11 04:28:22 +00:00
sundy-li
9aa7c7ef09 Fix same bug in another function 2021-01-11 11:35:56 +08:00
sundy-li
893efab7c3 Fix AggregateFunctionGroupBitmapData bitmapOrCardinality using wrong variable 2021-01-11 11:35:56 +08:00
templarzq
7d1842cb19
Update ColumnAggregateFunction.cpp 2021-01-11 10:49:18 +08:00
templarzq
bf90fcc98e
Update ColumnAggregateFunction.cpp
fix warning
2021-01-11 10:40:03 +08:00
Alexey Milovidov
c7d4d12f72 Auto version update to [21.1.0] [54445] 2021-01-11 03:51:08 +03:00
Azat Khuzhin
56475774d3 Fix readability-static-definition-in-anonymous-namespace in DirectoryMonitor 2021-01-10 23:57:40 +03:00
Azat Khuzhin
2565d2ac44 Verify compressed headers while sending distributed batches
Before this patch the DirectoryMonitor was checking the compressed file
by reading it one more time (since w/o this receiver may stuck on
truncated file), while this is ineffective and we can just check the
checksums before sending.

But note that this may decrease batch size that is used for sending over
network.
2021-01-10 21:23:42 +03:00
Azat Khuzhin
946a126799 Add CheckingCompressedReadBuffer
Buffer for reading from a compressed file with just checking checksums
of the compressed blocks, without any decompression, so result can be
proxied.
2021-01-10 21:23:42 +03:00
kssenii
6ec59f1304 Update libpq, tiny fix 2021-01-10 15:38:46 +00:00
Azat Khuzhin
819b9d7d56 Add more metadata into distributed .bin files to avoid doing the same on sending
Before this patch StorageDistributedDirectoryMonitor reading .bin files
in batch mode, just to calculate number of bytes/rows, this is very
ineffective, let's just store them in the header (rows/bytes).
2021-01-10 18:17:15 +03:00
Azat Khuzhin
fce8b6b5ef Refactoring distributed header parsing 2021-01-10 18:17:15 +03:00
Azat Khuzhin
676bc83c6d Check per-block checksum of the distributed batch on the sender before sending
This is already done for distributed_directory_monitor_batch_inserts=1,
so let's do the same for the non batched mode, since otherwise in case
the file will be truncated the receiver will just stuck (since it will
wait for the block, but the sender will not send it).
2021-01-10 18:17:14 +03:00
kssenii
c6c6b2d23c Fix style and types check 2021-01-10 13:01:15 +00:00
kssenii
d952b0897e Minor adjustments 2021-01-10 12:06:18 +00:00