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
Code: 69. DB::Exception: Decimal value is too big #10202
Comments
Decimal64 has maximum 18 digits, because it's represented by Int64, and the maximum power of ten, represented within Int64 is 1000000000000000000, so the maximum decimal value with 12 digits after decimal point will be 999999.999999999999. |
And the value of |
So, it's not a bug. |
Describe the bug
I have a cloud Clickhouse instance that I want to have a local copy from. So I exported the metadata (and changed the ReplicatedMergeTree() to MergeTree(), plus I exteended the Decimals() because the metadata as-is was giving me errors "Code: 69. DB::Exception: Too many digits (11 > 10) in decimal value" for Decimal(10,7)) and data from MCS instance and I'm trying to insert it locally, into CH v19.11.5.28_6 running on FreeBSD.
At some point I have an error: Code: 69. DB::Exception: Decimal value is too big.
When bisecting the dump I managed to find the troublesome line:
and I really can't see in the line above the values that would exceed Decimal64(12).
Would be also nice if clickhouse-client would print the troublesome like inself, that would save a huuuge amount of time.
The table metadata is as follows:
The text was updated successfully, but these errors were encountered: