ildus / clickhouse_fdw

ClickHouse FDW for PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: clickhouse_fdw: error while reading row: unsupported type in binary protocol

DrivenA opened this issue · comments

Hi! After I imported the clickhouse table data into my external table in a postgresql database, I got an error when I tried to query the table: ERROR: clickhouse_fdw: error while reading row: unsupported type in binary protocol. Later I found that the problem was in two columns, latitude and longtitude. They are defined as Decimal(12,8) type in the clickhouse database. How should I solve this problem? I cannot perform any query operations on this column.

When I want to query this field, it appears ERROR: clickhouse_fdw: error while reading row: unsupported type in binary protocol

I tried changing the protocol used, changing the binary protocol to the default protocol: CREATE SERVER clickhouse_svr2 FOREIGN DATA WRAPPER clickhouse_fdw OPTIONS(dbname '', host '', port *', driver 'http'); No error occurred. But I don't know what problems this would cause.