New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MDEV-9864 - Implement recursive common table expressions #182
Conversation
…w> was recursive. Added a test case to check the fix.
…ecursive(). Added the check whether there are set functions in the specifications of recursive CTE. Added the check whether there are recursive references in subqueries. Introduced boolean system variable 'standards_compliant_cte'. By default it's set to 'on'. When it's set to 'off' non-standard compliant CTE can be executed.
…ITH clauses without RECURSIVE. Added test cases to check the fix. Fixed the problem of wrong types of recursive tables when the type of anchor part does not coincide with the type of recursive part. Prevented usage of marerialization and subquery cache for subqueries with recursive references. Introduced system variables 'max_recursion_level'. Added a test case to test usage of this variable.
Hi Galina, Thanks for your contribution. JIRA task just for the record: https://jira.mariadb.org/browse/MDEV-9864 MCA is on file. Thanks, |
Closing: the code is accepted into https://github.com/MariaDB/server/commits/bb-10.2-mdev9864 branch. It is being finalized there before being pushed into 10.2 |
why this feature is not included into 10.2.1 alpha? |
Because "it's being finalized before being pushed into 10.2", that is, it wasn't ready when 10.2.1 was released. |
In what state is with recursive implementation? in my sql query does not work |
Recursive CTEs have been pushed into MariaDB-10.2 tree a few days ago. They will be available in the next MariaDB release in the 10.2 series, 10.2.2. |
Ok, because I have seen that travis build failed in one of the builds, you can check travis status |
Please take this implementation of recursive CTE as a contribution for MariaDB server.