Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL)
CREATE TABLE t1 (f1 VARCHAR (8) /*!100302 COMPRESSED */ );
INSERT INTO t1 VALUES ( 'a' ),( 'b' ),( 'c' ),( 'd' );
CREATE TABLE t2 (f2 VARCHAR (8));
INSERT INTO t2 VALUES ( 'b' ),( 'd' );
set join_cache_level= 3;
SELECT * FROM t1 JOIN t2 ON ( f1 = f2 );
Actual result (empty)
set join_cache_level= 3;
SELECT * FROM t1 JOIN t2 ON ( f1 = f2 );
f1 f2
EXPLAIN EXTENDED
EXPLAIN EXTENDED SELECT * FROM t1 JOIN t2 ON ( f1 = f2 );
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t2 ALL NULL NULL NULL NULL 2 100.00 Using where
1 SIMPLE t1 hash_ALL NULL #hash#$hj 12 test.t2.f2 4 100.00 Using where ; Using join buffer (flat, BNLH join )
Warnings:
Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2` from `test`.`t1` join `test`.`t2` where `test`.`t1`.`f1` = `test`.`t2`.`f2`
Reproducible with at least InnoDB, MyISAM, Aria.
Reproducible on 10.3-10.5.
Reproducible with all join_cache_level values greater than 2.
Not applicable to 10.2, as compressed columns were introduced in 10.3.
Not reproducible when t1.f1 is not compressed, even although the plan looks the same.
Not reproducible with join_cache_level=2 , the plan shows BNL join instead of BNLH.
In both cases the query returns 2 rows as expected:
Expected result
SELECT * FROM t1 JOIN t2 ON ( f1 = f2 );
f1 f2
b b
d d
There are no comments yet on this issue.
{"report":{"fcp":890.6999999284744,"ttfb":344.89999997615814,"pageVisibility":"visible","entityId":80789,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e0e3d810-facc-438a-b262-53a98f1f9131","navigationType":0,"readyForUser":959.5999999046326,"redirectCount":0,"resourceLoadedEnd":695.8999999761581,"resourceLoadedStart":350,"resourceTiming":[{"duration":5.699999928474426,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":350,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":355.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":6.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":350.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":356.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":97.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":350.39999997615814,"connectEnd":350.39999997615814,"connectStart":350.39999997615814,"domainLookupEnd":350.39999997615814,"domainLookupStart":350.39999997615814,"fetchStart":350.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":359.39999997615814,"responseEnd":447.5,"responseStart":395.59999990463257,"secureConnectionStart":350.39999997615814},{"duration":151.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":350.59999990463257,"connectEnd":350.59999990463257,"connectStart":350.59999990463257,"domainLookupEnd":350.59999990463257,"domainLookupStart":350.59999990463257,"fetchStart":350.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":361,"responseEnd":502.2999999523163,"responseStart":405.59999990463257,"secureConnectionStart":350.59999990463257},{"duration":57.800000071525574,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":350.6999999284744,"connectEnd":350.6999999284744,"connectStart":350.6999999284744,"domainLookupEnd":350.6999999284744,"domainLookupStart":350.6999999284744,"fetchStart":350.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":361.09999990463257,"responseEnd":408.5,"responseStart":407.7999999523163,"secureConnectionStart":350.6999999284744},{"duration":68.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":350.6999999284744,"connectEnd":350.6999999284744,"connectStart":350.6999999284744,"domainLookupEnd":350.6999999284744,"domainLookupStart":350.6999999284744,"fetchStart":350.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":363,"responseEnd":419.09999990463257,"responseStart":418.39999997615814,"secureConnectionStart":350.6999999284744},{"duration":11.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":350.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":362.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":67.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":350.89999997615814,"connectEnd":350.89999997615814,"connectStart":350.89999997615814,"domainLookupEnd":350.89999997615814,"domainLookupStart":350.89999997615814,"fetchStart":350.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":363.1999999284744,"responseEnd":418.39999997615814,"responseStart":417.6999999284744,"secureConnectionStart":350.89999997615814},{"duration":13.600000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":351.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":351.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":364.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":75.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":351.09999990463257,"connectEnd":351.09999990463257,"connectStart":351.09999990463257,"domainLookupEnd":351.09999990463257,"domainLookupStart":351.09999990463257,"fetchStart":351.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":366.2999999523163,"responseEnd":426.59999990463257,"responseStart":426,"secureConnectionStart":351.09999990463257},{"duration":74.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":351.2999999523163,"connectEnd":351.2999999523163,"connectStart":351.2999999523163,"domainLookupEnd":351.2999999523163,"domainLookupStart":351.2999999523163,"fetchStart":351.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":367.09999990463257,"responseEnd":425.7999999523163,"responseStart":424.2999999523163,"secureConnectionStart":351.2999999523163},{"duration":322.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":373.39999997615814,"connectEnd":373.39999997615814,"connectStart":373.39999997615814,"domainLookupEnd":373.39999997615814,"domainLookupStart":373.39999997615814,"fetchStart":373.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":428.09999990463257,"responseEnd":695.6999999284744,"responseStart":687.5999999046326,"secureConnectionStart":373.39999997615814},{"duration":315.3000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":380.59999990463257,"connectEnd":380.59999990463257,"connectStart":380.59999990463257,"domainLookupEnd":380.59999990463257,"domainLookupStart":380.59999990463257,"fetchStart":380.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":430.39999997615814,"responseEnd":695.8999999761581,"responseStart":688.5999999046326,"secureConnectionStart":380.59999990463257},{"duration":197.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":656.5,"connectEnd":656.5,"connectStart":656.5,"domainLookupEnd":656.5,"domainLookupStart":656.5,"fetchStart":656.5,"redirectEnd":0,"redirectStart":0,"requestStart":822.7999999523163,"responseEnd":854.0999999046326,"responseStart":853.0999999046326,"secureConnectionStart":656.5},{"duration":173.89999997615814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":867.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":867.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1041.3999999761581,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":61,"domainLookupEnd":77,"connectStart":77,"connectEnd":97,"secureConnectionStart":85,"requestStart":97,"responseStart":345,"responseEnd":380,"domLoading":349,"domInteractive":1013,"domContentLoadedEventStart":1013,"domContentLoadedEventEnd":1047,"domComplete":1393,"loadEventStart":1393,"loadEventEnd":1393,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":997.5},{"name":"bigPipe.sidebar-id.end","time":998.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":998.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":999},{"name":"activityTabFullyLoaded","time":1054.5}],"measures":[],"correlationId":"4f23403db80f00","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":184,"dbReadsTimeInMs":125,"dbConnsTimeInMs":132,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}