[MDEV-19151] Recursive CTE must properly respect parenthesis Created: 2019-04-03  Updated: 2021-10-25

Status: Open
Project: MariaDB Server
Component/s: Optimizer - CTE
Fix Version/s: None

Type: Task Priority: Major
Reporter: Igor Babaev Assignee: Igor Babaev
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Now when parenthesis (brackets) is properly supported for query expressions numerous limitations imposed on recursive CTE must be lifted. In particular,

  • mix of UNION and UNION ALL must be allowed
  • INTERSECT and EXCEPT don't have to be wrapped into derived tables.
    At same time the rules of partitioning a recursive CTE specification for non-recursive and recursive part must strictly follow the SQL standard. This partitioning must be ascertained by the top level operation of the CTE specification and this operation must be either UNION or UNION ALL

Generated at Thu Feb 08 08:49:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.