You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the unexpected behaviour
I tried to create a table with Inverted Index, and insert some rows. But when CH restarts or attach table, there is no rows in this table.
How to reproduce
SET allow_experimental_inverted_index = true;
CREATE TABLE tab
( key UInt64, str String,
INDEX inv_idx(str) TYPE inverted(0) GRANULARITY 1
)
ENGINE = MergeTree
ORDER BY key;
INSERT INTO tab(key, str) values (1, 'Hello World');
detach table tab;
attach table tab;
select count() from tab;
Which ClickHouse server version to use
Master: 23.3.1.2537
Expected behavior
The table with Inverted Index can be attached correctly, or data can be loaded during CK start.
Error message and/or stacktrace
2023.03.21 13:58:05.017418 [ 920094 ] {f106f433-b9ed-43e1-a217-05ad7179c1e9} default.tab (a17bb23f-ff60-437b-bd9d-150eb366ed46): while loading part all_1_1_0 on path store/a17/a17bb23f-ff60-437b-bd9d-150eb366ed46/all_1_1_0: Code: 228. DB::Exception: store/a17/a17bb23f-ff60-437b-bd9d-150eb366ed46/all_1_1_0/skp_idx_inv_idx.gin_dict has unexpected size: 44 instead of 0. (BAD_SIZE_OF_FILE_IN_DATA_PART), Stack trace (when copying this message, always include the lines below):
Poco::Exception::Exception(String const&, int) @ 0x15871d5a in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0xe9605b5 in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
DB::Exception::Exception<std::__fs::filesystem::path, unsigned long&, unsigned long const&>(int, FormatStringHelperImpl<std::type_identitystd::__fs::filesystem::path::type, std::type_identity<unsigned long&>::type, std::type_identity<unsigned long const&>::type>, std::__fs::filesystem::path&&, unsigned long&, unsigned long const&) @ 0x1486f8b6 in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
DB::MergeTreeDataPartChecksum::checkSize(DB::IDataPartStorage const&, String const&) const @ 0x1486ade2 in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
DB::MergeTreeDataPartChecksums::checkSizes(DB::IDataPartStorage const&) const @ 0x1486b198 in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
DB::IMergeTreeDataPart::checkConsistencyBase() const @ 0x1477a927 in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
DB::MergeTreeDataPartCompact::checkConsistency(bool) const @ 0x1487199c in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
DB::IMergeTreeDataPart::loadColumnsChecksumsIndexes(bool, bool) @ 0x1476cfa2 in /home/zhang/clickhouse-test/clickhouse/bin/clickhouse
Describe the unexpected behaviour
I tried to create a table with Inverted Index, and insert some rows. But when CH restarts or attach table, there is no rows in this table.
How to reproduce
SET allow_experimental_inverted_index = true;
CREATE TABLE tab
(
key
UInt64,str
String,INDEX inv_idx(str) TYPE inverted(0) GRANULARITY 1
)
ENGINE = MergeTree
ORDER BY key;
INSERT INTO tab(key, str) values (1, 'Hello World');
detach table tab;
attach table tab;
select count() from tab;
Master: 23.3.1.2537
Expected behavior
The table with Inverted Index can be attached correctly, or data can be loaded during CK start.
Error message and/or stacktrace
2023.03.21 13:58:05.017418 [ 920094 ] {f106f433-b9ed-43e1-a217-05ad7179c1e9} default.tab (a17bb23f-ff60-437b-bd9d-150eb366ed46): while loading part all_1_1_0 on path store/a17/a17bb23f-ff60-437b-bd9d-150eb366ed46/all_1_1_0: Code: 228. DB::Exception: store/a17/a17bb23f-ff60-437b-bd9d-150eb366ed46/all_1_1_0/skp_idx_inv_idx.gin_dict has unexpected size: 44 instead of 0. (BAD_SIZE_OF_FILE_IN_DATA_PART), Stack trace (when copying this message, always include the lines below):
The text was updated successfully, but these errors were encountered: