Skip to content

Commit

Permalink
Remove unnecessary CTENode creation in transform_cte.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kryonix committed Mar 19, 2024
1 parent 073c559 commit 4a1f7d9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/parser/transform/helpers/transform_cte.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ void Transformer::TransformCTE(duckdb_libpgquery::PGWithClause &de_with_clause,
#else
if (cte.ctematerialized == duckdb_libpgquery::PGCTEMaterializeAlways) {
#endif
auto materialize = make_uniq<CTENode>();
materialize->query = info->query->node->Copy();
materialize->ctename = cte_name;
materialize->aliases = info->aliases;
info->materialized = CTEMaterialize::CTE_MATERIALIZE_ALWAYS;
}

Expand Down

0 comments on commit 4a1f7d9

Please sign in to comment.