Pavle Martinović created SPARK-53382: ----------------------------------------
Summary: Fix bug with eliminated self reference Key: SPARK-53382 URL: https://issues.apache.org/jira/browse/SPARK-53382 Project: Spark Issue Type: Sub-task Components: SQL Affects Versions: 4.1.0 Reporter: Pavle Martinović There is currently a bug where rCTEs crash when the optimizer replaces parts of the plan that return empty results with an empty LocalRelation, which destroys the UnionLoopRef inside the recursion of the UnionLoop, which breaks the assumption in the Exec node that there will be a UnionLoopRef node there. This causes prevPlan to never be defined to a non-null value which causes an spark internal error when tried to evaluate. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org