From 4a1f7d9fc012763491988aacaa16829cfa0e0c22 Mon Sep 17 00:00:00 2001 From: Denis Hirn Date: Tue, 19 Mar 2024 10:53:13 +0100 Subject: [PATCH] Remove unnecessary CTENode creation in transform_cte.cpp --- src/parser/transform/helpers/transform_cte.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/parser/transform/helpers/transform_cte.cpp b/src/parser/transform/helpers/transform_cte.cpp index 866abbbadc86..c4678bdd98f5 100644 --- a/src/parser/transform/helpers/transform_cte.cpp +++ b/src/parser/transform/helpers/transform_cte.cpp @@ -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(); - materialize->query = info->query->node->Copy(); - materialize->ctename = cte_name; - materialize->aliases = info->aliases; info->materialized = CTEMaterialize::CTE_MATERIALIZE_ALWAYS; }