clickhouse.rs icon indicating copy to clipboard operation
clickhouse.rs copied to clipboard

Support QBit data type (25.10)

Open slvrtrn opened this issue 2 months ago • 2 comments

Website docs: https://clickhouse.com/docs/sql-reference/data-types/qbit

Internal layout: https://github.com/ClickHouse/ClickHouse/pull/87922/files#diff-9d45fe76d9e7f9a392db684d3465aff14979cfc9bbe5ccd912e9307a934bd28aR15-R51

Given QBit(element_type, dimension) where element_type is one of BFloat16, Float32, Float64, it is internally represented as a Tuple of FixedString(dimension).

  • The length of the Tuple depends on the element_type
    • BFloat16 = 16
    • Float32 = 32
    • Float64 = 64
  • Requires allow_experimental_qbit_type setting

slvrtrn avatar Oct 06 '25 19:10 slvrtrn

Can I try it? I’ve already done a code review, and I can implement it

vwency avatar Oct 12 '25 20:10 vwency

@vwency if you'd like to open a PR I'd be happy to take a look at it.

abonander avatar Oct 29 '25 17:10 abonander