Skip to content

Conversation

@itrofimow
Copy link
Contributor

@itrofimow itrofimow commented Mar 15, 2022

Closes #145

Submitted on behalf of a third-party: Yandex N.V.

@Enmk
Copy link
Contributor

Enmk commented Apr 4, 2022

Hi @itrofimow is it ready for review?

@itrofimow
Copy link
Contributor Author

itrofimow commented Apr 4, 2022

Hi!
I'll have a fresh look tomorrow, probably fix a couple of places, and then mark it as ready

As for now it lacks some tests

@itrofimow itrofimow marked this pull request as ready for review April 6, 2022 18:20
@itrofimow
Copy link
Contributor Author

I am not certain about what should be thrown instead of base Error in some places, but other than that i believe it's ready for review.

I didn't find any test for throwing logic, thus i didn't add any

@Enmk


if (len) {
throw std::runtime_error("Failed to write " + std::to_string(original_len)
throw Error("Failed to write " + std::to_string(original_len)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what should be thrown here

@Enmk Enmk merged commit 898ac2a into ClickHouse:master Apr 13, 2022
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.

Consider incorporating exceptions into type system

2 participants