1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-26 05:02:32 +03:00
Files
mariadb-columnstore-engine/primitives/primproc
David.Hall 53af74b027 MCOL-1170 Fix ANALYZE to not error (#2682)
Analyze needs to be completed differently than a normal query. In server, when an ANALYZE is seen, it calls init_scan() immediatly followed by end_scan(). This leaves the sqlfrontendsession (ExeMgr) in a state where it expects to return rows. This patch fixes end_scan to clean this up via reads and writes to get everything back in synch.

ANALYZE should display the number of rows to be displayed if the query were run normally. We have that information available, but no way to return it. A modification to server side to ask for that in the handler is required.

This patch also includes a beautification of sqlfrontsessionthread.cpp since it looked bad. The important change is at line 774
if (!swallowRows)
which short circuits the actual return of data
2023-01-09 13:59:26 -06:00
..
2022-04-18 18:00:17 -04:00
2022-03-07 15:25:00 -06:00
2022-11-17 12:02:07 -06:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2016-01-06 14:08:59 -06:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-01-21 16:43:49 +00:00
2022-02-17 13:08:58 +03:00
2022-04-18 18:00:17 -04:00
2022-01-21 16:43:49 +00:00