Bug #121456 Inconsistant result while disabling engine_condition_pushdown

Submitted: 8 Oct 21:51
Reporter: Jiyuan Li Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:|26.10.0-cluster OS:Ubuntu (24.04)
Assigned to: CPU Architecture:Any

[8 Oct 21:51] Jiyuan Li
Description:
In following testcase, turning off engine_condition_pushdown causes inconsistent results

How to repeat:
SET SESSION sql_mode='';
DROP DATABASE IF EXISTS fb_float; CREATE DATABASE fb_float; USE fb_float;
CREATE TABLE t (id INT PRIMARY KEY, f FLOAT) ENGINE=NDB;
INSERT INTO t VALUES (1,0.1),(2,0.7),(3,1.5);
SET SESSION optimizer_switch='engine_condition_pushdown=on';
SELECT id, f, (f = 0.1) AS eq FROM t WHERE f = 0.1;
+----+------+------+
| id | f    | eq   |
+----+------+------+
|  1 |  0.1 |    0 |
+----+------+------+
SET SESSION optimizer_switch='engine_condition_pushdown=off';
SELECT id, f, (f = 0.1) AS eq FROM t WHERE f = 0.1;
-- empty set

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.047 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.