Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
rocksdb.type_varchar fails like this:
CURRENT_TEST: rocksdb.type_varchar
--- /home/psergey/dev-git/10.2-mariarocks/storage/rocksdb/mysql-test/rocksdb/r/type_varchar.result 2016-10-28 08:55:37.056371707 +0000
+++ /home/psergey/dev-git/10.2-mariarocks/storage/rocksdb/mysql-test/rocksdb/r/type_varchar.reject 2016-12-02 19:14:06.552690598 +0000
@@ -721,7 +721,7 @@
insert into t values (1, 'abcabcabcabcabcabcabcabcabcabcabc ');
explain select 'email_i' as index_name, count(*) AS count from t force index(email_i);
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t index NULL email_i 33 NULL # Using index
+1 SIMPLE t ALL NULL NULL NULL NULL #
select 'email_i' as index_name, count(*) AS count from t force index(email_i);
index_name count
email_i 1
@@ -734,7 +734,7 @@
insert into t values (1, 'a');
explain select 'email_i' as index_name, count(*) AS count from t force index(email_i);
id select_type table type possible_keys key key_len ref rows Extra
-1 SIMPLE t index NULL email_i 33 NULL # Using index
+1 SIMPLE t ALL NULL NULL NULL NULL #
select 'email_i' as index_name, count(*) AS count from t force index(email_i);
index_name count
email_i 1
Initially this was reported here:
https://jira.mariadb.org/browse/MDEV-9658?focusedCommentId=87896&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-87896
but in the current tree, I see the same field->part_of_key for both MariaDB and MySQL:
(gdb) p tables_arg->table->field[0]->part_of_key
warning: can't find linker symbol for virtual table for `Field' value
$89 = {map = 3}
(gdb) p tables_arg->table->field[1]->part_of_key
warning: can't find linker symbol for virtual table for `Field' value
$90 = {map = 0}
Sergei Petrunia
made changes -
2016-12-02 20:53
Fix Version/s
N/A
[ 14700
]
Resolution
Fixed
[ 1
]
Status
Open
[ 1
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:43
Workflow
MariaDB v3
[ 78617
]
MariaDB v4
[ 151317
]
{"report":{"fcp":1002.9000000953674,"ttfb":323.2000002861023,"pageVisibility":"visible","entityId":59217,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"02c929a4-5615-4778-8b39-5fdbba886711","navigationType":0,"readyForUser":1085.7000002861023,"redirectCount":0,"resourceLoadedEnd":737,"resourceLoadedStart":331,"resourceTiming":[{"duration":53.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":331,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":384.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":54.19999980926514,"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":331.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":385.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":246.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":331.40000009536743,"connectEnd":384.90000009536743,"connectStart":384.90000009536743,"domainLookupEnd":384.90000009536743,"domainLookupStart":384.90000009536743,"fetchStart":331.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":387.09999990463257,"responseEnd":578.3000001907349,"responseStart":400,"secureConnectionStart":384.90000009536743},{"duration":375.2000002861023,"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":331.59999990463257,"connectEnd":331.59999990463257,"connectStart":331.59999990463257,"domainLookupEnd":331.59999990463257,"domainLookupStart":331.59999990463257,"fetchStart":331.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":389.59999990463257,"responseEnd":706.8000001907349,"responseStart":412.59999990463257,"secureConnectionStart":331.59999990463257},{"duration":85.40000009536743,"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":331.80000019073486,"connectEnd":331.80000019073486,"connectStart":331.80000019073486,"domainLookupEnd":331.80000019073486,"domainLookupStart":331.80000019073486,"fetchStart":331.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":390.7000002861023,"responseEnd":417.2000002861023,"responseStart":415.80000019073486,"secureConnectionStart":331.80000019073486},{"duration":81.30000019073486,"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":332,"connectEnd":332,"connectStart":332,"domainLookupEnd":332,"domainLookupStart":332,"fetchStart":332,"redirectEnd":0,"redirectStart":0,"requestStart":391,"responseEnd":413.30000019073486,"responseStart":409.2000002861023,"secureConnectionStart":332},{"duration":80.5,"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":332.09999990463257,"connectEnd":332.09999990463257,"connectStart":332.09999990463257,"domainLookupEnd":332.09999990463257,"domainLookupStart":332.09999990463257,"fetchStart":332.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":391.2000002861023,"responseEnd":412.59999990463257,"responseStart":408.5,"secureConnectionStart":332.09999990463257},{"duration":54.40000009536743,"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":332.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":81.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":332.40000009536743,"connectEnd":332.40000009536743,"connectStart":332.40000009536743,"domainLookupEnd":332.40000009536743,"domainLookupStart":332.40000009536743,"fetchStart":332.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":391.40000009536743,"responseEnd":413.59999990463257,"responseStart":410.2000002861023,"secureConnectionStart":332.40000009536743},{"duration":54.89999961853027,"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":332.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":387.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":84.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":332.90000009536743,"connectEnd":332.90000009536743,"connectStart":332.90000009536743,"domainLookupEnd":332.90000009536743,"domainLookupStart":332.90000009536743,"fetchStart":332.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":391.7000002861023,"responseEnd":417.5,"responseStart":416.59999990463257,"secureConnectionStart":332.90000009536743},{"duration":393.90000009536743,"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":336.90000009536743,"connectEnd":336.90000009536743,"connectStart":336.90000009536743,"domainLookupEnd":336.90000009536743,"domainLookupStart":336.90000009536743,"fetchStart":336.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":521.0999999046326,"responseEnd":730.8000001907349,"responseStart":726.8000001907349,"secureConnectionStart":336.90000009536743},{"duration":400,"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":337,"connectEnd":337,"connectStart":337,"domainLookupEnd":337,"domainLookupStart":337,"fetchStart":337,"redirectEnd":0,"redirectStart":0,"requestStart":629,"responseEnd":737,"responseStart":731.0999999046326,"secureConnectionStart":337},{"duration":112.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":739.9000000953674,"connectEnd":739.9000000953674,"connectStart":739.9000000953674,"domainLookupEnd":739.9000000953674,"domainLookupStart":739.9000000953674,"fetchStart":739.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":817.8000001907349,"responseEnd":852.3000001907349,"responseStart":851.0999999046326,"secureConnectionStart":739.9000000953674},{"duration":196.2999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":995.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":995.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1191.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":237.60000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1002.0999999046326,"connectEnd":1002.0999999046326,"connectStart":1002.0999999046326,"domainLookupEnd":1002.0999999046326,"domainLookupStart":1002.0999999046326,"fetchStart":1002.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1207.7000002861023,"responseEnd":1239.7000002861023,"responseStart":1238.0999999046326,"secureConnectionStart":1002.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":115,"responseStart":323,"responseEnd":331,"domLoading":327,"domInteractive":1194,"domContentLoadedEventStart":1194,"domContentLoadedEventEnd":1255,"domComplete":1608,"loadEventStart":1608,"loadEventEnd":1608,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1162.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1163.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1163.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1166.2000002861023},{"name":"activityTabFullyLoaded","time":1271.0999999046326}],"measures":[],"correlationId":"1b42f77a3612c0","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":124,"dbReadsTimeInMs":18,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
At start of make_join_statistics:
MariaDB:
(gdb) p tables_list.head()->table->covering_keys
$306 = {map = 0}
MySQL:
(gdb) p table->covering_keys
$94 = {map = 2}
covering_keys is initially set in setup_table_map():
MySQL:
(gdb) p table->s->keys_for_keyread
$108 = {map = 3}
MariaDB:
(gdb) p table->s->keys_for_keyread
$317 = {map = 1}
In both cases, setup_table_map does this:
table->covering_keys= table->s->keys_for_keyread;