[MDEV-13479] CONNECT BY: Parser support Created: 2017-08-09 Updated: 2018-12-03 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | Compatibility | ||
| Issue Links: |
|
||||||||
| Description |
|
This is a subtask about providing parser support in CONNECT BY. A decision from the meeting on Aug, 7th: we only need to support the CONNECT Extension for the SELECT syntax
Also
Adding START WITH / CONNECT BY syntaxSTART WITH / CONNECT BY syntax does not seem to conflict with anything in the grammar. Adding the new pseudo-columnsFor pseudo-columns, there are two choices:
The first one is preferred. Adding the operatorsPRIOR and CONNECT_BY_ROOT are the new unary operators (will have to add Adding ORDER SIBLINGS BY supportIn a SELECT with an ORDER BY clause, ORDER BY clause may have the ORDER SIBLINGS BY variant. Unresolved QuestionsSubqueries in CONNECT BYFrom Oracle Documentation:
These 2 statements seem to be contradictory. Which one is true? See also
|
| Comments |
| Comment by Sergei Petrunia [ 2017-08-09 ] | |||||||||||||||||||||||||||
|
Re the question of "Subqueries in CONNECT BY". I took the dataset from
uncorrelated subquery is accepted.
correlated subquery is accepted, too. Subquery may have outside references but they may not use the "PRIOR" operator
So, I wasn't able to figure out what is the limitation in question. | |||||||||||||||||||||||||||
| Comment by zhangyuan [ 2017-08-11 ] | |||||||||||||||||||||||||||
|
I think the keyword LEVEL and START should be change from Non-reserved to reserved, otherwise, there will be many reduce/reduce conflicts. | |||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2017-08-18 ] | |||||||||||||||||||||||||||
|
The problem with the conflict of START is because START can be considered as an alias |