mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fix: bad cast from type DB::ColumnLowCardinality to DB::ColumnString
This commit is contained in:
parent
0c21434ec7
commit
3b44ac0a1d
@ -84,11 +84,12 @@ void SerializationString::deserializeBinary(IColumn & column, ReadBuffer & istr)
|
||||
|
||||
void SerializationString::serializeBinaryBulk(const IColumn & column, WriteBuffer & ostr, size_t offset, size_t limit) const
|
||||
{
|
||||
const ColumnString & column_string = typeid_cast<const ColumnString &>(column);
|
||||
const auto & full_column = column.convertToFullColumnIfLowCardinality();
|
||||
const ColumnString & column_string = typeid_cast<const ColumnString &>(*full_column);
|
||||
const ColumnString::Chars & data = column_string.getChars();
|
||||
const ColumnString::Offsets & offsets = column_string.getOffsets();
|
||||
|
||||
size_t size = column.size();
|
||||
size_t size = column_string.size();
|
||||
if (!size)
|
||||
return;
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
bbbbb
|
||||
bbbbb
|
@ -0,0 +1 @@
|
||||
SELECT if(materialize(0), extract(materialize(CAST('aaaaaa', 'LowCardinality(String)')), '\\w'), extract(materialize(CAST('bbbbb', 'LowCardinality(String)')), '\\w*')) AS res FROM numbers(2);
|
Loading…
Reference in New Issue
Block a user