Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #66 to allow using absl::int128 as Int128 #81

Merged
merged 4 commits into from
Mar 24, 2021

Conversation

Enmk
Copy link
Collaborator

@Enmk Enmk commented Mar 23, 2021

Fixed multiple compile-time issues using absl::int128 as clickhouse::Int128
Fixed storing Int128 value to ItemView

Added tests:

  • Basic cases for Int128 numeric columns
  • Parsing Decimal128 values from a string (basic and with overflow)
  • ItemView construction tests (both positive and negative cases)

Known limitations:

  • Overflow checks are broken for std::numeric_limits::min() when there is no __int128.

Closes: #73
Closes: #72

Enmk added 2 commits March 23, 2021 17:26
Added tests:
* Basic cases for Int128 numeric columns
* Parsing Decimal128 values from string (basic and with overflow)

Known limitations:
* Overflow checks are broken for std::numeric_limits<Int128>::min() when there is no __int128.
Tests for ItemView contructor
@Enmk Enmk changed the title Fixes to allow using absl::int128 as Int128 Fixes #66 to allow using absl::int128 as Int128 Mar 23, 2021
Copy link
Collaborator

@traceon traceon left a comment

Choose a reason for hiding this comment

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

Left comments.

clickhouse/columns/date.cpp Outdated Show resolved Hide resolved
clickhouse/types/types.h Show resolved Hide resolved
clickhouse/columns/itemview.cpp Outdated Show resolved Hide resolved
clickhouse/columns/itemview.h Outdated Show resolved Hide resolved
clickhouse/columns/itemview.h Outdated Show resolved Hide resolved
clickhouse/columns/decimal.cpp Show resolved Hide resolved
clickhouse/columns/decimal.cpp Outdated Show resolved Hide resolved
Enmk added 2 commits March 24, 2021 12:51
Fragile implementation of ItemView::ValidateData
And several other minor issues.
@traceon traceon merged commit 63288eb into ClickHouse:artpaul_119 Mar 24, 2021
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.

3 participants