-
Notifications
You must be signed in to change notification settings - Fork 7k
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
mysql decimal nullable -> DB::Exception: Attempt to read after eof #7690
Comments
still reproduced on Clickhouse 19.17 and MySQL 5.1 |
temp workaround is using Nullable(Float64) or Nullable(Float32) is not good solution |
@4ertus2 any news about this issue? |
@Slach The issue still exist with v20.3.7.46 (the latest current version) |
@Enmk any news about this issue? |
Still reproduce on 20.5.3.27, any updates there? |
See #11512 |
Still reproduce on 20.6.3, any updates there? |
You can check on build from master(for example via testing release) or wait 20.10 release. |
HttpCode:500 ; ;Code: 32, e.displayText() = DB::Exception: Attempt to read after eof: while executing 'FUNCTION CAST(_dummy_0 : 0, 'Nullable(Decimal(9, 2))' :: 1) -> CAST(_dummy_0, 'Nullable(Decimal(9, 2))') Nullable(Decimal(9, 2)) : 2' (version 20.12.4.5 (official build)) |
So that didn't help #14535 ... |
Minimal example : I will try to fix it. |
instead of use
try
|
Hi,
Describe the bug or unexpected behaviour
When I try to INSERT SELECT from a remote mysql table it leads to
DB::Exception: Attempt to read after eof
when a source column is of typedecimal(xx,yy) NULL
and havenull
value.This issue also occurs when I try to cast a column from a mysql
decimal(xx,yy) NULL
to a clickhouseNullable(Decimal(xx,yy))
How to reproduce
CH version : 19.13.3.26 and 19.16.2.2 (official build)
First run the following mysql statements on a mysql server
Then in a clickhouse server run
and you obtain
Then same query with non-null value in he mysql source table return the expected result.
Nonetheless I would like to thank you for your job, CH rocks 👍
The text was updated successfully, but these errors were encountered: