Skip to content

Add Tuple field names and Bool Type#485

Open
IyeOnline wants to merge 3 commits intoClickHouse:masterfrom
IyeOnline:topic/tuple-names-and-bool
Open

Add Tuple field names and Bool Type#485
IyeOnline wants to merge 3 commits intoClickHouse:masterfrom
IyeOnline:topic/tuple-names-and-bool

Conversation

@IyeOnline
Copy link
Copy Markdown
Contributor

This resolves two issues I just ran into when writing an integration to fetch data from ClickHouse.

  • A strong Bool type to make Bool Columns truly distinct from UInt8 columns.
  • A way to obtain the names for the fields of a Tuple.

Both changes are rather simple and self-contained in indivudual commits. Each adds a test for the newly added functionality.

This extends the type parser to support an element name alongside the
element type and wires this through to make the field names in a tuple
available in the C++ API.
Previously the library implicitly converted bool columns to `Uint8`,
loosing type information.

This commit introduces a "strong type" for `Bool` that is distinct from
`bool`. This allows complete re-use of `ColumnVector` without triggering
the `std::vector<bool>` specialization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide nested field names for Tuple Add Bool type support (distinct from UInt8)

1 participant