Skip to content

Test cases for [CALCITE-5413] Nested Subqueries with correlated variables are not decorrelated correctly - #5169

Merged
xuzifu666 merged 1 commit into
apache:mainfrom
xuzifu666:calcite-5413
Aug 10, 2026
Merged

Test cases for [CALCITE-5413] Nested Subqueries with correlated variables are not decorrelated correctly#5169
xuzifu666 merged 1 commit into
apache:mainfrom
xuzifu666:calcite-5413

Conversation

@xuzifu666

Copy link
Copy Markdown
Member

jira: https://issues.apache.org/jira/browse/CALCITE-5413

This issue should had been fixed, so I only add a test case to cover it.

@iwanttobepowerful

Copy link
Copy Markdown
Contributor

add QuidemTest

@mihaibudiu mihaibudiu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably fixed, but having a quidem test would help boost our confidence. Reading plans is harder.

!}

# [CALCITE-5413] Nested Subqueries with correlated variables are not decorrelated correctly
# The innermost subquery correlates to both the outermost (e) and the middle (d) query levels.

@xuzifu666 xuzifu666 Aug 9, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had add QuidemTest to cover it and result is expected with PostgreSQL: https://onecompiler.com/postgresql/44xqduwb9
cc @mihaibudiu @iwanttobepowerful

@sonarqubecloud

Copy link
Copy Markdown

@xuzifu666
xuzifu666 merged commit 5dcfb76 into apache:main Aug 10, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants