Skip to content

Add Bool type support (distinct from UInt8) #476

Closed

Description

@iskakaushik

ClickHouse has a Bool type distinct from UInt8. clickhouse-cpp currently has no Type::Code::Bool — Bool columns are silently handled as UInt8. pg_clickhouse maps Bool to PostgreSQL BOOLEAN at the schema level, but the binary driver has no way to distinguish Bool from UInt8 at the wire level, which causes type mismatches during reads.

Activity

  1. theory commented on Apr 10, 2026

    @theory
    Contributor

    See #449 for an attempt to add a Bool type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpg_clickhouseNeeded by the pg_clickhouse PostgreSQL FDW

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions