-
Bug
-
-
Major
-
Resolution:
Unresolved
-
11.7.2, 10.5, 10.6, 10.11, 11.4, 11.8
-
-
-
-
docker run -it --name mariadb-11.7.2 -p 3307:3306 -e MARIADB_ROOT_PASSWORD=root mariadb:11.7.2
|
|
CREATE TABLE t0(c0 FLOAT ZEROFILL ) ENGINE = HEAP;
|
CREATE TABLE IF NOT EXISTS t1 LIKE t0;
|
INSERT INTO t0(c0) VALUES(0),(-0);
|
CREATE INDEX i1 ON t0(c0);
|
INSERT INTO t1(c0) VALUES('-0');
|
|
SELECT ALL t0.c0 FROM t0 STRAIGHT_JOIN t1 ON t0.c0 = t1.c0;
|
+--------------+
|
| c0 |
|
+--------------+
|
| 000000000000 |
|
| 000000000000 |
|
+--------------+
|
SELECT ALL t0.c0 FROM t1 STRAIGHT_JOIN t0 ON t0.c0 = t1.c0;
|
Empty set (0.00 sec)
|
{"report":{"fcp":1184.4000000953674,"ttfb":310.60000014305115,"pageVisibility":"visible","entityId":133219,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"93299a7d-87ee-4712-a0ab-98468646cc65","navigationType":0,"readyForUser":1259.7000000476837,"redirectCount":0,"resourceLoadedEnd":1374.5,"resourceLoadedStart":317.60000014305115,"resourceTiming":[{"duration":366.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":317.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":683.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":366.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":317.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":684.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":375.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":318,"connectEnd":318,"connectStart":318,"domainLookupEnd":318,"domainLookupStart":318,"fetchStart":318,"redirectEnd":0,"redirectStart":0,"requestStart":318,"responseEnd":693.6000001430511,"responseStart":693.6000001430511,"secureConnectionStart":318},{"duration":463.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":318.2000000476837,"connectEnd":318.2000000476837,"connectStart":318.2000000476837,"domainLookupEnd":318.2000000476837,"domainLookupStart":318.2000000476837,"fetchStart":318.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":318.2000000476837,"responseEnd":781.9000000953674,"responseStart":781.9000000953674,"secureConnectionStart":318.2000000476837},{"duration":467.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":318.5,"connectEnd":318.5,"connectStart":318.5,"domainLookupEnd":318.5,"domainLookupStart":318.5,"fetchStart":318.5,"redirectEnd":0,"redirectStart":0,"requestStart":318.5,"responseEnd":786,"responseStart":786,"secureConnectionStart":318.5},{"duration":467.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":318.7000000476837,"connectEnd":318.7000000476837,"connectStart":318.7000000476837,"domainLookupEnd":318.7000000476837,"domainLookupStart":318.7000000476837,"fetchStart":318.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":318.7000000476837,"responseEnd":786.5,"responseStart":786.5,"secureConnectionStart":318.7000000476837},{"duration":467.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":318.90000009536743,"connectEnd":318.90000009536743,"connectStart":318.90000009536743,"domainLookupEnd":318.90000009536743,"domainLookupStart":318.90000009536743,"fetchStart":318.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":318.90000009536743,"responseEnd":786.7999999523163,"responseStart":786.7999999523163,"secureConnectionStart":318.90000009536743},{"duration":522.5999999046326,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":319.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":841.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":468,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":319.2999999523163,"connectEnd":319.2999999523163,"connectStart":319.2999999523163,"domainLookupEnd":319.2999999523163,"domainLookupStart":319.2999999523163,"fetchStart":319.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":319.2999999523163,"responseEnd":787.2999999523163,"responseStart":787.2999999523163,"secureConnectionStart":319.2999999523163},{"duration":522.7000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":319.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":842.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":468.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":319.60000014305115,"connectEnd":319.60000014305115,"connectStart":319.60000014305115,"domainLookupEnd":319.60000014305115,"domainLookupStart":319.60000014305115,"fetchStart":319.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":319.60000014305115,"responseEnd":787.7999999523163,"responseStart":787.7999999523163,"secureConnectionStart":319.60000014305115},{"duration":1021.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":320.5,"connectEnd":320.5,"connectStart":320.5,"domainLookupEnd":320.5,"domainLookupStart":320.5,"fetchStart":320.5,"redirectEnd":0,"redirectStart":0,"requestStart":320.5,"responseEnd":1342.4000000953674,"responseStart":1342.4000000953674,"secureConnectionStart":320.5},{"duration":1016.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":326.10000014305115,"connectEnd":326.10000014305115,"connectStart":326.10000014305115,"domainLookupEnd":326.10000014305115,"domainLookupStart":326.10000014305115,"fetchStart":326.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":326.10000014305115,"responseEnd":1342.7999999523163,"responseStart":1342.7999999523163,"secureConnectionStart":326.10000014305115},{"duration":162.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":854.5,"connectEnd":854.5,"connectStart":854.5,"domainLookupEnd":854.5,"domainLookupStart":854.5,"fetchStart":854.5,"redirectEnd":0,"redirectStart":0,"requestStart":854.5,"responseEnd":1016.6000001430511,"responseStart":1016.6000001430511,"secureConnectionStart":854.5},{"duration":208.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1135.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1135.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1344.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":238,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":1136.5,"connectEnd":1136.5,"connectStart":1136.5,"domainLookupEnd":1136.5,"domainLookupStart":1136.5,"fetchStart":1136.5,"redirectEnd":0,"redirectStart":0,"requestStart":1136.5,"responseEnd":1374.5,"responseStart":1374.5,"secureConnectionStart":1136.5},{"duration":244.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":1137,"connectEnd":1137,"connectStart":1137,"domainLookupEnd":1137,"domainLookupStart":1137,"fetchStart":1137,"redirectEnd":0,"redirectStart":0,"requestStart":1137,"responseEnd":1381.9000000953674,"responseStart":1381.9000000953674,"secureConnectionStart":1137}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":161,"responseStart":311,"responseEnd":318,"domLoading":315,"domInteractive":1380,"domContentLoadedEventStart":1380,"domContentLoadedEventEnd":1425,"domComplete":1747,"loadEventStart":1747,"loadEventEnd":1748,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1353.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1354.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1354.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1357.1000001430511},{"name":"activityTabFullyLoaded","time":1439.9000000953674}],"measures":[],"correlationId":"4a5917f7670278","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thank you! I repeated as described on 10.5-11.8. Float + Memory engine + "-0"
MariaDB [test]> SELECT t0.c0 FROM t0 STRAIGHT_JOIN t1 ON t0.c0 = t1.c0;
+------+
| c0 |
+------+
| 0 |
| 0 |
+------+
2 rows in set (0,001 sec)
MariaDB [test]> SELECT t0.c0 FROM t1 STRAIGHT_JOIN t0 ON t0.c0 = t1.c0;
Empty set (0,001 sec)
MariaDB [test]> explain extended SELECT t0.c0 FROM t1 STRAIGHT_JOIN t0 ON t0.c0 = t1.c0;
+------+-------------+-------+--------+---------------+------+---------+-------+------+----------+-------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+------+-------------+-------+--------+---------------+------+---------+-------+------+----------+-------+
| 1 | SIMPLE | t1 | system | NULL | NULL | NULL | NULL | 1 | 100.00 | |
| 1 | SIMPLE | t0 | ref | c0 | c0 | 5 | const | 2 | 100.00 | |
+------+-------------+-------+--------+---------------+------+---------+-------+------+----------+-------+
2 rows in set, 1 warning (0,003 sec)
Note (Code 1003): select `test`.`t0`.`c0` AS `c0` from `test`.`t0` where `test`.`t0`.`c0` = -0
MariaDB [test]>
MariaDB [test]> explain extended SELECT t0.c0 FROM t0 STRAIGHT_JOIN t1 ON t0.c0 = t1.c0;
+------+-------------+-------+------+---------------+------+---------+------+------+----------+-------------------------------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+------+-------------+-------+------+---------------+------+---------+------+------+----------+-------------------------------------------------+
| 1 | SIMPLE | t0 | ALL | c0 | NULL | NULL | NULL | 2 | 100.00 | |
| 1 | SIMPLE | t1 | ALL | NULL | NULL | NULL | NULL | 1 | 100.00 | Using where; Using join buffer (flat, BNL join) |
+------+-------------+-------+------+---------------+------+---------+------+------+----------+-------------------------------------------------+
2 rows in set, 1 warning (0,003 sec)
Note (Code 1003): select `test`.`t0`.`c0` AS `c0` from `test`.`t0` straight_join `test`.`t1` where `test`.`t1`.`c0` = `test`.`t0`.`c0`