[
https://issues.apache.org/jira/browse/IGNITE-28947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18104315#comment-18104315
]
Vladislav Pyatkov commented on IGNITE-28947:
--------------------------------------------
Merged ec42c2273f2a4a3d1e903042a03c1b1f7cb425ca
> Handle recursive CTE planning gracefully
> ----------------------------------------
>
> Key: IGNITE-28947
> URL: https://issues.apache.org/jira/browse/IGNITE-28947
> Project: Ignite
> Issue Type: Bug
> Reporter: Vladislav Pyatkov
> Assignee: Vladislav Pyatkov
> Priority: Major
> Labels: calcite, ignite-2, sql
> Attachments: RecursiveCteIntegrationTest.java
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> This ticket does not add support for recursive CTE execution.
> h3. Motivation
> Calcite already parses and validates WITH RECURSIVE queries and creates
> transient tables and TableSpool operators during planning. Ignite Calcite
> metadata currently assumes that every TableScan unwraps to IgniteTable.
> For transient CTE tables, this can cause internal metadata failures, for
> example in collation or distribution calculation, before the planner reaches
> the actual unsupported feature boundary.
> Update metadata handling for transient tables so that recursive CTE planning
> fails with a clear, stable “recursive CTE is not supported” error rather than
> an internal exception.
> h3. Definition of done
> * A recursive CTE does not fail with an internal exception.
> * The user receives a clear unsupported-feature error for recursive CTEs.
> * Existing non-recursive query planning remains unchanged.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)