Type:
Bug
Priority:
Trivial
Resolution:
Unresolved
Affects Version/s:
10.8(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL) , 11.2(EOL) , 11.3(EOL)
Per-partitioned engine-defined attributes were implemented in 10.8 in the scope of MDEV-5271 . To my understanding, data_table is defined as such attribute in OQGraph, however it doesn't work.
--source include/have_partition.inc
INSTALL SONAME 'ha_oqgraph' ;
CREATE TABLE oq_backing (
origid INT UNSIGNED NOT NULL ,
destid INT UNSIGNED NOT NULL ,
PRIMARY KEY (origid, destid),
KEY (destid)
);
INSERT INTO oq_backing (origid, destid) VALUES (1,2), (2,3), (3,4), (4,5), (2,6), (5,6);
CREATE TABLE oq_backing1 (
origid INT UNSIGNED NOT NULL ,
destid INT UNSIGNED NOT NULL ,
PRIMARY KEY (origid, destid),
KEY (destid)
);
INSERT INTO oq_backing1 (origid, destid) VALUES (11,12), (12,13), (13,14), (14,15), (12,16), (15,16);
CREATE TABLE oq_backing2 (
origid INT UNSIGNED NOT NULL ,
destid INT UNSIGNED NOT NULL ,
PRIMARY KEY (origid, destid),
KEY (destid)
);
INSERT INTO oq_backing2 (origid, destid) VALUES (21,22), (22,23), (23,24), (24,25), (22,26), (25,26);
CREATE TABLE oq_graph (
latch VARCHAR (32) NULL ,
origid BIGINT UNSIGNED NULL ,
destid BIGINT UNSIGNED NULL ,
weight DOUBLE NULL ,
seq BIGINT UNSIGNED NULL ,
linkid BIGINT UNSIGNED NULL ,
KEY (latch, origid, destid) USING HASH,
KEY (latch, destid, origid) USING HASH
)
ENGINE=OQGRAPH
data_table= 'oq_backing' origid= 'origid' destid= 'destid'
PARTITION BY RANGE (origid) (
PARTITION p0 VALUES LESS THAN (20) data_table= 'oq_backing1' origid= 'origid' destid= 'destid' ,
PARTITION p1 VALUES LESS THAN (30) data_table= 'oq_backing2' origid= 'origid' destid= 'destid'
);
SELECT * FROM oq_graph;
DROP TABLE IF EXISTS oq_backing, oq_backing1, oq_backing2, oq_graph;
UNINSTALL SONAME 'ha_oqgraph' ;
10.8.8
SELECT * FROM oq_graph;
latch origid destid weight seq linkid
NULL 1 2 1 NULL NULL
NULL 2 3 1 NULL NULL
NULL 3 4 1 NULL NULL
NULL 4 5 1 NULL NULL
NULL 2 6 1 NULL NULL
NULL 5 6 1 NULL NULL
NULL 1 2 1 NULL NULL
NULL 2 3 1 NULL NULL
NULL 3 4 1 NULL NULL
NULL 4 5 1 NULL NULL
NULL 2 6 1 NULL NULL
NULL 5 6 1 NULL NULL
So, neither oq_backing1 nor oq_backing2 are used, instead each partition seems to be treated as a separate table with data_table='oq_backing' – default table option, which cannot be omitted because OQGraph requires it.
It works the same way without per-partition attributes – adding a partition leads to an extra set of rows in the result set.
relates to
MDEV-5271
Support engine-defined attributes per partition
Closed
No workflow transitions have been executed yet.
{"report":{"fcp":718.9000000953674,"ttfb":186,"pageVisibility":"visible","entityId":127162,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"bee0ad61-3388-4cd9-b3fe-e25ce94b4585","navigationType":0,"readyForUser":877.2999997138977,"redirectCount":0,"resourceLoadedEnd":925.4000000953674,"resourceLoadedStart":191.7999997138977,"resourceTiming":[{"duration":6.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":191.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":198.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":7.5,"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":192,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":199.5,"responseStart":0,"secureConnectionStart":0},{"duration":67.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":192.19999980926514,"connectEnd":192.19999980926514,"connectStart":192.19999980926514,"domainLookupEnd":192.19999980926514,"domainLookupStart":192.19999980926514,"fetchStart":192.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":192.19999980926514,"responseEnd":259.59999990463257,"responseStart":259.59999990463257,"secureConnectionStart":192.19999980926514},{"duration":146.09999990463257,"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":192.40000009536743,"connectEnd":192.40000009536743,"connectStart":192.40000009536743,"domainLookupEnd":192.40000009536743,"domainLookupStart":192.40000009536743,"fetchStart":192.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":192.40000009536743,"responseEnd":338.5,"responseStart":338.5,"secureConnectionStart":192.40000009536743},{"duration":149.90000009536743,"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":192.5,"connectEnd":192.5,"connectStart":192.5,"domainLookupEnd":192.5,"domainLookupStart":192.5,"fetchStart":192.5,"redirectEnd":0,"redirectStart":0,"requestStart":192.5,"responseEnd":342.40000009536743,"responseStart":342.40000009536743,"secureConnectionStart":192.5},{"duration":150.10000038146973,"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":192.7999997138977,"connectEnd":192.7999997138977,"connectStart":192.7999997138977,"domainLookupEnd":192.7999997138977,"domainLookupStart":192.7999997138977,"fetchStart":192.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":192.7999997138977,"responseEnd":342.90000009536743,"responseStart":342.90000009536743,"secureConnectionStart":192.7999997138977},{"duration":150.2999997138977,"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":192.90000009536743,"connectEnd":192.90000009536743,"connectStart":192.90000009536743,"domainLookupEnd":192.90000009536743,"domainLookupStart":192.90000009536743,"fetchStart":192.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":192.90000009536743,"responseEnd":343.19999980926514,"responseStart":343.19999980926514,"secureConnectionStart":192.90000009536743},{"duration":209.80000019073486,"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":193.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":402.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":150.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":193.2999997138977,"connectEnd":193.2999997138977,"connectStart":193.2999997138977,"domainLookupEnd":193.2999997138977,"domainLookupStart":193.2999997138977,"fetchStart":193.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":193.2999997138977,"responseEnd":343.69999980926514,"responseStart":343.69999980926514,"secureConnectionStart":193.2999997138977},{"duration":209.69999980926514,"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":193.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":403.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":150.59999990463257,"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":193.59999990463257,"connectEnd":193.59999990463257,"connectStart":193.59999990463257,"domainLookupEnd":193.59999990463257,"domainLookupStart":193.59999990463257,"fetchStart":193.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":193.59999990463257,"responseEnd":344.19999980926514,"responseStart":344.19999980926514,"secureConnectionStart":193.59999990463257},{"duration":484.19999980926514,"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":194.5,"connectEnd":194.5,"connectStart":194.5,"domainLookupEnd":194.5,"domainLookupStart":194.5,"fetchStart":194.5,"redirectEnd":0,"redirectStart":0,"requestStart":194.5,"responseEnd":678.6999998092651,"responseStart":678.6999998092651,"secureConnectionStart":194.5},{"duration":542.5999999046326,"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":194.59999990463257,"connectEnd":194.59999990463257,"connectStart":194.59999990463257,"domainLookupEnd":194.59999990463257,"domainLookupStart":194.59999990463257,"fetchStart":194.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":194.59999990463257,"responseEnd":737.1999998092651,"responseStart":737.1999998092651,"secureConnectionStart":194.59999990463257},{"duration":264.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":415,"connectEnd":415,"connectStart":415,"domainLookupEnd":415,"domainLookupStart":415,"fetchStart":415,"redirectEnd":0,"redirectStart":0,"requestStart":415,"responseEnd":679.0999999046326,"responseStart":679.0999999046326,"secureConnectionStart":415},{"duration":220.7999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":712.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":712.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":933.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":189.60000038146973,"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&whisper-enabled=true","startTime":735.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":735.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":925.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":103.7999997138977,"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&whisper-enabled=true","startTime":736.9000000953674,"connectEnd":736.9000000953674,"connectStart":736.9000000953674,"domainLookupEnd":736.9000000953674,"domainLookupStart":736.9000000953674,"fetchStart":736.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":736.9000000953674,"responseEnd":840.6999998092651,"responseStart":840.6999998092651,"secureConnectionStart":736.9000000953674},{"duration":138.19999980926514,"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&whisper-enabled=true","startTime":737.5,"connectEnd":737.5,"connectStart":737.5,"domainLookupEnd":737.5,"domainLookupStart":737.5,"fetchStart":737.5,"redirectEnd":0,"redirectStart":0,"requestStart":737.5,"responseEnd":875.6999998092651,"responseStart":875.6999998092651,"secureConnectionStart":737.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":12,"responseStart":186,"responseEnd":188,"domLoading":189,"domInteractive":971,"domContentLoadedEventStart":971,"domContentLoadedEventEnd":1019,"domComplete":1606,"loadEventStart":1606,"loadEventEnd":1607,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":941},{"name":"bigPipe.sidebar-id.end","time":941.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":942.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":942.5},{"name":"activityTabFullyLoaded","time":1030.6999998092651}],"measures":[],"correlationId":"788a445bad3ecc","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}