Navigation Menu

Skip to content
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

Closed
wants to merge 13 commits into from

Conversation

shagalla
Copy link
Contributor

@shagalla shagalla commented Jun 9, 2016

Please take this implementation of recursive CTE as a contribution for MariaDB server.

Galina Shalygina added 13 commits May 8, 2016 21:19
…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.
@svoj svoj changed the title 10.2 mdev9864 MDEV-9864 - Implement recursive common table expressions Jun 14, 2016
@svoj
Copy link

svoj commented Jun 14, 2016

Hi Galina,

Thanks for your contribution. JIRA task just for the record: https://jira.mariadb.org/browse/MDEV-9864

MCA is on file.

Thanks,
Sergey

@spetrunia
Copy link
Member

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

@spetrunia spetrunia closed this Jun 28, 2016
@hongnod
Copy link

hongnod commented Aug 30, 2016

why this feature is not included into 10.2.1 alpha?

@vuvova
Copy link
Member

vuvova commented Aug 30, 2016

Because "it's being finalized before being pushed into 10.2", that is, it wasn't ready when 10.2.1 was released.

@SvetlanaM
Copy link

In what state is with recursive implementation? in my sql query does not work

@spetrunia
Copy link
Member

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.

@SvetlanaM
Copy link

SvetlanaM commented Sep 9, 2016

Ok, because I have seen that travis build failed in one of the builds, you can check travis status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants