Skip to content

ColumnLowCardinalityT fail in constructor #457

@sabudilovskiy

Description

@sabudilovskiy

I'm trying to create a clickhouse::ColumnLowCardinalityTclickhouse::ColumnInt32 to insert into low_cardinality(Int32), but in this code:

template <typename T>
using LCC = clickhouse::ColumnLowCardinalityT<T>;

using column_int32 = LCC<clickhouse::ColumnInt32>;

std::shared_ptr<column_int32> abc = std::make_shared<column_int32>(); // throws ItemView value size mismatch for Int32 expected: 4, got: 0

I don't understand what I'm doing wrong and what I need to pass to the constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions