Skip to content
New issue

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

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

Already on GitHub? # to your account

[GPU Logic Bug] SELECT /*+ keep_table_function_result */ <column> FROM <table> GROUP BY <column> Brings Errors #827

Open
qwebug opened this issue Jun 5, 2024 · 1 comment

Comments

@qwebug
Copy link

qwebug commented Jun 5, 2024

Describe:

SELECT /*+ keep_table_function_result */ <column> FROM <table> GROUP BY <column> brings different results, when using CPU-only configurations and GPU-used configurations.

SQL with CPU-only Config:

CREATE TABLE t0(c0 bigint);
INSERT INTO t0(c0) VALUES(1);
INSERT INTO t0(c0) VALUES(2);
INSERT INTO t0(c0) VALUES(NULL);
ALTER SESSION SET EXECUTOR_DEVICE='CPU';
SELECT /*+ keep_table_function_result */  t0.c0 FROM t0 ORDER BY t0.c0 DESC;

Result:

c0
NULL
2
1

SQL with GPU-used Config:

ALTER SESSION SET EXECUTOR_DEVICE='GPU';
SELECT /*+ keep_table_function_result */  t0.c0 FROM t0 ORDER BY t0.c0 DESC;

Result:

c0
1
2
NULL

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

@Carmelo006
Copy link

HeavyDB newer version v8.0.2 has fixed this issue.
Thanks for your report.

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

No branches or pull requests

2 participants