[MCOL-4778] Recursive CTE Crashing MariaDB - fix crash produce err Created: 2021-06-26  Updated: 2023-11-17  Resolved: 2022-06-21

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 5.6.1
Fix Version/s: 6.4.1

Type: Bug Priority: Major
Reporter: Todd Stoffel (Inactive) Assignee: Sergey Zefirov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MCOL-5202 SELECT joining two empty Columnstore ... Closed
Issue split
split to MCOL-5142 Recursive CTE support Open

 Description   

CREATE DATABASE transportation;
CREATE TABLE transportation.bus_routes (origin varchar(50), dst varchar(50)) engine=columnstore;
INSERT INTO transportation.bus_routes VALUES
  ('New York', 'Boston'),
  ('Boston', 'New York'),
  ('New York', 'Washington'),
  ('Washington', 'Boston'),
  ('Washington', 'Raleigh');
WITH RECURSIVE bus_dst as ( 
    SELECT origin as dst FROM transportation.bus_routes WHERE origin='New York' 
  UNION
    SELECT bus_routes.dst FROM transportation.bus_routes JOIN bus_dst ON bus_dst.dst= bus_routes.origin 
) 
SELECT * FROM bus_dst;

ERROR 2006 (HY000): MySQL server has gone away



 Comments   
Comment by David Hall (Inactive) [ 2021-07-14 ]

Verified crash in 6.1.1

Comment by alexey vorovich (Inactive) [ 2022-06-18 ]

denis0x0D thnks
1. i opened a relat ticket for full support . linked here
2. made fixed in 641
3. do we make PR for develop at the same time ??

Comment by Daniel Lee (Inactive) [ 2022-06-21 ]

Build verified: 4.6.1-1 (#4680)

MariaDB [mytest]> WITH RECURSIVE bus_dst as ( 
    ->     SELECT origin as dst FROM transportation.bus_routes WHERE origin='New York' 
    ->   UNION
    ->     SELECT bus_routes.dst FROM transportation.bus_routes JOIN bus_dst ON bus_dst.dst= bus_routes.origin 
    -> ) 
    -> SELECT * FROM bus_dst;
ERROR 1178 (42000): The storage engine for the table doesn't support Recursive CTE

Generated at Thu Feb 08 02:52:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.