@@ -40,7 +40,7 @@ impl SelectBuilder for LogicalPlan {
4040 & self ,
4141 plan_ctx : Option < & crate :: query_planner:: plan_ctx:: PlanCtx > ,
4242 ) -> Result < Vec < SelectItem > , RenderBuildError > {
43- log:: warn !( "🔍🔍🔍 extract_select_items CALLED on plan type" ) ;
43+ log:: trace !( "🔍🔍🔍 extract_select_items CALLED on plan type" ) ;
4444 crate :: debug_println!( "DEBUG: extract_select_items called on: {:?}" , self ) ;
4545 let select_items = match & self {
4646 LogicalPlan :: Empty => vec ! [ ] ,
@@ -81,7 +81,7 @@ impl SelectBuilder for LogicalPlan {
8181 }
8282 }
8383 LogicalPlan :: GraphRel ( graph_rel) => {
84- log:: warn !(
84+ log:: trace !(
8585 "🔍 GraphRel.extract_select_items: alias={}, path_variable={:?}" ,
8686 graph_rel. alias,
8787 graph_rel. path_variable
@@ -166,10 +166,13 @@ impl SelectBuilder for LogicalPlan {
166166
167167 // NEW APPROACH: Use TypedVariable for type/source checking
168168 if let Some ( plan_ctx) = plan_ctx {
169- log:: warn !( " 🔍 Looking up '{}' in plan_ctx..." , table_alias. 0 ) ;
169+ log:: trace !( " 🔍 Looking up '{}' in plan_ctx..." , table_alias. 0 ) ;
170170 match plan_ctx. lookup_variable ( & table_alias. 0 ) {
171171 Some ( typed_var) if typed_var. is_entity ( ) => {
172- log:: warn!( " ✓ Found ENTITY variable '{}'" , table_alias. 0 ) ;
172+ log:: trace!(
173+ " ✓ Found ENTITY variable '{}'" ,
174+ table_alias. 0
175+ ) ;
173176 // Entity (Node or Relationship) - expand properties
174177 match & typed_var. source ( ) {
175178 VariableSource :: Match => {
@@ -192,7 +195,7 @@ impl SelectBuilder for LogicalPlan {
192195 ) ;
193196 }
194197 _ => {
195- log:: warn !( "⚠️ Entity variable '{}' has unexpected source, treating as scalar" , table_alias. 0 ) ;
198+ log:: debug !( "⚠️ Entity variable '{}' has unexpected source, treating as scalar" , table_alias. 0 ) ;
196199 select_items. push ( SelectItem {
197200 expression : RenderExpr :: ColumnAlias (
198201 ColumnAlias ( table_alias. 0 . clone ( ) ) ,
@@ -206,7 +209,10 @@ impl SelectBuilder for LogicalPlan {
206209 }
207210 }
208211 Some ( typed_var) if typed_var. is_scalar ( ) => {
209- log:: warn!( " ✓ Found SCALAR variable '{}'" , table_alias. 0 ) ;
212+ log:: trace!(
213+ " ✓ Found SCALAR variable '{}'" ,
214+ table_alias. 0
215+ ) ;
210216 // Scalar - single item, no expansion
211217 match & typed_var. source ( ) {
212218 VariableSource :: Cte { cte_name } => {
@@ -245,7 +251,7 @@ impl SelectBuilder for LogicalPlan {
245251 ) ;
246252 }
247253 _ => {
248- log:: warn !( " ✗ Variable '{}' NOT FOUND or not a recognized type in plan_ctx" , table_alias. 0 ) ;
254+ log:: trace !( " ✗ Variable '{}' NOT FOUND or not a recognized type in plan_ctx" , table_alias. 0 ) ;
249255 // Unknown variable - check if it's a path by looking for GraphRel
250256 if let Some ( graph_rel) =
251257 self . find_graph_rel_for_path ( & table_alias. 0 )
@@ -280,7 +286,7 @@ impl SelectBuilder for LogicalPlan {
280286 ) ;
281287 } else {
282288 // Really unknown - fallback to old logic
283- log:: warn !( "⚠️ Variable '{}' not found in TypedVariable registry or GraphRel, using fallback logic" , table_alias. 0 ) ;
289+ log:: debug !( "⚠️ Variable '{}' not found in TypedVariable registry or GraphRel, using fallback logic" , table_alias. 0 ) ;
284290 self . fallback_table_alias_expansion (
285291 table_alias,
286292 item,
@@ -408,7 +414,7 @@ impl SelectBuilder for LogicalPlan {
408414 ) ;
409415
410416 if cte_ref. columns . is_empty ( ) {
411- log:: warn !( "⚠️ CteEntityRef '{}' has no columns - falling back to TableAlias" , cte_ref. alias) ;
417+ log:: debug !( "⚠️ CteEntityRef '{}' has no columns - falling back to TableAlias" , cte_ref. alias) ;
412418 select_items. push ( SelectItem {
413419 expression : RenderExpr :: TableAlias ( RenderTableAlias (
414420 cte_ref. alias . clone ( ) ,
@@ -586,7 +592,7 @@ impl SelectBuilder for LogicalPlan {
586592 LogicalPlan :: Unwind ( u) => u. input . extract_select_items ( plan_ctx) ?,
587593 LogicalPlan :: CartesianProduct ( cp) => {
588594 // Combine select items from both sides
589- log:: warn !( "🔍 CartesianProduct.extract_select_items START" ) ;
595+ log:: trace !( "🔍 CartesianProduct.extract_select_items START" ) ;
590596 let left_items = cp. left . extract_select_items ( plan_ctx) ?;
591597 log:: warn!(
592598 "🔍 CartesianProduct.extract_select_items: left side returned {} items" ,
@@ -609,7 +615,7 @@ impl SelectBuilder for LogicalPlan {
609615 graph_node. input . extract_select_items ( plan_ctx) ?
610616 }
611617 LogicalPlan :: WithClause ( wc) => {
612- log:: warn !( "🔍 WithClause.extract_select_items: calling extract on input" ) ;
618+ log:: trace !( "🔍 WithClause.extract_select_items: calling extract on input" ) ;
613619 let items = wc. input . extract_select_items ( plan_ctx) ?;
614620 log:: warn!(
615621 "🔍 WithClause.extract_select_items DONE: extracted {} items from input plan" ,
@@ -711,7 +717,7 @@ impl LogicalPlan {
711717 ) ;
712718 }
713719 _ => {
714- log:: warn !( "⚠️ No properties found for base table entity '{}'" , alias) ;
720+ log:: debug !( "⚠️ No properties found for base table entity '{}'" , alias) ;
715721 }
716722 }
717723 }
@@ -733,7 +739,7 @@ impl LogicalPlan {
733739
734740 // Parse CTE name to get aliases and compute FROM alias
735741 let from_alias = self . compute_from_alias_from_cte_name ( cte_name) ;
736- log:: info !( "🔍 CTE '{}' → FROM alias '{}'" , cte_name, from_alias) ;
742+ log:: trace !( "🔍 CTE '{}' → FROM alias '{}'" , cte_name, from_alias) ;
737743
738744 // Get labels from TypedVariable
739745 let labels = match typed_var {
@@ -1002,7 +1008,7 @@ impl LogicalPlan {
10021008 ) ;
10031009 vs. is_denormalized
10041010 } else {
1005- log:: info !( "🔍 Relationship '{}' center is NOT ViewScan" , rel_alias) ;
1011+ log:: trace !( "🔍 Relationship '{}' center is NOT ViewScan" , rel_alias) ;
10061012 false
10071013 }
10081014 } else {
@@ -1073,7 +1079,7 @@ impl LogicalPlan {
10731079 }
10741080 }
10751081 } else {
1076- log:: warn !( " ✗ Start node '{}' not found in plan_ctx" , start_alias) ;
1082+ log:: trace !( " ✗ Start node '{}' not found in plan_ctx" , start_alias) ;
10771083 }
10781084
10791085 // Expand end node properties
@@ -1103,7 +1109,7 @@ impl LogicalPlan {
11031109 }
11041110 }
11051111 } else {
1106- log:: warn !( " ✗ End node '{}' not found in plan_ctx" , end_alias) ;
1112+ log:: trace !( " ✗ End node '{}' not found in plan_ctx" , end_alias) ;
11071113 }
11081114
11091115 // Expand relationship properties (ONLY if not denormalized)
@@ -1140,7 +1146,7 @@ impl LogicalPlan {
11401146 }
11411147 }
11421148 } else {
1143- log:: warn !( " ✗ Relationship '{}' not found in plan_ctx" , rel_alias) ;
1149+ log:: trace !( " ✗ Relationship '{}' not found in plan_ctx" , rel_alias) ;
11441150 }
11451151 } else {
11461152 // Denormalized relationship: properties come from end node's table
0 commit comments