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

throw Cannot convert a non-finite number to an integer in cast float32 to decimal256 #3838

Closed
SeaRise opened this issue Jan 10, 2022 · 1 comment
Labels

Comments

@SeaRise
Copy link
Contributor

SeaRise commented Jan 10, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)


use test;
create table test.t(a float);
insert into test.t values (3.4028234e38);

alter table test.t set tiflash replica 1;
set tidb_enforce_mpp=1; set tidb_isolation_read_engines='tiflash';
select a, cast(a as decimal(65, 0)) from t;

2. What did you expect to see? (Required)

+------------+-----------------------------------------+
| a          | cast(a as decimal(65, 0))               |
+------------+-----------------------------------------+
| 3.40282e38 | 340282346638528860000000000000000000000 |
+------------+-----------------------------------------+

3. What did you see instead (Required)

ERROR 1105 (HY000): other error for mpp stream: Cannot convert a non-finite number to an integer.

4. What is your TiFlash version? (Required)

master

@windtalker
Copy link
Contributor

Should fixed by #4380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants