API change: Column methods should throw exceptions consistently

Open
#243 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Enmk is already working on this.

Since Nov 24, 2022.

Assessment

This issue has not been assessed yet.

Description

3.0

There are multiple places throughout the library that are really relaxed about input values\types, like:

  • overrides of Column::Append(ColumnRef column) that just do nothing if column is of not expected type
  • overrides of Column::Load that return false if column failed to load, sometimes eating an exception that could point to the root cause.
  • etc.

Fixes scheduled for next API-breaking release (3.0?):

  • Column::Append overrides should throw an exception if the input column is of the wrong type.
  • Column::Load should change return type to void and throw an exception on error.
Dominant language
C
Stars
388
Forks
220
Avg merge
1d 25m
Merged PRs (30d)
16

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/clickhouse-cpp

All issues in ClickHouse/clickhouse-cpp

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.