The same query returns different results under different configurations of optimize_join_buffer_size.
CREATE TABLE t0(c0 CHAR (100));
CREATE TABLE t1(c0 CHAR (100));
INSERT INTO t1 VALUES ( '\r' );
INSERT INTO t0 VALUES ( '' );
INSERT INTO t1 VALUES ( '' );
SET SESSION join_buffer_size = 6503032224856747123;
INSERT INTO t0 VALUES ( 'a' );
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}
SET STATEMENT optimizer_switch = 'optimize_join_buffer_size=off' FOR SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}, {'a'}
Sergei Golubchik
made changes -
2023-09-06 21:28
Field
Original Value
New Value
Description
The same query returns different results under different configurations of optimize_join_buffer_size.
CREATE TABLE t0(c0 CHAR(100));
CREATE TABLE t1(c0 CHAR(100));
INSERT INTO t1 VALUES ('\r');
INSERT INTO t0 VALUES ('');
INSERT INTO t1 VALUES ('');
SET SESSION join_buffer_size = 6503032224856747123;
INSERT INTO t0 VALUES ('a');
SET SESSION optimizer_switch = 'optimize_join_buffer_size=on';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}
SET SESSION optimizer_switch = 'optimize_join_buffer_size=off';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}, {'a'}
The same query returns different results under different configurations of optimize_join_buffer_size.
{code:sql|
CREATE TABLE t0(c0 CHAR(100));
CREATE TABLE t1(c0 CHAR(100));
INSERT INTO t1 VALUES ('\r');
INSERT INTO t0 VALUES ('');
INSERT INTO t1 VALUES ('');
SET SESSION join_buffer_size = 6503032224856747123;
INSERT INTO t0 VALUES ('a');
SET SESSION optimizer_switch = 'optimize_join_buffer_size=on';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}
SET SESSION optimizer_switch = 'optimize_join_buffer_size=off';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}, {'a'}
{code}
Sergei Golubchik
made changes -
2023-09-06 21:28
Description
The same query returns different results under different configurations of optimize_join_buffer_size.
{code:sql|
CREATE TABLE t0(c0 CHAR(100));
CREATE TABLE t1(c0 CHAR(100));
INSERT INTO t1 VALUES ('\r');
INSERT INTO t0 VALUES ('');
INSERT INTO t1 VALUES ('');
SET SESSION join_buffer_size = 6503032224856747123;
INSERT INTO t0 VALUES ('a');
SET SESSION optimizer_switch = 'optimize_join_buffer_size=on';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}
SET SESSION optimizer_switch = 'optimize_join_buffer_size=off';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}, {'a'}
{code}
The same query returns different results under different configurations of optimize_join_buffer_size.
{code:sql}
CREATE TABLE t0(c0 CHAR(100));
CREATE TABLE t1(c0 CHAR(100));
INSERT INTO t1 VALUES ('\r');
INSERT INTO t0 VALUES ('');
INSERT INTO t1 VALUES ('');
SET SESSION join_buffer_size = 6503032224856747123;
INSERT INTO t0 VALUES ('a');
SET SESSION optimizer_switch = 'optimize_join_buffer_size=on';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}
SET SESSION optimizer_switch = 'optimize_join_buffer_size=off';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}, {'a'}
{code}
Sergei Golubchik
made changes -
2023-09-06 21:29
Assignee
Sergei Petrunia
[ psergey
]
Jinsheng Ba
made changes -
2023-09-19 00:22
Description
The same query returns different results under different configurations of optimize_join_buffer_size.
{code:sql}
CREATE TABLE t0(c0 CHAR(100));
CREATE TABLE t1(c0 CHAR(100));
INSERT INTO t1 VALUES ('\r');
INSERT INTO t0 VALUES ('');
INSERT INTO t1 VALUES ('');
SET SESSION join_buffer_size = 6503032224856747123;
INSERT INTO t0 VALUES ('a');
SET SESSION optimizer_switch = 'optimize_join_buffer_size=on';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}
SET SESSION optimizer_switch = 'optimize_join_buffer_size=off';
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}, {'a'}
{code}
The same query returns different results under different configurations of optimize_join_buffer_size.
{code:sql}
CREATE TABLE t0(c0 CHAR(100));
CREATE TABLE t1(c0 CHAR(100));
INSERT INTO t1 VALUES ('\r');
INSERT INTO t0 VALUES ('');
INSERT INTO t1 VALUES ('');
SET SESSION join_buffer_size = 6503032224856747123;
INSERT INTO t0 VALUES ('a');
SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}
SET STATEMENT optimizer_switch = 'optimize_join_buffer_size=off' FOR SELECT t0.c0 FROM t0 INNER JOIN t1 ON (t1.c0 REGEXP t1.c0); -- {}, {'a'}, {'a'}
{code}
{"report":{"fcp":1474.0999999046326,"ttfb":429,"pageVisibility":"visible","entityId":124825,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"01746dec-2ad8-4c37-9379-8aabed167bbf","navigationType":0,"readyForUser":1547,"redirectCount":0,"resourceLoadedEnd":1206.0999999046326,"resourceLoadedStart":433.59999990463257,"resourceTiming":[{"duration":386.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":433.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":820.5,"responseStart":0,"secureConnectionStart":0},{"duration":387.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":433.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":821.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":612.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":434.09999990463257,"connectEnd":434.09999990463257,"connectStart":434.09999990463257,"domainLookupEnd":434.09999990463257,"domainLookupStart":434.09999990463257,"fetchStart":434.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":824.8999996185303,"responseEnd":1046.1999998092651,"responseStart":844.5,"secureConnectionStart":434.09999990463257},{"duration":762.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":434.19999980926514,"connectEnd":823.8999996185303,"connectStart":823.8999996185303,"domainLookupEnd":823.8999996185303,"domainLookupStart":823.8999996185303,"fetchStart":434.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":824.3999996185303,"responseEnd":1197,"responseStart":839.6999998092651,"secureConnectionStart":823.8999996185303},{"duration":404.2000002861023,"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":434.3999996185303,"connectEnd":434.3999996185303,"connectStart":434.3999996185303,"domainLookupEnd":434.3999996185303,"domainLookupStart":434.3999996185303,"fetchStart":434.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":825,"responseEnd":838.5999999046326,"responseStart":837.5999999046326,"secureConnectionStart":434.3999996185303},{"duration":416.40000009536743,"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":434.59999990463257,"connectEnd":434.59999990463257,"connectStart":434.59999990463257,"domainLookupEnd":434.59999990463257,"domainLookupStart":434.59999990463257,"fetchStart":434.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":827.8999996185303,"responseEnd":851,"responseStart":849.7999997138977,"secureConnectionStart":434.59999990463257},{"duration":415.59999990463257,"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":434.69999980926514,"connectEnd":434.69999980926514,"connectStart":434.69999980926514,"domainLookupEnd":434.69999980926514,"domainLookupStart":434.69999980926514,"fetchStart":434.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":827.5999999046326,"responseEnd":850.2999997138977,"responseStart":849,"secureConnectionStart":434.69999980926514},{"duration":391.1000003814697,"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":434.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":434.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":826,"responseStart":0,"secureConnectionStart":0},{"duration":416.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":435,"connectEnd":435,"connectStart":435,"domainLookupEnd":435,"domainLookupStart":435,"fetchStart":435,"redirectEnd":0,"redirectStart":0,"requestStart":828.5999999046326,"responseEnd":851.3999996185303,"responseStart":850.3999996185303,"secureConnectionStart":435},{"duration":393,"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":435.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":435.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":828.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":417,"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":439.3999996185303,"connectEnd":439.3999996185303,"connectStart":439.3999996185303,"domainLookupEnd":439.3999996185303,"domainLookupStart":439.3999996185303,"fetchStart":439.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":831.5999999046326,"responseEnd":856.3999996185303,"responseStart":855.3999996185303,"secureConnectionStart":439.3999996185303},{"duration":762.7000002861023,"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":442.8999996185303,"connectEnd":442.8999996185303,"connectStart":442.8999996185303,"domainLookupEnd":442.8999996185303,"domainLookupStart":442.8999996185303,"fetchStart":442.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":962.7999997138977,"responseEnd":1205.5999999046326,"responseStart":1198.3999996185303,"secureConnectionStart":442.8999996185303},{"duration":763.0999999046326,"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":443,"connectEnd":443,"connectStart":443,"domainLookupEnd":443,"domainLookupStart":443,"fetchStart":443,"redirectEnd":0,"redirectStart":0,"requestStart":1049.0999999046326,"responseEnd":1206.0999999046326,"responseStart":1199.5,"secureConnectionStart":443},{"duration":165.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1175.2999997138977,"connectEnd":1175.2999997138977,"connectStart":1175.2999997138977,"domainLookupEnd":1175.2999997138977,"domainLookupStart":1175.2999997138977,"fetchStart":1175.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1305.5,"responseEnd":1341,"responseStart":1340.0999999046326,"secureConnectionStart":1175.2999997138977}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":236,"responseStart":429,"responseEnd":442,"domLoading":432,"domInteractive":1639,"domContentLoadedEventStart":1639,"domContentLoadedEventEnd":1689,"domComplete":2276,"loadEventStart":2276,"loadEventEnd":2276,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1616.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1617.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1617.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1619.5},{"name":"activityTabFullyLoaded","time":1708.8999996185303}],"measures":[],"correlationId":"7bb1d691218ffe","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":17,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
May I check whether there is any update about this report? Thanks!