File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4419,9 +4419,9 @@ pub(crate) fn rewrite_vlp_union_branch_aliases(
44194419 let path_function_mappings: HashMap < String , String > = filtered_mappings
44204420 . iter ( )
44214421 . filter ( |( from_alias, _to_alias) | {
4422- // Only keep "t" mapping (for path functions like length(path))
4422+ // Only keep VLP_CTE_FROM_ALIAS mapping (for path functions like length(path))
44234423 // Exclude endpoint node aliases
4424- * from_alias == "t"
4424+ * from_alias == VLP_CTE_FROM_ALIAS
44254425 } )
44264426 . map ( |( k, v) | ( k. clone ( ) , v. clone ( ) ) )
44274427 . collect ( ) ;
Original file line number Diff line number Diff line change @@ -329,10 +329,7 @@ mod tests {
329329 async fn test_denormalized_aliases ( ) {
330330 with_query_context ( QueryContext :: empty ( ) , async {
331331 register_denormalized_alias ( "d" , "r2" ) ;
332- assert_eq ! (
333- get_denormalized_alias_mapping( "d" ) ,
334- Some ( "r2" . to_string( ) )
335- ) ;
332+ assert_eq ! ( get_denormalized_alias_mapping( "d" ) , Some ( "r2" . to_string( ) ) ) ;
336333 assert_eq ! ( get_denormalized_alias_mapping( "unknown" ) , None ) ;
337334 } )
338335 . await ;
You can’t perform that action at this time.
0 commit comments