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
There are no comments yet on this issue.
{"report":{"fcp":1812.1000003814697,"ttfb":287.20000076293945,"pageVisibility":"visible","entityId":127162,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9cb96960-6676-4bb3-8ed8-3e04a5208b40","navigationType":0,"readyForUser":1921.6000003814697,"redirectCount":0,"resourceLoadedEnd":1985.9000005722046,"resourceLoadedStart":293.1000003814697,"resourceTiming":[{"duration":915.1999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":293.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":293.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1208.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":915.1999998092651,"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":293.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":293.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1208.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":931.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":293.5,"connectEnd":293.5,"connectStart":293.5,"domainLookupEnd":293.5,"domainLookupStart":293.5,"fetchStart":293.5,"redirectEnd":0,"redirectStart":0,"requestStart":293.5,"responseEnd":1224.9000005722046,"responseStart":1224.9000005722046,"secureConnectionStart":293.5},{"duration":1036.1999998092651,"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":293.80000019073486,"connectEnd":293.80000019073486,"connectStart":293.80000019073486,"domainLookupEnd":293.80000019073486,"domainLookupStart":293.80000019073486,"fetchStart":293.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":293.80000019073486,"responseEnd":1330,"responseStart":1330,"secureConnectionStart":293.80000019073486},{"duration":1041,"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":294,"connectEnd":294,"connectStart":294,"domainLookupEnd":294,"domainLookupStart":294,"fetchStart":294,"redirectEnd":0,"redirectStart":0,"requestStart":294,"responseEnd":1335,"responseStart":1335,"secureConnectionStart":294},{"duration":1041.3999996185303,"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":294.1000003814697,"connectEnd":294.1000003814697,"connectStart":294.1000003814697,"domainLookupEnd":294.1000003814697,"domainLookupStart":294.1000003814697,"fetchStart":294.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":294.1000003814697,"responseEnd":1335.5,"responseStart":1335.5,"secureConnectionStart":294.1000003814697},{"duration":1041.7999992370605,"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":294.20000076293945,"connectEnd":294.20000076293945,"connectStart":294.20000076293945,"domainLookupEnd":294.20000076293945,"domainLookupStart":294.20000076293945,"fetchStart":294.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":294.20000076293945,"responseEnd":1336,"responseStart":1336,"secureConnectionStart":294.20000076293945},{"duration":1135.6999998092651,"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":294.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":294.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1430.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":1042.2000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":294.5,"connectEnd":294.5,"connectStart":294.5,"domainLookupEnd":294.5,"domainLookupStart":294.5,"fetchStart":294.5,"redirectEnd":0,"redirectStart":0,"requestStart":294.5,"responseEnd":1336.7000007629395,"responseStart":1336.7000007629395,"secureConnectionStart":294.5},{"duration":1135.5,"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":294.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":294.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1430.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":1042.5,"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":295,"connectEnd":295,"connectStart":295,"domainLookupEnd":295,"domainLookupStart":295,"fetchStart":295,"redirectEnd":0,"redirectStart":0,"requestStart":295,"responseEnd":1337.5,"responseStart":1337.5,"secureConnectionStart":295},{"duration":1394,"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":302.4000005722046,"connectEnd":302.4000005722046,"connectStart":302.4000005722046,"domainLookupEnd":302.4000005722046,"domainLookupStart":302.4000005722046,"fetchStart":302.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":302.4000005722046,"responseEnd":1696.4000005722046,"responseStart":1696.4000005722046,"secureConnectionStart":302.4000005722046},{"duration":1681.9000005722046,"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":302.5,"connectEnd":302.5,"connectStart":302.5,"domainLookupEnd":302.5,"domainLookupStart":302.5,"fetchStart":302.5,"redirectEnd":0,"redirectStart":0,"requestStart":302.5,"responseEnd":1984.4000005722046,"responseStart":1984.4000005722046,"secureConnectionStart":302.5},{"duration":273.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1444.4000005722046,"connectEnd":1444.4000005722046,"connectStart":1444.4000005722046,"domainLookupEnd":1444.4000005722046,"domainLookupStart":1444.4000005722046,"fetchStart":1444.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1444.4000005722046,"responseEnd":1717.9000005722046,"responseStart":1717.9000005722046,"secureConnectionStart":1444.4000005722046},{"duration":240.19999980926514,"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":1745.7000007629395,"connectEnd":1745.7000007629395,"connectStart":1745.7000007629395,"domainLookupEnd":1745.7000007629395,"domainLookupStart":1745.7000007629395,"fetchStart":1745.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":1745.7000007629395,"responseEnd":1985.9000005722046,"responseStart":1985.9000005722046,"secureConnectionStart":1745.7000007629395},{"duration":261.29999923706055,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1802.2000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1802.2000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2063.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":103,"responseStart":287,"responseEnd":302,"domLoading":291,"domInteractive":2099,"domContentLoadedEventStart":2100,"domContentLoadedEventEnd":2154,"domComplete":2572,"loadEventStart":2572,"loadEventEnd":2573,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2064.7000007629395},{"name":"bigPipe.sidebar-id.end","time":2065.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":2065.800000190735},{"name":"bigPipe.activity-panel-pipe-id.end","time":2066.300000190735},{"name":"activityTabFullyLoaded","time":2167}],"measures":[],"correlationId":"a5789670ab384","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}