Here's the mysql session log:
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 5
|
Server version: 10.0.8-MariaDB-log Source distribution
|
|
Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
MariaDB [(none)]> create database test;
|
Query OK, 1 row affected (0.00 sec)
|
|
MariaDB [(none)]> use test;
|
Database changed
|
MariaDB [test]> CREATE TABLE t (id bigint(20), name varchar(30),
|
parent bigint(20), primary key (id)) ENGINE=InnoDB;
|
Query OK, 0 rows affected (0.27 sec)
|
|
MariaDB [test]> INSERT INTO t values (1, 'a', NULL), (4, 'b', 1), (5,
|
'c', 4), (10, 'd', 1);
|
Query OK, 4 rows affected (0.04 sec)
|
Records: 4 Duplicates: 0 Warnings: 0
|
MariaDB [test]> SELECT t1.id, t1.name, t2.id, t2.name FROM t t1 LEFT
|
OUTER JOIN t t2 ON (t1.parent = t2.id and t2.name <> 'a') GROUP BY
|
t1.id;
|
+----+------+------+------+
|
| id | name | id | name |
|
+----+------+------+------+
|
| 1 | a | NULL | NULL |
|
| 4 | b | NULL | NULL |
|
| 5 | c | NULL | NULL |
|
| 10 | d | NULL | NULL |
|
+----+------+------+------+
|
4 rows in set (0.00 sec)
|
MariaDB [test]> SELECT t1.id, t1.name, t2.id, t2.name FROM t t1 LEFT
|
OUTER JOIN t t2 ON (t1.parent = t2.id and t2.name <> 'a');
|
+----+------+------+------+
|
| id | name | id | name |
|
+----+------+------+------+
|
| 1 | a | NULL | NULL |
|
| 4 | b | NULL | NULL |
|
| 5 | c | 4 | b |
|
| 10 | d | NULL | NULL |
|
+----+------+------+------+
|
4 rows in set (0.00 sec)
|
MariaDB [test]> SELECT t1.id, t1.name, t2.id, t2.name FROM t t1 LEFT
|
OUTER JOIN t t2 ON (t1.parent = t2.id and t2.name <> 'a') GROUP BY
|
t1.id, t1.name;
|
+----+------+------+------+
|
| id | name | id | name |
|
+----+------+------+------+
|
| 1 | a | NULL | NULL |
|
| 4 | b | NULL | NULL |
|
| 5 | c | 4 | b |
|
| 10 | d | NULL | NULL |
|
+----+------+------+------+
|
4 rows in set (0.00 sec)
|
MariaDB [test]> SELECT t1.id, t1.name, t2.id, t2.name FROM t t1 LEFT
|
OUTER JOIN t t2 ON (t1.parent = t2.id) GROUP BY t1.id;
|
+----+------+------+------+
|
| id | name | id | name |
|
+----+------+------+------+
|
| 1 | a | NULL | NULL |
|
| 4 | b | 1 | a |
|
| 5 | c | 4 | b |
|
| 10 | d | 1 | a |
|
+----+------+------+------+
|
4 rows in set (0.00 sec)
|
As you see the first query returns NULLs instead of real values which
can be seen in second query without GROUP BY. And if I add another
column to GROUP BY or remove one condition from JOIN I can see real
values again. I've also tested with the table without PRIMARY KEY and
it also returned real values in the first query.
{"report":{"fcp":896.9000005722046,"ttfb":256.9000005722046,"pageVisibility":"visible","entityId":31100,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9fc4430b-fe16-480b-a680-2986a633aff6","navigationType":0,"readyForUser":1001.9000005722046,"redirectCount":0,"resourceLoadedEnd":612.9000005722046,"resourceLoadedStart":262.1000003814697,"resourceTiming":[{"duration":48.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":262.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":310.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":49,"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":262.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":311.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":240.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":262.5,"connectEnd":262.5,"connectStart":262.5,"domainLookupEnd":262.5,"domainLookupStart":262.5,"fetchStart":262.5,"redirectEnd":0,"redirectStart":0,"requestStart":314.80000019073486,"responseEnd":503.4000005722046,"responseStart":344.1000003814697,"secureConnectionStart":262.5},{"duration":350.20000076293945,"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":262.69999980926514,"connectEnd":262.69999980926514,"connectStart":262.69999980926514,"domainLookupEnd":262.69999980926514,"domainLookupStart":262.69999980926514,"fetchStart":262.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":314.5,"responseEnd":612.9000005722046,"responseStart":387.9000005722046,"secureConnectionStart":262.69999980926514},{"duration":83.29999923706055,"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":262.9000005722046,"connectEnd":262.9000005722046,"connectStart":262.9000005722046,"domainLookupEnd":262.9000005722046,"domainLookupStart":262.9000005722046,"fetchStart":262.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":315.1000003814697,"responseEnd":346.19999980926514,"responseStart":343.30000019073486,"secureConnectionStart":262.9000005722046},{"duration":91.80000019073486,"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":263,"connectEnd":263,"connectStart":263,"domainLookupEnd":263,"domainLookupStart":263,"fetchStart":263,"redirectEnd":0,"redirectStart":0,"requestStart":315.9000005722046,"responseEnd":354.80000019073486,"responseStart":353.6000003814697,"secureConnectionStart":263},{"duration":93.30000019073486,"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":263.19999980926514,"connectEnd":263.19999980926514,"connectStart":263.19999980926514,"domainLookupEnd":263.19999980926514,"domainLookupStart":263.19999980926514,"fetchStart":263.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":317.4000005722046,"responseEnd":356.5,"responseStart":355.1000003814697,"secureConnectionStart":263.19999980926514},{"duration":53.10000038146973,"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":263.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":263.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":316.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":216.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":263.69999980926514,"connectEnd":263.69999980926514,"connectStart":263.69999980926514,"domainLookupEnd":263.69999980926514,"domainLookupStart":263.69999980926514,"fetchStart":263.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":318.4000005722046,"responseEnd":480.19999980926514,"responseStart":478.69999980926514,"secureConnectionStart":263.69999980926514},{"duration":53.39999961853027,"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":263.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":263.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":317.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":105.10000038146973,"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":264,"connectEnd":264,"connectStart":264,"domainLookupEnd":264,"domainLookupStart":264,"fetchStart":264,"redirectEnd":0,"redirectStart":0,"requestStart":323.80000019073486,"responseEnd":369.1000003814697,"responseStart":367.9000005722046,"secureConnectionStart":264},{"duration":333.8999996185303,"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":269.6000003814697,"connectEnd":269.6000003814697,"connectStart":269.6000003814697,"domainLookupEnd":269.6000003814697,"domainLookupStart":269.6000003814697,"fetchStart":269.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":381.5,"responseEnd":603.5,"responseStart":600,"secureConnectionStart":269.6000003814697},{"duration":340.6000003814697,"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":269.69999980926514,"connectEnd":269.69999980926514,"connectStart":269.69999980926514,"domainLookupEnd":269.69999980926514,"domainLookupStart":269.69999980926514,"fetchStart":269.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":399.9000005722046,"responseEnd":610.3000001907349,"responseStart":605,"secureConnectionStart":269.69999980926514},{"duration":132.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":651.6999998092651,"connectEnd":651.6999998092651,"connectStart":651.6999998092651,"domainLookupEnd":651.6999998092651,"domainLookupStart":651.6999998092651,"fetchStart":651.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":748.1999998092651,"responseEnd":784.1999998092651,"responseStart":782.1999998092651,"secureConnectionStart":651.6999998092651},{"duration":204.39999961853027,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":889.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":889.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1094,"responseStart":0,"secureConnectionStart":0},{"duration":152.39999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":895.6000003814697,"connectEnd":895.6000003814697,"connectStart":895.6000003814697,"domainLookupEnd":895.6000003814697,"domainLookupStart":895.6000003814697,"fetchStart":895.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1011.8000001907349,"responseEnd":1048,"responseStart":1046.9000005722046,"secureConnectionStart":895.6000003814697}],"fetchStart":0,"domainLookupStart":34,"domainLookupEnd":41,"connectStart":41,"connectEnd":60,"secureConnectionStart":49,"requestStart":61,"responseStart":256,"responseEnd":264,"domLoading":260,"domInteractive":1121,"domContentLoadedEventStart":1121,"domContentLoadedEventEnd":1179,"domComplete":1705,"loadEventStart":1706,"loadEventEnd":1706,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1096.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1097},{"name":"bigPipe.activity-panel-pipe-id.start","time":1097.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1098.6999998092651},{"name":"activityTabFullyLoaded","time":1196.6000003814697}],"measures":[],"correlationId":"64b39f8702f01e","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":114,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
http://lists.askmonty.org/pipermail/commits/2015-January/007324.html