We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.2.670-nightly
Query table with recursive CTE and where clause, get wrong result.
CREATE TABLE parent_child ( parent VARCHAR(30), child VARCHAR(30) ); INSERT INTO parent_child VALUES ('Org','Org'),('Org','Global'),('Global','North'), ('Global','South'),('Global','East'),('Global','West'), ('Global','Org detail'),('North','North East'),('North','North West'); WITH RECURSIVE tree_values (parent, child) AS ( SELECT parent, child FROM parent_child WHERE parent = child UNION ALL SELECT c.parent, c.child FROM parent_child c INNER JOIN tree_values p ON p.child = c.parent WHERE c.parent != c.child ) select parent, child from tree_values where parent = 'Global'
Expect 5 rows, actually returns no rows. Remove where clause, works as expected
The text was updated successfully, but these errors were encountered:
xudong963
Successfully merging a pull request may close this issue.
Search before asking
Version
v1.2.670-nightly
What's Wrong?
Query table with recursive CTE and where clause, get wrong result.
How to Reproduce?
Expect 5 rows, actually returns no rows. Remove where clause, works as expected
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: