ildus / clickhouse_fdw

ClickHouse FDW for PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when table has LowCardinality(Nullable(String)) field

mzealey opened this issue · comments

Pg 12.5, latest clickhouse-fdw, latest clickhouse:20 docker image.

In clickhouse:

CREATE TABLE test (
    time DateTime ,
    test LowCardinality(Nullable(String))
) ENGINE = MergeTree()
PARTITION BY toDate(time)
ORDER BY (time);         

IMPORT FOREIGN SCHEMA "test" FROM SERVER clickhouse_svr INTO public; then crashes.

LowCardinality(String) and Nullable(String) work fine by themselves.

Hi, binary or http protocol?

both i think

IMPORT should be fixed, along with queries on http protocol. But LowCardinality(Nullable) columns would not work on binary protocol, since library I use for the communication doesn't support them.

confirm this works thanks