GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing github.com — [SQL] Two dead recursive LOCAL views get the same persistent id: DeadCode leaves empty nested circuits · Issue #7946 · feldera/feldera Open Labels SQL compilerRelated to the SQL compilerRelated to the SQL compiler DescriptionSummaryWhen two or more recursive
Seen in a user program on v0.381.0. It also reproduces on a Minimal reproCREATE TABLE t(src BIGINT, dst BIGINT); DECLARE RECURSIVE VIEW p1(src BIGINT, dst BIGINT); CREATE LOCAL VIEW p1 AS SELECT src, dst FROM t UNION SELECT p1.src, t.dst FROM p1 JOIN t ON t.src = p1.dst; DECLARE RECURSIVE VIEW p2(src BIGINT, dst BIGINT); CREATE LOCAL VIEW p2 AS SELECT src, dst FROM t UNION SELECT p2.src, t.dst FROM p2 JOIN t ON t.src = p2.dst; -- Always empty CREATE LOCAL VIEW empty_left AS SELECT CAST(NULL AS BIGINT) AS id FROM (VALUES (1)) AS one(x) WHERE FALSE; CREATE MATERIALIZED VIEW o AS SELECT l.id, r.dst FROM empty_left AS l LEFT JOIN p1 AS r ON l.id = r.src UNION ALL SELECT l.id, r.dst FROM empty_left AS l LEFT JOIN p2 AS r ON l.id = r.src UNION ALL SELECT src, dst FROM t; Compiled with the pipeline-manager flags ( An even smaller program gives the same error: two recursive
Cause
In the user program, 9 of 12 recursive Possible fixFindDeadCode already keeps a nested operator when one of its outputs is reachable (FindDeadCode.java:112). RemoveOperators could drop a WorkaroundDeclare the recursive views with ActivityMetadataMetadataAssigneesLabelsSQL compilerRelated to the SQL compilerRelated to the SQL compiler TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |