ClickHouse / ClickHouse/clickhouse-cpp

ColumnLowCardinalityT fail in constructor

Open
#457 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
382
Forks
209
Avg merge
3h 58m
Merged PRs (30d)
12

Description

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

```
template
using LCC = clickhouse::ColumnLowCardinalityT;

using column_int32 = LCC;

std::shared_ptr abc = std::make_shared(); // 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.