Type:
Task
Priority:
Critical
Resolution:
Fixed
It comes out that server doesn't honors group by handlers that supports OFFSET on their own and the server code in select_send::send_data tries to reapply OFFSET to the set returned by the handler[1]
select i from t1 group by i limit 10,20; # Start from offset 10
There is only engine that supports both group by handler and internal sorting ATM, so one could reproduce this only with columnstore engine built of:
develop branch columnstore fork of the server's code
develop branch columnstore engine
1. https://hastebin.com/afepesalez.cs
Roman
created issue -
2018-05-30 08:07
Roman
made changes -
2018-05-30 08:09
Field
Original Value
New Value
Link
This issue is part of MCOL-1052
[ MCOL-1052
]
Sergei Golubchik
made changes -
2018-06-15 15:20
Assignee
Sergei Golubchik
[ serg
]
Sergei Golubchik
made changes -
2018-06-15 15:20
Priority
Minor
[ 4
]
Major
[ 3
]
Sergei Golubchik
made changes -
2018-06-15 15:21
Fix Version/s
10.3
[ 22126
]
Fix Version/s
10.2
[ 14601
]
Roman
made changes -
2018-06-29 10:24
Labels
RM_104_CS_mandatory
Sergei Golubchik
made changes -
2018-07-01 15:28
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.3
[ 22126
]
Ralf Gebhardt
made changes -
2018-08-03 06:43
Priority
Major
[ 3
]
Critical
[ 2
]
Ralf Gebhardt
made changes -
2018-11-20 13:36
Epic Link
PT-81
[ 68562
]
Ralf Gebhardt
made changes -
2018-11-20 13:36
Labels
RM_104_CS_mandatory
Michael Widenius
made changes -
2018-12-04 15:05
Description
It comes out that server doesn't honors group by handlers that supports OFFSET on their own and the server code in select_send::send_data tries to reapply OFFSET to the set returned by the handler[1]
There is only engine that supports both group by handler and internal sorting ATM, so one could reproduce this only with columnstore engine built of:
- develop branch columnstore fork of the server's code
- develop branch columnstore engine
1. https://hastebin.com/afepesalez.cs
It comes out that server doesn't honors group by handlers that supports OFFSET on their own and the server code in select_send::send_data tries to reapply OFFSET to the set returned by the handler[1]
select i from t1 group by i limit 10,20; # Start from offset 10
There is only engine that supports both group by handler and internal sorting ATM, so one could reproduce this only with columnstore engine built of:
- develop branch columnstore fork of the server's code
- develop branch columnstore engine
1. https://hastebin.com/afepesalez.cs
Oleksandr Byelkin
made changes -
2019-01-07 11:53
Status
Open
[ 1
]
In Progress
[ 3
]
Oleksandr Byelkin
made changes -
2019-01-15 11:41
Status
In Progress
[ 3
]
Stalled
[ 10000
]
Ralf Gebhardt
made changes -
2019-02-12 14:23
Epic Link
PT-81
[ 68562
]
Ralf Gebhardt
made changes -
2019-02-12 14:23
NRE Projects
RM_104_CS_mandatory
Ralf Gebhardt
made changes -
2019-02-13 07:28
Issue Type
Task
[ 3
]
Bug
[ 1
]
Oleksandr Byelkin
made changes -
2019-04-02 13:37
Fix Version/s
10.5
[ 23123
]
Fix Version/s
10.4
[ 22408
]
Oleksandr Byelkin
made changes -
2019-09-25 09:32
Status
Stalled
[ 10000
]
In Progress
[ 3
]
Oleksandr Byelkin
made changes -
2019-10-13 07:58
Component/s
Optimizer
[ 10200
]
Fix Version/s
10.5.0
[ 23709
]
Fix Version/s
10.5
[ 23123
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:23
Workflow
MariaDB v3
[ 87559
]
MariaDB v4
[ 133565
]
{"report":{"fcp":1876.7000007629395,"ttfb":409.20000076293945,"pageVisibility":"visible","entityId":67855,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"862c0778-ae68-4df0-8389-c9bf30c31f36","navigationType":0,"readyForUser":1935.2000007629395,"redirectCount":0,"resourceLoadedEnd":2271.9000005722046,"resourceLoadedStart":421.1000003814697,"resourceTiming":[{"duration":841,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":421.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":421.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1262.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":841,"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":421.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":421.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1262.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":885.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":421.70000076293945,"connectEnd":421.70000076293945,"connectStart":421.70000076293945,"domainLookupEnd":421.70000076293945,"domainLookupStart":421.70000076293945,"fetchStart":421.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":421.70000076293945,"responseEnd":1307.3000001907349,"responseStart":1307.3000001907349,"secureConnectionStart":421.70000076293945},{"duration":980.9000005722046,"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":422.5,"connectEnd":422.5,"connectStart":422.5,"domainLookupEnd":422.5,"domainLookupStart":422.5,"fetchStart":422.5,"redirectEnd":0,"redirectStart":0,"requestStart":422.5,"responseEnd":1403.4000005722046,"responseStart":1403.4000005722046,"secureConnectionStart":422.5},{"duration":984.5,"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":422.70000076293945,"connectEnd":422.70000076293945,"connectStart":422.70000076293945,"domainLookupEnd":422.70000076293945,"domainLookupStart":422.70000076293945,"fetchStart":422.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":422.70000076293945,"responseEnd":1407.2000007629395,"responseStart":1407.2000007629395,"secureConnectionStart":422.70000076293945},{"duration":984.6999998092651,"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":422.9000005722046,"connectEnd":422.9000005722046,"connectStart":422.9000005722046,"domainLookupEnd":422.9000005722046,"domainLookupStart":422.9000005722046,"fetchStart":422.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":422.9000005722046,"responseEnd":1407.6000003814697,"responseStart":1407.6000003814697,"secureConnectionStart":422.9000005722046},{"duration":985,"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":423,"connectEnd":423,"connectStart":423,"domainLookupEnd":423,"domainLookupStart":423,"fetchStart":423,"redirectEnd":0,"redirectStart":0,"requestStart":423,"responseEnd":1408,"responseStart":1408,"secureConnectionStart":423},{"duration":1054.5,"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":423.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":423.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1477.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":985.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":423.30000019073486,"connectEnd":423.30000019073486,"connectStart":423.30000019073486,"domainLookupEnd":423.30000019073486,"domainLookupStart":423.30000019073486,"fetchStart":423.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":423.30000019073486,"responseEnd":1408.8000001907349,"responseStart":1408.8000001907349,"secureConnectionStart":423.30000019073486},{"duration":1054.4000005722046,"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":423.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":423.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1477.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":986,"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":423.70000076293945,"connectEnd":423.70000076293945,"connectStart":423.70000076293945,"domainLookupEnd":423.70000076293945,"domainLookupStart":423.70000076293945,"fetchStart":423.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":423.70000076293945,"responseEnd":1409.7000007629395,"responseStart":1409.7000007629395,"secureConnectionStart":423.70000076293945},{"duration":1718.0999994277954,"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":426.4000005722046,"connectEnd":426.4000005722046,"connectStart":426.4000005722046,"domainLookupEnd":426.4000005722046,"domainLookupStart":426.4000005722046,"fetchStart":426.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":426.4000005722046,"responseEnd":2144.5,"responseStart":2144.5,"secureConnectionStart":426.4000005722046},{"duration":1822.8000001907349,"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":449.1000003814697,"connectEnd":449.1000003814697,"connectStart":449.1000003814697,"domainLookupEnd":449.1000003814697,"domainLookupStart":449.1000003814697,"fetchStart":449.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":449.1000003814697,"responseEnd":2271.9000005722046,"responseStart":2271.9000005722046,"secureConnectionStart":449.1000003814697},{"duration":669.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1491.1000003814697,"connectEnd":1491.1000003814697,"connectStart":1491.1000003814697,"domainLookupEnd":1491.1000003814697,"domainLookupStart":1491.1000003814697,"fetchStart":1491.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1491.1000003814697,"responseEnd":2160.7000007629395,"responseStart":2160.7000007629395,"secureConnectionStart":1491.1000003814697},{"duration":457.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1869,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1869,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2326.800000190735,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":177,"responseStart":409,"responseEnd":449,"domLoading":416,"domInteractive":2331,"domContentLoadedEventStart":2331,"domContentLoadedEventEnd":2386,"domComplete":2822,"loadEventStart":2822,"loadEventEnd":2822,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2277.7000007629395},{"name":"bigPipe.sidebar-id.end","time":2278.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":2278.7000007629395},{"name":"bigPipe.activity-panel-pipe-id.end","time":2284.300000190735},{"name":"activityTabFullyLoaded","time":2417.300000190735}],"measures":[],"correlationId":"f39fdc5b6d94ab","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":174,"dbReadsTimeInMs":35,"dbConnsTimeInMs":45,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
monty, serg, drrtuy: Hi! As I can see (maybe I am wrong) group by handler do not signal what condition it accept and process (so we have to check HAVING twice for example), naturally it will not work for OFFSET, so I think of call like group_by_handler::is_limit_processed() (false by default) to remove LIMIT/OFFSET for the query if it will be processed by the engine. Is it OK?