[
https://issues.apache.org/jira/browse/IGNITE-29038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112433#comment-18112433
]
Ignite TC Bot commented on IGNITE-29038:
----------------------------------------
{panel:title=Branch: [pull/13559/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/13559/head] Base: [master] : New Tests
(7)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Calcite SQL 3{color} [[tests
7|https://ci2.ignite.apache.org/viewLog.html?buildId=9331445]]
* {color:#013220}IgniteCalciteTestSuite3:
OperatorsExtensionIntegrationTest.testDualWithisFromRequired - PASSED{color}
* {color:#013220}IgniteCalciteTestSuite3:
RecursiveCteIntegrationTest.testNestedRecursiveCteStatesAreIsolated -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite3:
RecursiveCteIntegrationTest.testRecursiveCteCanBeReadFromScalarSubquery -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite3:
RecursiveCteIntegrationTest.testSelfReferenceInDerivedTableIsRejected -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite3:
RecursiveCteIntegrationTest.testSelfReferenceInScalarSubqueryIsRejected -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite3:
RecursiveCteIntegrationTest.testRecursiveCteWithMultipleUnionConsumers -
PASSED{color}
* {color:#013220}IgniteCalciteTestSuite3:
RecursiveCteIntegrationTest.testRecursiveCteWithMultipleJoinConsumers -
PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=9331478&buildTypeId=IgniteTests24Java8_RunAll]
{color:#ffffff}tcbot-analysis-comment chainBuildId=9331478
rerunBuildIds=none{color}
> Fix recursive CTE subqueries and multiple consumers
> ---------------------------------------------------
>
> Key: IGNITE-29038
> URL: https://issues.apache.org/jira/browse/IGNITE-29038
> Project: Ignite
> Issue Type: Bug
> Reporter: Vladislav Pyatkov
> Assignee: Vladislav Pyatkov
> Priority: Major
> Labels: calcite, ignite-2, sql
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Recursive CTE (IGNITE-27822) support currently has two blocking issues.
> h3. A self-reference inside a subquery may return an incorrect result instead
> of an error:
> {code}
> WITH RECURSIVE numbers(n) AS (
> SELECT 1
> UNION ALL
> SELECT (SELECT n + 1 FROM numbers)
> FROM (VALUES (0))
> )
> SELECT n
> FROM numbers
> FETCH FIRST 3 ROWS ONLY;
> {code}
> Such queries are not supported by most RDBMSs. Ignite should reject them with
> a descriptive IgniteSQLException.
> h3. Referencing the same recursive CTE multiple times in the outer query
> fails because consumers share the recursion state:
> {code}
> WITH RECURSIVE numbers(n) AS (
> SELECT 1
> UNION ALL
> SELECT n + 1 FROM numbers WHERE n < 3
> )
> SELECT l.n, r.n
> FROM numbers l
> JOIN numbers r ON l.n = r.n;
> {code}
> This is supported by other RDBMSs and should return (1,1), (2,2), and (3,3).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)