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

[GPU Logic Bug] Cast 'Infinity' as INT Brings Errors #804

Open
qwebug opened this issue Oct 2, 2023 · 0 comments
Open

[GPU Logic Bug] Cast 'Infinity' as INT Brings Errors #804

qwebug opened this issue Oct 2, 2023 · 0 comments

Comments

@qwebug
Copy link

qwebug commented Oct 2, 2023

Describe:

Using CAST('Infinity' AS INT)  brings different results , when set EXECUTOR_DEVICE 'CPU' and 'GPU'.

SQL:

CREATE TABLE IF NOT EXISTS t0(c0 DOUBLE  NULL);
INSERT INTO t0(c0) VALUES(0), (1), ('Infinity');
ALTER SESSION SET EXECUTOR_DEVICE='CPU';
SELECT CAST(t0.c0 AS INT) FROM t0;

Result:

EXPR$0
0
1
null

SQL:

ALTER SESSION SET EXECUTOR_DEVICE='GPU';
SELECT CAST(t0.c0 AS INT) FROM t0;

Result:

EXPR$0
0
1
2147483647

Environment:

Docker Deployment

https://hub.docker.com/layers/heavyai/heavyai-ee-cuda/latest/images/sha256-5af3ad3a00cbc5ce09c299b8b81cda96521a27373dbb1e59209c02358cfd9b1f?context=explore

Docker DIGEST: sha256:5af3ad3a00cbc5ce09c299b8b81cda96521a27373dbb1e59209c02358cfd9b1f

HeavyDB Version: 7.1.0-20230821-eae9ec17da

HeavyDB license: Free Edition

@qwebug qwebug changed the title [Login Bug] Cast 'Infinity' as INT Brings Errors [Logic Bug] Cast 'Infinity' as INT Brings Errors Oct 6, 2023
@qwebug qwebug changed the title [Logic Bug] Cast 'Infinity' as INT Brings Errors [GPU Logic Bug] Cast 'Infinity' as INT Brings Errors Jan 22, 2024
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

No branches or pull requests

1 participant