mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
First working test
This commit is contained in:
parent
4debccb7fe
commit
8517dda807
@ -683,7 +683,7 @@ void registerCodecT64(CompressionCodecFactory & factory)
|
||||
|
||||
auto type_idx = typeIdx(type);
|
||||
if (type && type_idx == TypeIndex::Nothing)
|
||||
throw Exception("T64 codec is not supported for specified type", ErrorCodes::ILLEGAL_SYNTAX_FOR_CODEC_TYPE);
|
||||
throw Exception("T64 codec is not supported for specified type " + type->getName(), ErrorCodes::ILLEGAL_SYNTAX_FOR_CODEC_TYPE);
|
||||
return std::make_shared<CompressionCodecT64>(type_idx, variant);
|
||||
};
|
||||
|
||||
|
@ -52,7 +52,7 @@ void MergeTreeDataPartWriterWide::addStreams(
|
||||
}
|
||||
else
|
||||
{
|
||||
compression_codec = CompressionCodecFactory::instance().get(effective_codec_desc, nullptr, default_codec, false);
|
||||
compression_codec = CompressionCodecFactory::instance().get(effective_codec_desc, nullptr, default_codec, true);
|
||||
}
|
||||
|
||||
if (compression_codec == nullptr)
|
||||
|
@ -0,0 +1 @@
|
||||
1 1 [[1]] (1,[1])
|
@ -0,0 +1,18 @@
|
||||
DROP TABLE IF EXISTS columns_with_multiple_streams;
|
||||
|
||||
CREATE TABLE columns_with_multiple_streams (
|
||||
field0 Nullable(Int64) CODEC(Delta(2), LZ4),
|
||||
field1 Nullable(Int64) CODEC(Delta, LZ4),
|
||||
field2 Array(Array(Int64)) CODEC(Delta, LZ4),
|
||||
filed3 Tuple(UInt32, Array(UInt64)) CODEC(T64, Default)
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY tuple()
|
||||
SETTINGS min_rows_for_wide_part = 0, min_bytes_for_wide_part = 0;
|
||||
|
||||
INSERT INTO columns_with_multiple_streams VALUES(1, 1, [[1]], tuple(1, [1]));
|
||||
|
||||
SELECT * FROM columns_with_multiple_streams;
|
||||
|
||||
DROP TABLE IF EXISTS columns_with_multiple_streams;
|
||||
|
Loading…
Reference in New Issue
Block a user