= DB::Exception: Expected ColumnLowCardinality, gotUInt8: While executing CollapsingSortedTransform (version 21.4.6.55 (official build))
0. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0x87f714a in /usr/bin/clickhouse
1. DB::ColumnLowCardinality::insertFrom(DB::IColumn const&, unsigned long) @ 0xf7e9ef9 in /usr/bin/clickhouse
2. DB::CollapsingSortedAlgorithm::insertRows() @ 0x100e7ce0 in /usr/bin/clickhouse
3. DB::CollapsingSortedAlgorithm::merge() @ 0x100e8388 in /usr/bin/clickhouse
4. DB::IMergingTransform<DB::CollapsingSortedAlgorithm>::work() @ 0xfc637a0 in /usr/bin/clickhouse
5. ? @ 0xff6504d in /usr/bin/clickhouse
6. DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic<bool>*) @ 0xff61d01 in /usr/bin/clickhouse
7. ? @ 0xff66846 in /usr/bin/clickhouse
8. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x88372bf in /usr/bin/clickhouse
9. ? @ 0x883ade3 in /usr/bin/clickhouse
10. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
11. clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
Не помню что бы менял схему этой таблицы. Что может быть такое?
Я нашел место в котором падает: ``` WITH ? as ForkBlockNum, ? as ForkAddress, ? as ForkTypes, ForkedLastStates as ( SELECT BlockNumber, Time, BlockHash, TxHash, Address, Contract, DataJson, Project, Key, Type, Ver as LastVer, Sign FROM state_log FINAL WHERE BlockNumber >= ForkBlockNum AND Address = ForkAddress AND Type IN ForkTypes ORDER BY LastVer DESC LIMIT 1 BY Key ) SELECT BlockNumber, Time, BlockHash, TxHash, Address, Contract, DataJson, Project, Key, Type FROM state_log WHERE BlockNumber < ForkBlockNum AND Address = ForkAddress AND Type IN ForkTypes AND Key IN (SELECT Key FROM ForkedLastStates) AND -- ПАДАЕТ ТУТ Ver > 0 ORDER BY Ver DESC LIMIT 1 BY Key ```
Обсуждают сегодня