mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge branch 'master' into new-nav
This commit is contained in:
commit
9b3e0a7b47
@ -46,6 +46,10 @@ void MergeTreeDataPartChecksum::checkEqual(const MergeTreeDataPartChecksum & rhs
|
|||||||
|
|
||||||
void MergeTreeDataPartChecksum::checkSize(const IDataPartStorage & storage, const String & name) const
|
void MergeTreeDataPartChecksum::checkSize(const IDataPartStorage & storage, const String & name) const
|
||||||
{
|
{
|
||||||
|
/// Skip inverted index files, these have a default MergeTreeDataPartChecksum with file_size == 0
|
||||||
|
if (name.ends_with(".gin_dict") || name.ends_with(".gin_post") || name.ends_with(".gin_seg") || name.ends_with(".gin_sid"))
|
||||||
|
return;
|
||||||
|
|
||||||
if (!storage.exists(name))
|
if (!storage.exists(name))
|
||||||
throw Exception(ErrorCodes::FILE_DOESNT_EXIST, "{} doesn't exist", fs::path(storage.getRelativePath()) / name);
|
throw Exception(ErrorCodes::FILE_DOESNT_EXIST, "{} doesn't exist", fs::path(storage.getRelativePath()) / name);
|
||||||
|
|
||||||
|
16
tests/queries/0_stateless/25341_inverted_idx_checksums.sql
Normal file
16
tests/queries/0_stateless/25341_inverted_idx_checksums.sql
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
SET allow_experimental_inverted_index = 1;
|
||||||
|
|
||||||
|
CREATE TABLE t
|
||||||
|
(
|
||||||
|
`key` UInt64,
|
||||||
|
`str` String,
|
||||||
|
INDEX inv_idx str TYPE inverted(0) GRANULARITY 1
|
||||||
|
)
|
||||||
|
ENGINE = MergeTree
|
||||||
|
ORDER BY key;
|
||||||
|
|
||||||
|
INSERT INTO t VALUES (1, 'Hello World');
|
||||||
|
|
||||||
|
ALTER TABLE t DETACH PART 'all_1_1_0';
|
||||||
|
|
||||||
|
ALTER TABLE t ATTACH PART 'all_1_1_0';
|
Loading…
Reference in New Issue
Block a user