Anton Popov
751d9e6a44
support nested in json type (wip)
2022-01-21 17:58:21 +03:00
Maksim Kita
6b9a5ab15e
TypeId name fix
2022-01-20 13:51:00 +00:00
Alexey Milovidov
56b25f4543
Review fixes
2022-01-17 04:14:16 +03:00
Alexey Milovidov
7848ea7d60
Allow insertFrom for ColumnFunction
2022-01-16 06:18:35 +03:00
Anton Popov
aa515b7126
support nested in json type (wip)
2021-12-23 15:28:40 +03:00
Raúl Marín
88b8fd8b60
Merge remote-tracking branch 'blessed/master' into libcxx13_take2
2021-12-23 09:16:19 +01:00
Dmitry Novik
38c1e81752
fixup
2021-12-21 22:00:08 +03:00
Dmitry Novik
56917ca0ff
Fix WriteBuffer initialization
2021-12-21 18:49:20 +03:00
mergify[bot]
7da6d8b310
Merge branch 'master' into fix_IP_conversion
2021-12-21 12:16:05 +00:00
Raúl Marín
36164a72c2
Missing include
2021-12-20 18:17:10 +01:00
Maksim Kita
20e4ce3314
Short circuit evaluation function throwIf support
2021-12-20 14:49:05 +03:00
mergify[bot]
4580af9f79
Merge branch 'master' into fix_segfault_object_used_after_move
2021-12-19 04:33:03 +00:00
N. Kolotov
b059154a81
Fixed segfault when smart pointer is dereferenced after move.
2021-12-18 23:13:42 +03:00
Anton Popov
99ebabd822
Merge remote-tracking branch 'upstream/master' into HEAD
2021-12-17 19:02:29 +03:00
Anton Popov
a70e5c1b2d
support nested in json type (wip)
2021-12-17 18:08:34 +03:00
Anton Popov
079b08a28a
support nested in json type (wip)
2021-12-16 14:42:12 +03:00
mergify[bot]
4300f77532
Merge branch 'master' into fix_IP_conversion
2021-12-14 20:12:34 +00:00
Anton Popov
ea67abf3f0
fix custom serializations in native protocol
2021-12-08 21:59:36 +03:00
Anton Popov
d8367334a3
Merge remote-tracking branch 'upstream/master' into HEAD
2021-12-08 18:26:19 +03:00
Azat Khuzhin
2b1789adc5
Pass through version for aggregate function from SerializationAggregateFunction too
...
Suggested-by: @kssenii
2021-12-05 21:45:07 +03:00
Azat Khuzhin
428e34d811
Fix versioning of aggregate functions (fixes performance tests)
2021-12-05 21:45:07 +03:00
Anton Popov
6f4d9a53b2
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-12-01 15:54:33 +03:00
Anton Popov
54f51444c0
Merge remote-tracking branch 'upstream/master' into HEAD
2021-12-01 15:49:02 +03:00
Anton Popov
63fceca6a8
support nested in json type (wip)
2021-12-01 05:59:56 +03:00
kssenii
be3b4ca8fe
Merge branch 'master' of github.com:ClickHouse/ClickHouse into versioning
2021-11-27 09:44:31 +00:00
alexey-milovidov
423d497b27
Merge pull request #31742 from CurtizJ/fix-map
...
Fix usage of `Buffer` table engine with type `Map`
2021-11-25 04:56:37 +03:00
Anton Popov
37350e007c
fix mutate of ColumnMap
2021-11-25 00:05:08 +03:00
Anton Popov
ccd78e3838
Merge remote-tracking branch 'upstream/master' into HEAD
2021-11-22 17:19:35 +03:00
mergify[bot]
a7ba3e23a0
Merge branch 'master' into fix-write-buffers
2021-11-22 11:24:27 +00:00
Alexey Milovidov
e898c6608c
Fix broken non-x86 builds
2021-11-20 15:58:44 +03:00
kssenii
37f482d478
Merge branch 'master' of github.com:ClickHouse/ClickHouse into versioning
2021-11-15 07:31:11 +00:00
avogar
c521a9131a
Small refactoring of WriteBiffer-s
2021-11-11 02:11:18 +03:00
Anton Popov
a20922b2d3
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-11-09 15:36:25 +03:00
mergify[bot]
4f6fd49266
Merge branch 'master' into fix_IP_conversion
2021-11-09 12:11:54 +00:00
Anton Popov
a7f219b3aa
better sampling in ColumnSparse and fix alter rename column
2021-11-08 21:25:31 +03:00
Anton Popov
84e914e05a
minor fixes near serializations
2021-11-05 01:46:00 +03:00
Anton Popov
46fa062a81
fix tests
2021-11-02 23:30:28 +03:00
Anton Popov
d50137013c
Merge remote-tracking branch 'upstream/master' into HEAD
2021-11-01 16:55:53 +03:00
Anton Popov
0099dfd523
refactoring of SerializationInfo
2021-10-29 20:21:02 +03:00
alexey-milovidov
69bc2a8d2a
Merge pull request #30780 from ClickHouse/remove-cruft
...
Remove cruft
2021-10-28 17:42:18 +03:00
Alexey Milovidov
8b4a6a2416
Remove cruft
2021-10-28 02:10:39 +03:00
jasperzhu
49dd69c6c9
adjust header files
2021-10-27 05:22:05 +05:30
jasperzhu
0217ed09ac
revise compile flag
2021-10-27 05:19:15 +05:30
jasperzhu
5ab55f7eaa
fixed function defect
2021-10-27 04:21:46 +05:30
jasperzhu
27f30dab89
remove function due to extra latency
2021-10-27 03:44:28 +05:30
jasperzhu
fb31410926
change to inline for bitmask generator
2021-10-27 00:05:47 +05:30
jasperzhu
1caff8a81c
fixed compile error
2021-10-26 22:12:21 +05:30
jasperzhu
911b9c3973
Improve function defect
2021-10-26 06:02:57 +05:30
jasperzhu
3d115536f5
Improve filter bitmask generator function all in one with sse/avx2/avx512
2021-10-26 01:39:09 +05:30
Maksim Kita
243be5028a
Merge pull request #30014 from jinjunzh/master
...
add x86 feature avx2/avx512 support for accelerating filter operation
2021-10-22 14:16:47 +03:00
vesslanjin
f607a5d0ab
remove branch in ColumnDecimal, same as pull req #29881
...
Co-authored-by: Zhu Jasper jasper.zhu@intel.com
Signed-off-by: vesslanjin <jun.i.jin@intel.com>
2021-10-20 07:40:06 -04:00
Anton Popov
d71ffc355a
Merge remote-tracking branch 'upstream/master' into HEAD
2021-10-18 15:18:22 +03:00
Anton Popov
e46396331d
better permute in ColumnSparse
2021-10-14 20:28:31 +03:00
Anton Popov
7aa6068fb2
Merge remote-tracking branch 'upstream/master' into HEAD
2021-10-14 19:44:08 +03:00
jasperzhu
f08dd0e8d8
modify flags definitions
2021-10-13 05:13:34 +05:30
jasperzhu
a1ab3b6606
Fixed code style issue
2021-10-12 22:44:37 +05:30
jasperzhu
8f349907fb
Fixed trailing whitespaces issue
2021-10-12 09:21:54 +05:30
jasperzhu
3be83a26d0
fixed Typos and Styles issues
2021-10-12 08:24:47 +05:30
jasperzhu
0ef2624408
add specific flags for compiling filter operation source files
2021-10-12 04:04:27 +05:30
jasperzhu
a3d629a5b5
add x86 feature avx2/avx512 support for filter implementation
2021-10-11 22:51:13 +05:30
Nikolai Kochetov
a95c28ec4b
Merge pull request #29898 from ClickHouse/remove-native-stream
...
Remove some more streams.
2021-10-10 21:01:16 +03:00
Vladimir C
3940382c2f
Remove defined(__POPCNT__) from column filter
2021-10-09 13:34:02 +03:00
vesslanjin
bed09ee68d
Whitespace fix
...
Signed-off-by: vesslanjin <jun.i.jin@intel.com>
2021-10-09 02:56:10 -04:00
vesslanjin
75af011068
use while instead of popcnt + for
...
Co-authored-by: Zhu Jasper jasper.zhu@intel.com
2021-10-08 14:58:23 -04:00
Nikolai Kochetov
340b53ef85
Remove some more streams.
2021-10-08 17:03:54 +03:00
Vladimir C
525df99893
Whitespace fix
2021-10-08 12:10:19 +03:00
Vladimir C
35feb08236
Whitespace changes
2021-10-08 12:03:55 +03:00
vesslanjin
383f3a3a20
Remove branchy code in filter operation with a better implementation with popcnt/ctz which have better performance
...
Co-authored-by: Zhu Jasper <jasper.zhu@intel.com>
2021-10-08 09:19:58 -04:00
Nikolai Kochetov
25e2ebac75
Merge pull request #29782 from azat/lc-concurrent-GROUP-BY-fix
...
Fix concurrent access to LowCardinality during GROUP BY (leads to SIGSEGV)
2021-10-07 16:27:53 +03:00
Vladimir C
4b80c6ff21
Merge pull request #29545 from CurtizJ/remove-permute
2021-10-07 11:07:34 +03:00
mergify[bot]
5b667d3cd5
Merge branch 'master' into fix_IP_conversion
2021-10-06 16:40:47 +00:00
Anton Popov
199ac31b48
Merge pull request #29683 from myrrc/improvement/tl-to-common
...
Non-recursive implementation for type list and its functions
2021-10-05 21:49:15 +03:00
Azat Khuzhin
342ec02664
Fix concurrent access to LowCardinality during GROUP BY (leads to SIGSEGV)
...
The problem is that GROUP BY can update saved_hash, which can be also
updated by subsequent update of a dictionary, and this will lead to
use-after-free.
You will find ASan report in `details`.
<details>
==24679==ERROR: AddressSanitizer: heap-use-after-free on address 0x604000615d20 at pc 0x000022cc8684 bp 0x7ffea6b5f850 sp 0x7ffea6b5f848
READ of size 8 at 0x604000615d20 thread T223 (QueryPipelineEx)
0 0x22cc8683 in DB::ReverseIndex<>::insert(StringRef const&) obj-x86_64-linux-gnu/../src/Columns/ReverseIndex.h
1 0x22cc0de1 in COW<DB::IColumn>::mutable_ptr<DB::IColumn> DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeImpl<char8_t>()::'lambda'()::operator()() const obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:540:39
2 0x22cc0de1 in COW<DB::IColumn>::mutable_ptr<DB::IColumn> DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeImpl<char8_t>() obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:570:23
3 0x22cb9c66 in COW<DB::IColumn>::mutable_ptr<DB::IColumn> DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeFrom()::'lambda'(auto)::operator()<char8_t>(auto) const obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:592:26
4 0x22cb9c66 in DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeFrom() obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:600:28
5 0x2500b897 in DB::ColumnLowCardinality::insertRangeFrom() obj-x86_64-linux-gnu/../src/Columns/ColumnLowCardinality.cpp:205:62
6 0x25a182f4 in DB::appendBlock(DB::Block const&, DB::Block&) obj-x86_64-linux-gnu/../src/Storages/StorageBuffer.cpp:470:23
7 0x25a182f4 in DB::BufferSink::insertIntoBuffer(DB::Block const&, DB::StorageBuffer::Buffer&) obj-x86_64-linux-gnu/../src/Storages/StorageBuffer.cpp:634:9
8 0x25a173cc in DB::BufferSink::consume(DB::Chunk) obj-x86_64-linux-gnu/../src/Storages/StorageBuffer.cpp:595:9
9 0x26d1c997 in DB::SinkToStorage::transform(DB::Chunk&) obj-x86_64-linux-gnu/../src/Processors/Sinks/SinkToStorage.cpp:18:5
0x604000615d20 is located 16 bytes inside of 40-byte region [0x604000615d10,0x604000615d38)
freed by thread T37 (QueryPipelineEx) here:
2 0x22cb9392 in boost::intrusive_ptr<DB::ColumnVector<unsigned long> >::~intrusive_ptr() obj-x86_64-linux-gnu/../contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:98:23
4 0x22cb9392 in COW<DB::IColumn>::mutable_ptr<DB::ColumnVector<unsigned long> >::operator=() obj-x86_64-linux-gnu/../src/Common/COW.h💯 57
5 0x22cb9392 in DB::ReverseIndex<>::tryGetSavedHash() const obj-x86_64-linux-gnu/../src/Columns/ReverseIndex.h:362:28
6 0x22cb9392 in DB::ColumnUnique<DB::ColumnString>::tryGetSavedHash() const obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:125:76
7 0x242eaed3 in DB::ColumnsHashing::HashMethodSingleLowCardinalityColumn<>::HashMethodSingleLowCardinalityColumn() obj-x86_64-linux-gnu/../src/Common/ColumnsHashing.h:287:50
8 0x242206c6 in void DB::Aggregator::executeImpl<>() const obj-x86_64-linux-gnu/../src/Interpreters/Aggregator.cpp:596:28
9 0x24148e99 in DB::Aggregator::executeOnBlock() const obj-x86_64-linux-gnu/../src/Interpreters/Aggregator.cpp:1004:9
10 0x26c24f3a in DB::AggregatingTransform::consume(DB::Chunk) obj-x86_64-linux-gnu/../src/Processors/Transforms/AggregatingTransform.cpp:539:33
11 0x26c2054e in DB::AggregatingTransform::work() obj-x86_64-linux-gnu/../src/Processors/Transforms/AggregatingTransform.cpp:500:9
previously allocated by thread T37 (QueryPipelineEx) here:
0 0xb6d44fd in operator new(unsigned long) (/src/ch/tmp/upstream/clickhouse-asan+0xb6d44fd)
1 0x11b78580 in COW<DB::IColumn>::mutable_ptr<> COWHelper<>::create<unsigned long&>(unsigned long&) (/src/ch/tmp/upstream/clickhouse-asan+0x11b78580)
2 0x22cbf7b1 in DB::ReverseIndex<>::calcHashes() const obj-x86_64-linux-gnu/../src/Columns/ReverseIndex.h:472:17
3 0x22cc2307 in DB::ReverseIndex<>::buildIndex() obj-x86_64-linux-gnu/../src/Columns/ReverseIndex.h:438:22
4 0x22cc658c in DB::ReverseIndex<>::insert(StringRef const&) obj-x86_64-linux-gnu/../src/Columns/ReverseIndex.h:484:9
5 0x22cc0de1 in COW<DB::IColumn>::mutable_ptr<DB::IColumn> DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeImpl<char8_t>()::'lambda'()::operator()() const obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:540:39
6 0x22cc0de1 in COW<DB::IColumn>::mutable_ptr<DB::IColumn> DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeImpl<char8_t>() obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:570:23
7 0x22cb9c66 in COW<DB::IColumn>::mutable_ptr<DB::IColumn> DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeFrom()::'lambda'(auto)::operator()<char8_t>(auto) const obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:592:26
8 0x22cb9c66 in DB::ColumnUnique<DB::ColumnString>::uniqueInsertRangeFrom() obj-x86_64-linux-gnu/../src/Columns/ColumnUnique.h:600:28
9 0x2500b897 in DB::ColumnLowCardinality::insertRangeFrom() obj-x86_64-linux-gnu/../src/Columns/ColumnLowCardinality.cpp:205:62
10 0x25a182f4 in DB::appendBlock(DB::Block const&, DB::Block&) obj-x86_64-linux-gnu/../src/Storages/StorageBuffer.cpp:470:23
11 0x25a182f4 in DB::BufferSink::insertIntoBuffer(DB::Block const&, DB::StorageBuffer::Buffer&) obj-x86_64-linux-gnu/../src/Storages/StorageBuffer.cpp:634:9
12 0x25a173cc in DB::BufferSink::consume(DB::Chunk) obj-x86_64-linux-gnu/../src/Storages/StorageBuffer.cpp:595:9
13 0x26d1c997 in DB::SinkToStorage::transform(DB::Chunk&) obj-x86_64-linux-gnu/../src/Processors/Sinks/SinkToStorage.cpp:18:5
SUMMARY: AddressSanitizer: heap-use-after-free obj-x86_64-linux-gnu/../src/Columns/ReverseIndex.h in DB::ReverseIndex<unsigned long, DB::ColumnString>::insert(StringRef const&)
Shadow bytes around the buggy address:
0x0c08800bab50: fa fa fd fd fd fd fd fa fa fa 00 00 00 00 00 00
0x0c08800bab60: fa fa fd fd fd fd fd fa fa fa 00 00 00 00 00 fa
0x0c08800bab70: fa fa 00 00 00 00 00 00 fa fa 00 00 00 00 00 00
0x0c08800bab80: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fa
0x0c08800bab90: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
=>0x0c08800baba0: fa fa fd fd[fd]fd fd fa fa fa fd fd fd fd fd fa
0x0c08800babb0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
0x0c08800babc0: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
0x0c08800babd0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fa
0x0c08800babe0: fa fa fd fd fd fd fd fa fa fa fd fd fd fd fd fd
0x0c08800babf0: fa fa fd fd fd fd fd fd fa fa fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==24679==ABORTING
</details>
2021-10-05 21:07:10 +03:00
Anton Popov
b5098301d6
fix build
2021-10-05 18:23:53 +03:00
Anton Popov
cd08057285
better arguments
2021-10-04 15:02:11 +03:00
Mike Kot
8c8bada56e
Non-recursive implementation for TL and its functions
2021-10-03 18:02:04 +02:00
Anton Popov
857b8f0b1d
fix clang-tidy
2021-10-02 22:36:30 +03:00
Anton Popov
1f10246a10
Merge remote-tracking branch 'upstream/master' into HEAD
2021-10-02 22:33:27 +03:00
Alexey Milovidov
fe6b7c77c7
Rename "common" to "base"
2021-10-02 10:13:14 +03:00
Anton Popov
9c296e94f3
fix performance of updatePermutation
2021-10-01 19:45:17 +03:00
Anton Popov
515cc74530
generalize code in IColumn::updatePermutation
2021-10-01 00:11:54 +03:00
Anton Popov
0dfe96fc02
generalize code in IColumn::permute
2021-09-29 20:56:10 +03:00
Dmitry Novik
abdd8fb516
Cleanup
2021-09-29 19:42:41 +03:00
Anton Popov
914781052e
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-29 17:37:07 +03:00
Anton Popov
dc94d2239e
better ColumnSparse
2021-09-29 17:18:41 +03:00
Dmitry Novik
95193e06f6
Remove empty row creation
2021-09-28 16:59:58 +03:00
mergify[bot]
86eb589c72
Merge branch 'master' into fix_IP_conversion
2021-09-27 14:41:56 +00:00
alexey-milovidov
e4363872ca
Merge branch 'master' into yandex-to-clickhouse-in-configs
2021-09-25 19:58:36 +03:00
Alexey Milovidov
cd7f9d981c
Remove ya.make
2021-09-25 04:22:54 +03:00
Alexey Milovidov
e9e77b4403
.tech -> .com
2021-09-22 03:22:57 +03:00
Dmitry Novik
9049fd701f
Refactor ColumnStringHelpers
2021-09-21 17:27:34 +03:00
Vasily Nemkov
175b94fa2d
Special case of conversion code for types with custom serialization/deserialization
...
Fixes CASTing from String or FixedString to IPv4 or IPv6 and back.
2021-09-21 15:34:06 +03:00
Anton Popov
eef436fe22
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-16 18:07:42 +03:00
Anton Popov
348537faee
better IColumn::createWithOffsets
2021-09-16 16:57:45 +03:00
Anton Popov
3adc2a9aea
fix distinct with sparse columns
2021-09-16 15:52:59 +03:00
Anton Popov
b0c0b2bc10
fix some builds
2021-09-14 19:33:00 +03:00
Anton Popov
d09f973b83
dynamic columns: fix several cases of parsing json
2021-09-13 17:02:38 +03:00
Sergei Semin
12e24a23d3
Merge branch 'master' into fix-build-clang-13-2
2021-09-12 19:30:55 +03:00
alexey-milovidov
60f76d9254
Merge pull request #28759 from nikitamikhaylov/enable-gcc-11
...
Switch CI to GCC-11
2021-09-12 15:56:57 +03:00
alexey-milovidov
ea13a8b562
Merge pull request #28659 from myrrc/improvement/tostring_to_magic_enum
...
Improving CH type system with concepts
2021-09-12 15:26:29 +03:00
Sergei Semin
f74350c148
fix special build
2021-09-12 02:49:31 +03:00
Mike Kot
3401b32e37
Adapted usage of is_decimal concept
2021-09-11 19:35:12 +02:00
Pavel Kruglov
9c756fc4b2
Fix bug with LowCardinality in short-curcuit function evaluation
2021-09-11 12:56:25 +03:00
Anton Popov
3bd96d709d
dynamic columns: fix several cases of parsing json
2021-09-11 03:22:00 +03:00
Mike Kot
bce011cb33
Replacing IsDecimalNumber
2021-09-11 00:40:18 +02:00
Nikita Mikhaylov
513d40feb2
Fix build
2021-09-09 14:59:25 +00:00
Anton Popov
4c388e3d84
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-09-09 14:10:16 +03:00
Anton Popov
8203bd1ac6
Merge remote-tracking branch 'upstream/master' into HEAD
2021-09-09 14:04:37 +03:00
Mike Kot
8e9aacadd1
Initial: replacing hardcoded toString for enums with magic_enum
2021-09-06 16:24:03 +02:00
Nikolai Kochetov
af0da33147
Merge pull request #27827 from ClickHouse/more-checks-for-lv-and-native
...
Add more checks for LC in native protocol.
2021-09-02 17:27:42 +03:00
alexey-milovidov
4cc0b0298c
Merge pull request #28269 from amosbird/fixweirdcode
...
Better nullable primary key implementation
2021-09-01 00:48:45 +03:00
Raúl Marín
7fb57482c0
Fix bug in countBytesInFilterWithNull
2021-08-30 13:35:22 +02:00
Dmitrii Kovalkov
9871ad70ff
Exclude fuzzers
2021-08-30 11:12:25 +03:00
Amos Bird
f2374a6916
Better nullable primary key implementation.
2021-08-28 17:48:28 +08:00
Nikolai Kochetov
9c028be1e4
Fix insertion of fields with Infinity values in nullable low cardinality columns.
2021-08-26 21:19:12 +03:00
Anton Popov
e9f90b2859
support fields of type object
2021-08-21 00:11:22 +03:00
Anton Popov
61239343e3
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-08-20 16:33:30 +03:00
Vitaly Baranov
cbc1b2e72d
Fix selecting with extremes from LowCardinality(UUID)
2021-08-20 13:10:41 +03:00
Anton Popov
c3c3a06078
Merge remote-tracking branch 'upstream/master' into HEAD
2021-08-20 01:45:38 +03:00
Nikolai Kochetov
094ad9468b
Fix style.
2021-08-19 16:09:56 +03:00
Nikolai Kochetov
3e44ef437e
Merge pull request #26639 from ClickHouse/fix-bad-cast
...
Fix bad cast
2021-08-19 11:17:26 +03:00
Nikolai Kochetov
108137a67e
Add more checks for LC in native protocol.
2021-08-18 19:15:57 +03:00
Pavel Kruglov
240398d58c
Fix bug in expand() method
2021-08-18 19:13:07 +03:00
alexey-milovidov
d88cf81d71
Merge branch 'master' into fix-bad-cast
2021-08-15 09:06:42 +03:00
mergify[bot]
319e5af6eb
Merge branch 'master' into short-circuit
2021-08-13 13:01:46 +00:00
Pavel Kruglov
36bea6abb4
Add setting optimize_short_circuit_function_evaluation
2021-08-13 14:48:32 +03:00
Pavel Kruglov
fc59c98676
Clean up
2021-08-13 11:18:34 +03:00
Nikita Mikhaylov
8c06abee73
Merge pull request #25902 from Avogar/arrow-nested
...
Refactor ArrowColumnToCHColumn, support inserting Nested as Array(Struct) in Arrow/ORC/Parquet
2021-08-12 20:02:01 +03:00
mergify[bot]
80eaea1c51
Merge branch 'master' into short-circuit
2021-08-12 08:38:45 +00:00
Alexey Milovidov
c590a239d5
Merge branch 'master' into fix-bad-cast
2021-08-11 05:48:37 +03:00
Pavel Kruglov
b841a96c39
Refactor code
2021-08-10 14:31:15 +03:00
vdimir
dfccc85a33
Check const and lc nested can beome nullable in JoinCommon::convertColumnToNullable
2021-08-10 11:37:55 +03:00
Anton Popov
5a2daae63a
add conversion from tuple to object
2021-08-10 04:33:57 +03:00
Pavel Kruglov
70b51133c1
Try to simplify code
2021-08-09 18:01:08 +03:00
Pavel Kruglov
9fd4d14521
Fix style, build, add test
2021-08-09 17:57:50 +03:00
Pavel Kruglov
f16f660636
Fix PVS check
2021-08-09 17:57:50 +03:00
Pavel Kruglov
29440011ae
Fix
2021-08-09 17:57:50 +03:00
Pavel Kruglov
a9cf67ecf2
Fix bugs, add tests
2021-08-09 17:57:49 +03:00
Pavel Kruglov
e701903ba6
Fix tests
2021-08-09 17:57:49 +03:00
Pavel Kruglov
76b3ae4301
Fix tests
2021-08-09 17:57:49 +03:00
Pavel Kruglov
a95d45a157
Some clean up
2021-08-09 17:57:02 +03:00
Pavel Kruglov
170f98572a
Update IColumn.h
2021-08-09 17:54:49 +03:00
Pavel Kruglov
e5460c2b3f
Fix ColumnFunction create
2021-08-09 17:54:49 +03:00
Pavel Kruglov
ab65b7f25d
Minor changes
2021-08-09 17:54:49 +03:00
Pavel Kruglov
3ec2ab6156
Avoid using expand, fix bugs, add tests and comments
2021-08-09 17:54:49 +03:00
Pavel Kruglov
62d4f4b25c
Small refactoring and adding comments
2021-08-09 17:54:14 +03:00
Pavel Kruglov
d8f590febe
Remove includes
2021-08-09 17:54:14 +03:00
Pavel Kruglov
7ff11aff2d
Some fixes, more tests
2021-08-09 17:54:14 +03:00
Pavel Kruglov
0662df8b76
Fix performance with JIT, add arguments to function isSuitableForShortCircuitArgumentsExecution
2021-08-09 17:54:14 +03:00
Pavel Kruglov
cdbe4951f4
Add some optimizations and fixes
2021-08-09 17:50:09 +03:00
Pavel Kruglov
807c6afab1
Distinguish between regular ColumnFunction and short curcuit argument
2021-08-09 17:50:09 +03:00
Pavel Kruglov
2595af7839
Remove extra line
2021-08-09 17:44:39 +03:00
Pavel Kruglov
ee659fa902
Fix tests and build
2021-08-09 17:44:39 +03:00
Pavel Kruglov
931d533152
Fix expanding FixedString 2.0
2021-08-09 17:44:39 +03:00
Pavel Kruglov
cf490dacd1
Fix expanding FixedString
2021-08-09 17:44:39 +03:00
Pavel Kruglov
3410f96495
Remove extra line
2021-08-09 17:44:39 +03:00
Pavel Kruglov
74a8b14ca4
Fix tests
2021-08-09 17:44:39 +03:00
Pavel Kruglov
620729aa45
Add forgotten includes
2021-08-09 17:44:39 +03:00
Pavel Kruglov
b6061e132a
Small fixes
2021-08-09 17:44:39 +03:00
Pavel Kruglov
400cad4d8b
Refactor, fix bugs, improve performance
2021-08-09 17:44:04 +03:00
Pavel Kruglov
bd415b17d2
Fix bug
2021-08-09 17:43:10 +03:00
Pavel Kruglov
0a32e47b5f
Fix tests
2021-08-09 17:43:10 +03:00
Pavel Kruglov
ae8df9c1c5
Add reverse parameter to filter, fix tests, reduce coping
2021-08-09 17:43:10 +03:00
Pavel Kruglov
775d190fb3
Fix tests
2021-08-09 17:43:10 +03:00
Pavel Kruglov
50d4192126
Implement short circuit function evaluation, first attempt
2021-08-09 17:43:10 +03:00
Pavel Kruglov
e4c5d7e3b1
Support inserting nested as Array of structs, add some refactoring
2021-08-05 14:10:27 +03:00
Anton Popov
e36736b50c
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-08-02 22:52:02 +03:00
kssenii
58b3a3f3fc
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into versioning
2021-07-29 19:56:27 +00:00
Anton Popov
5b3c9dc5de
dynamic columns: allow nullable subcolumns
2021-07-24 02:17:26 +03:00
Alexey Milovidov
16eba6f0e7
Miscellaneous
2021-07-23 02:22:01 +03:00
Anton Popov
272c066cf9
fix special builds
2021-07-20 20:10:19 +03:00
Anton Popov
f99374cca6
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-07-20 18:20:21 +03:00
Anton Popov
c4b454494f
Merge remote-tracking branch 'upstream/master' into HEAD
2021-07-20 15:41:01 +03:00
alexey-milovidov
b52411a715
Merge pull request #12455 from amosbird/npc
...
Nullable primary key with correct KeyCondition
2021-07-18 17:52:20 +03:00
Anton Popov
072e65b728
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-07-07 17:20:38 +03:00
Anton Popov
14168b11f2
Merge remote-tracking branch 'upstream/master' into HEAD
2021-07-07 17:05:11 +03:00
alexey-milovidov
a11351a473
Merge pull request #25484 from vdimir/issue-19589
...
Fix assert with non uint8 in prewhere
2021-06-28 00:03:12 +03:00
alexey-milovidov
6662e7ab0f
Merge pull request #25732 from matwey/missed_include_optional_2
...
Fix some more missed includes
2021-06-26 14:04:06 +03:00
vdimir
eb85c5a8e7
Fix assert with non uint8 in prewhere
2021-06-21 15:32:29 +03:00
Anton Popov
567043113c
Merge remote-tracking branch 'upstream/master' into HEAD
2021-06-21 01:36:06 +03:00
Amos Bird
f2ed5ef42b
Nullable primary key with correct KeyCondition
2021-06-18 23:04:24 +08:00
mergify[bot]
c723dd7d40
Merge branch 'master' into arrow
2021-06-18 12:18:57 +00:00
vdimir
23fb229dec
Merge branch 'update_01049_join_low_card_bug' into issue-23351
2021-06-17 15:38:40 +03:00
Matwey V. Kornilov
aa1ac2a506
Add missed #include <optional>
...
This is required for std::optional<std::string> language;
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
2021-06-17 14:41:28 +03:00
Maksim Kita
67e9b85951
Merge ext into common
2021-06-16 23:28:41 +03:00
Pavel Kruglov
c8b37977da
Fix bugs, support dictionary for Arrow format
2021-06-15 16:15:27 +03:00
vdimir
05115dcd32
Merge branch 'master' into issue-23351
2021-06-15 12:06:42 +03:00
Alexey Milovidov
447d7bb8cd
Minor changes
2021-06-14 07:13:35 +03:00
Alexey Milovidov
93b907931d
Fix the annoying ya.make.
2021-06-13 21:21:44 +03:00
Anton Popov
7e9b13199a
dynamic columns: improve performance of parsing json data
2021-06-12 18:13:13 +03:00
alexey-milovidov
05d1af153c
Merge branch 'master' into rename-const-context-ptr
2021-06-12 03:25:09 +03:00
Anton Popov
ca5a07a5f5
dynamic subcolumns: better hash tables while parsing
2021-06-10 16:57:31 +03:00
Alexey Milovidov
bcf4d5c29d
Fix clang-tidy
2021-06-10 05:23:44 +03:00
Anton Popov
6a5daca135
dynamic subcolumns: new format and several fixes
2021-06-08 12:33:04 +03:00
Anton Popov
205a23282b
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-06-07 19:38:22 +03:00
Anton Popov
b3b29be02f
Merge remote-tracking branch 'upstream/master' into HEAD
2021-06-07 19:03:24 +03:00
Anton Popov
384ea35ed9
fix getIndicesOfNonDefaultRows with ColumnConst
2021-06-07 18:44:47 +03:00
Anton Popov
eaf806a731
better interface for getIndicesOfNonDefaultRows
2021-06-07 18:34:22 +03:00
Anton Popov
e41749997d
better interface for getting ratio of default values
2021-06-07 16:50:27 +03:00
Alexey Milovidov
885ce194e0
Making fundamentals correct
2021-06-07 00:49:55 +03:00
mergify[bot]
d68d5e0ef1
Merge branch 'master' into rename-const-context-ptr
2021-06-04 14:41:41 +00:00
kssenii
b209893cd1
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into versioning
2021-06-03 11:30:47 +00:00
Anton Popov
df5c407950
fix tests
2021-06-02 19:50:54 +03:00
Nikolai Kochetov
dbaa6ffc62
Rename ContextConstPtr to ContextPtr.
2021-06-01 15:20:52 +03:00
achimbab
99a5f1506a
Merge remote-tracking branch 'origin' into pr_sequenceNextNode
2021-06-01 17:25:24 +09:00
kssenii
e510c3839e
More correct
2021-05-31 22:09:54 +00:00
Anton Popov
9f52362b81
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-05-31 23:08:45 +03:00
Anton Popov
018a303387
Merge remote-tracking branch 'upstream/master' into HEAD
2021-05-31 23:08:04 +03:00
kssenii
d18609467b
First version
2021-05-30 13:57:30 +00:00
Anton Popov
24707e6604
dynamic subcolumns: better handling of incompatible types
2021-05-29 04:19:20 +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
Anton Popov
7e5f784597
dynamic subcolumns: better handling of nulls and empty arrays
2021-05-27 19:54:27 +03:00
Anton Popov
d83819fcae
fix build
2021-05-26 18:34:34 +03:00
Anton Popov
13ae56985f
dynamic subcolumns: better handling of missed values
2021-05-26 05:41:38 +03:00
Anton Popov
0bdf9d207c
Merge remote-tracking branch 'origin/sparse-serialization' into HEAD
2021-05-26 00:25:47 +03:00
Anton Popov
3e92c7f61a
Merge remote-tracking branch 'upstream/master' into HEAD
2021-05-25 21:45:19 +03:00
Anton Popov
de4afb0cb9
ColumnSparse: add comments
2021-05-21 03:57:11 +03:00
Anton Popov
8718044dbd
fix style check
2021-05-19 23:25:55 +03:00
vdimir
d266050b23
Merge branch 'master' into issue-23351
2021-05-17 09:42:59 +03:00
Anton Popov
46226a5591
fix unit tests
2021-05-17 02:17:01 +03:00
Anton Popov
86d6673d61
minor fixes
2021-05-16 21:59:43 +03:00
vdimir
8dddcebe8c
Handle correct nullability with low card in HashJoin
2021-05-15 17:09:51 +03:00
vdimir
be966f0e8c
Revert "Try to not remove lowcard in merge join"
...
This reverts commit 35bbbd05b6
.
2021-05-15 14:26:59 +03:00
Anton Popov
d8df0903b9
Merge remote-tracking branch 'upstream/master' into HEAD
2021-05-14 23:38:16 +03:00
Anton Popov
8ae1533f8f
better serialization in native format
2021-05-14 23:29:48 +03:00
vdimir
35bbbd05b6
Try to not remove lowcard in merge join
2021-05-14 15:10:56 +03:00
Pavel Kruglov
25ceb1df65
Final fixes
2021-05-13 20:00:13 +03:00
mergify[bot]
1b181606e8
Merge branch 'master' into arrow_array
2021-05-13 12:23:48 +00:00
Pavel Kruglov
8ed6ad7c55
Refactor, support all types in array, add nested arrays support, more tests
2021-05-12 19:06:08 +03:00
Alexey Milovidov
18b7e38994
Remove redundant template
2021-05-10 00:26:34 +03:00
Alexey Milovidov
3de9a12b76
Fix build
2021-05-07 01:57:41 +03:00
Anton Popov
0dea7d2e4b
dynamic columns: support of different types
2021-05-06 08:33:06 +03:00
Anton Popov
f22f22c4fe
dynamic columns: support of different types
2021-05-06 03:40:17 +03:00
Alexey Milovidov
2c9ae14cb0
Add 256 bit integers in some places
2021-05-06 03:31:09 +03:00
Alexey Milovidov
962a7113f6
Remove code that I do not like (crazy templates)
2021-05-04 20:26:09 +03:00
Alexey Milovidov
43bd37b6cc
Fix style
2021-05-04 02:46:11 +03:00
Alexey Milovidov
6ca37b9512
Untangle UUID
2021-05-04 01:59:38 +03:00
Alexey Milovidov
02ce9cc725
Untangle UUID
2021-05-04 01:46:51 +03:00
Alexey Milovidov
8f4dd25511
Fix style
2021-05-03 01:11:30 +03:00
Alexey Milovidov
e7de2a74fe
Update test
2021-05-02 22:04:36 +03:00
Alexey Milovidov
1fda866881
Merge branch 'master' into normalize-bigint
2021-05-02 21:24:45 +03:00
Maksim Kita
318c4bb80d
Add examples folder filter to ya.make.in
2021-04-30 11:25:52 +03:00
vdimir
6e4b37a45e
Merge branch 'master' into fix-join-lowcard-nullable
2021-04-28 20:06:49 +03:00
Nikita Mikhaylov
9f55424250
move to examples everywhere
2021-04-27 01:51:42 +03:00
Anton Popov
28a9a5c277
dynamic subcolumns: support arrays
2021-04-26 00:57:21 +03:00
Alexey Milovidov
9eb60086b0
Attempt to normalize big integers
2021-04-25 13:02:19 +03:00
Alexey Milovidov
8f01af62d9
Merge branch 'master' into normalize-bigint
2021-04-25 06:57:44 +03:00
Anton Popov
6240169bbb
dynamic subcolumns: wip
2021-04-24 02:56:26 +03:00
Anton Popov
e237840810
dynamic subcolumns: wip
2021-04-23 17:34:53 +03:00
Anton Popov
aa8d31dbca
dynamic subcolumns: wip
2021-04-23 15:53:38 +03:00
Anton Popov
a842a599c4
ColumnSparse: fixes and better performance
2021-04-21 03:23:02 +03:00
Anton Popov
0b65552e63
ColumnSparse: fixes
2021-04-20 17:20:39 +03:00
Anton Popov
aea93d9ae5
Merge remote-tracking branch 'upstream/master' into HEAD
2021-04-20 15:16:12 +03:00
Azat Khuzhin
2561a67fd8
Replace !__clang__ with !defined(__clang) to fix gcc builds
...
$ gg 'if !__clang__' | cut -d: -f1 | sort -u | xargs sed -i 's/#if !__clang__/#if !defined(__clang__)/g'
2021-04-18 23:37:50 +03:00
vdimir
826296c799
Convert columns to LC(Nullable(T)) in join
2021-04-17 22:03:32 +03:00
alexey-milovidov
a1ce6632d8
Merge pull request #23207 from ClickHouse/fix-bug-in-lowcardinality
...
Fix fairly terrible bug in LowCardinality #16171
2021-04-17 15:58:50 +03:00
Anton Popov
b5b624f3d7
ColumnSparse: fixes for dictionaries
2021-04-17 05:25:22 +03:00
Anton Popov
2afa1590e0
ColumnSparse: fix MergeTree in old syntax
2021-04-17 04:06:59 +03:00
Alexey Milovidov
36fe378a17
Fix fairly terrible bug in LowCardinality #16171
2021-04-17 02:11:21 +03:00
Anton Popov
6ce875175b
Merge remote-tracking branch 'upstream/master' into HEAD
2021-04-16 02:08:20 +03:00
Anton Popov
aa617c6b3c
ColumnSparse: fix vertical merge
2021-04-16 00:47:11 +03:00
changvvb
4eee2d0977
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into support-apple-m1
2021-04-15 22:54:26 +08:00
Anton Popov
860ed20368
ColumnSparse: more fixes
2021-04-15 05:16:09 +03:00
Anton Popov
236ab68724
ColumnSparse: several fixes
2021-04-14 16:20:05 +03:00
Anton Popov
fac54e9ccc
ColumnSparse: unit tests and several fixes
2021-04-13 15:08:24 +03:00
Anton Popov
298251e55d
fix merges with sparse columns and disable sparse for some data types
2021-04-12 02:33:53 +03:00
Ivan
495c6e03aa
Replace all Context references with std::weak_ptr ( #22297 )
...
* Replace all Context references with std::weak_ptr
* Fix shared context captured by value
* Fix build
* Fix Context with named sessions
* Fix copy context
* Fix gcc build
* Merge with master and fix build
* Fix gcc-9 build
2021-04-11 02:33:54 +03:00
Anton Popov
4b8e90338d
ColumnSparse: fixes
2021-04-08 05:08:37 +03:00
changvvb
1f8bd034a3
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into support-apple-m1
2021-04-06 15:55:03 +08:00
Anton Popov
d7ca6ecc50
ColumnSparse: sorting and dummy aggregation
2021-04-06 03:02:48 +03:00
Anton Popov
d46958a8d2
Merge remote-tracking branch 'upstream/master' into HEAD
2021-04-06 00:54:49 +03:00
alexey-milovidov
b35ba1152f
Update IColumnDummy.h
2021-04-04 05:04:11 +03:00
Alexey Milovidov
3050486308
Fix assert in Arena
2021-04-03 22:50:49 +03:00
Anton Popov
0d1ac1fec3
ColumnSparse: sorting
2021-04-03 05:40:30 +03:00
Anton Popov
a78f531597
ColumnSparse: fixes
2021-04-03 03:04:48 +03:00
Anton Popov
2a7a77e0a2
ColumnSparse: support of functions
2021-04-01 21:18:28 +03:00
Anton Popov
17071471f2
ColumnSparse: support of functions
2021-03-31 04:08:27 +03:00
achimbab
7dd671fa8e
Merge remote-tracking branch 'origin/master' into HEAD
2021-03-30 10:31:43 +09:00
Anton Popov
372a1b1fe7
Merge remote-tracking branch 'upstream/master' into HEAD
2021-03-29 19:57:49 +03:00
Anton Popov
577d571300
ColumnSparse: initial implementation
2021-03-29 19:54:24 +03:00
changvvb
c1c5db1944
Update jemalloc_internal_defs & fix unit test
2021-03-30 00:07:34 +08:00
achimbab
92ea481ee6
Merge remote-tracking branch 'origin/master' into HEAD
2021-03-29 17:57:09 +09:00
Anton Popov
6a15431be7
Merge remote-tracking branch 'upstream/master' into HEAD
2021-03-25 15:57:35 +03:00
Alexander Kuzmenkov
49f617d8ec
return the type check
2021-03-23 01:07:04 +03:00
Alexander Kuzmenkov
77a2f03d3b
prevent accidental reinterpret_cast in Field::get<>
2021-03-22 23:23:44 +03:00
achimbab
0e379585ac
Merge remote-tracking branch 'upstream/master' into pr_sequenceNextNode
2021-03-18 17:54:04 +09:00
Anton Popov
ed42437219
Merge remote-tracking branch 'upstream/master' into HEAD
2021-03-13 01:41:26 +03:00
Anton Popov
f7c7c5a9c7
Revert "refactoring of serializations"
...
This reverts commit df6663dcb6
.
2021-03-09 20:25:23 +03:00
Anton Popov
df6663dcb6
refactoring of serializations
2021-03-09 20:02:26 +03:00
Anton Popov
bc417cf54a
refactoring of serializations
2021-03-09 17:46:52 +03:00
achimbab
4965312849
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into HEAD
2021-03-07 22:53:42 +09:00
Maksim Kita
8ee89b59ec
Fixed build
2021-03-06 14:36:37 +03:00
Maksim Kita
d04e707567
Fixed special build
2021-03-06 14:36:37 +03:00
Maksim Kita
980d171207
Fixed typos
2021-03-06 14:36:37 +03:00
Maksim Kita
b6e72334ef
Fixed DefaultHash for StringRef
2021-03-06 14:36:37 +03:00
Maksim Kita
9763c4a4fb
IColumn added skipSerializedInArena method
2021-03-06 14:36:37 +03:00
Amos Bird
494c2dba6c
Fix error
2021-03-02 19:12:51 +08:00
Amos Bird
c41dedc922
optimize for ColumnLowCardinality
2021-03-02 11:55:58 +08:00
alexey-milovidov
32c011052f
Update IColumnImpl.h
2021-03-02 11:55:58 +08:00
alexey-milovidov
220d3cae7f
Update IColumn.h
2021-03-02 11:55:58 +08:00