Skip to content

INSERT into ClickHouse table with UUID column fails: unexpected column type for 2950: UUID #127

@rahul-taplane

Description

@rahul-taplane

In pg_clickhouse inserting into a ClickHouse table that contains a UUID column fails with:

pg_clickhouse: could not append data to column - unexpected column type for 2950: UUID

This happens even though the documentation states that ClickHouse UUID maps to PostgreSQL uuid.

The issue appears to affect the INSERT / COPY write path only. Reading from UUID columns works correctly.

ClickHouse table

CREATE TABLE test.uuid_test (
    id UUID,
    value String
) ENGINE = MergeTree()
ORDER BY id;

Postgres Query

INSERT INTO test.uuid_test (id, value)
VALUES (
  '550e8400-e29b-41d4-a716-446655440000',
  'hello'
);

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdata typesImprove data type support

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions