Skip to content

PostgreSQL: Support CYCLE on a recursive CTE - #2982

Open
LucaCappelletti94 wants to merge 1 commit into
upstream/pg-cte-searchfrom
upstream/pg-cte-cycle
Open

LucaCappelletti94 wants to merge 1 commit into
upstream/pg-cte-searchfrom
upstream/pg-cte-cycle

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Cte now carries an optional cycle field, behind the new Dialect::supports_cte_cycle_clause, which PostgreSQL and Generic enable, so as to support WITH RECURSIVE r (id, parent_id) AS (...) CYCLE id SET is_cycle USING path SELECT id FROM r.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 62.50000% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.23%. Comparing base (34162e7) to head (0e20689).

Files with missing lines Patch % Lines
src/ast/spans.rs 0.00% 9 Missing and 2 partials ⚠️
src/parser/mod.rs 70.58% 0 Missing and 5 partials ⚠️
src/ast/query.rs 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                    Coverage Diff                     @@
##           upstream/pg-cte-search    #2982      +/-   ##
==========================================================
- Coverage                   83.26%   83.23%   -0.03%     
==========================================================
  Files                          42       42              
  Lines                       35406    35453      +47     
  Branches                    35406    35453      +47     
==========================================================
+ Hits                        29480    29510      +30     
- Misses                       2469     2479      +10     
- Partials                     3457     3464       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PostgreSQL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants