We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32317ef commit 6ae409dCopy full SHA for 6ae409d
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
@@ -216,7 +216,7 @@ class Analyzer(
216
def apply(plan: LogicalPlan): LogicalPlan = plan.resolveOperatorsUp {
217
case With(child, relations) =>
218
// substitute CTE expressions right-to-left to resolve references to previous CTEs:
219
- // with a as (select * from t) with b as (select * from a) select * from b
+ // with a as (select * from t), b as (select * from a) select * from b
220
relations.foldRight(child) {
221
case ((cteName, ctePlan), currentPlan) =>
222
substituteCTE(currentPlan, cteName, ctePlan)
0 commit comments