Skip to content

Commit 6dda0bb

Browse files
committed
simplify comments
1 parent 4373345 commit 6dda0bb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/parse_tables.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,11 @@ static void ExtractTablesFromQueryNode(
145145
ExtractTablesFromRef(*select_node.from_table, results, context, true, &select_node.cte_map);
146146
}
147147
}
148-
// for ctes, we need an extra step to extract the cte body, and then the rest of the statement
149-
// don't actually record any details from this node in the result otherwise it will be duplicated in the recursive calls below.
148+
// additional step necessary for duckdb v1.4.0: unwrap CTE node
150149
else if (node.type == QueryNodeType::CTE_NODE) {
151150
auto &cte_node = (CTENode &)node;
152151

153-
// Extract tables from the child query (the main query that uses the CTE)
154152
if (cte_node.child) {
155-
// Pass the existing CTE map to the child query
156-
// The current CTE will be available for reference in the child
157153
ExtractTablesFromQueryNode(*cte_node.child, results, context, cte_map);
158154
}
159155
}

0 commit comments

Comments
 (0)