ClickHouse / clickhouse-java

ClickHouse Java Clients & JDBC Driver
https://clickhouse.com
Apache License 2.0
1.45k stars 535 forks source link

Bitmap serialization issue #1815

Closed javiercj93 closed 2 months ago

javiercj93 commented 2 months ago

Unable to write to a table with a column type Aggregate Function (groupBitmap)

Steps to reproduce

  1. Try to write this entity

    @Data
    public class Pojo {
    
    private int id;
    private ClickHouseBitmap bitmapcolumn;
    }

    into a table with this schema:

    CREATE TABLE IF NOT EXISTS pojo (
    id UInt64,
    bitmapcolumn AggregateFunction(groupBitmap, UInt32)
    )
    ENGINE = MergeTree()
    ORDER BY (id)
  2. Error:

Unsupported data type

Expected behaviour

Write pojo to clickhouse table.

Configuration

Environment

ClickHouse server

I've created this PR which includes support for serializing this type of columns.