WHERE \ OR \ OR CAST(\ + CAST( \ AS INT) AS BOOLEAN) brings different results , when set EXECUTOR_DEVICE 'CPU' and 'GPU'.
SQL:
CREATE TABLE t0(c0 BOOLEAN, c1 BOOLEAN);
INSERT INTO t0(c0, c1) VALUES(TRUE, False);
ALTER SESSION SET EXECUTOR_DEVICE='CPU';
SELECT * FROM t0 WHERE (t0.c1) OR (t0.c1) OR CAST(150453209*343769574 + CAST(t0.c1 AS INT) AS BOOLEAN);
Result:
No rows returned.
SQL:
ALTER SESSION SET EXECUTOR_DEVICE='GPU';
SELECT * FROM t0 WHERE (t0.c1) OR (t0.c1) OR CAST(150453209*343769574 + CAST(t0.c1 AS INT) AS BOOLEAN);
Describe:
Using SELECT \ FROM \ WHERE \ OR \ OR CAST(\ + CAST( \ AS INT) AS BOOLEAN) brings different results , when set EXECUTOR_DEVICE 'CPU' and 'GPU'.
- © Githubissues.
- Githubissues is a development platform for aggregating issues.
SQL:
Result:
SQL:
Result:
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