Commit 12f2400
Manus AI
Fix resolveAliasAndColumn to use longest matching relationship path
- Removed early break in path resolution loop
- Now correctly resolves asset.financials.monthly_hire_revenue to the financials table alias
- Previously was breaking after finding 'asset' and returning the asset table alias
- Now continues through all segments and uses the longest matching path
- Fixes 'Unknown column' error when computed columns reference nested relationships in aggregates1 parent b467ef9 commit 12f2400
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | 421 | | |
| 422 | + | |
426 | 423 | | |
427 | 424 | | |
428 | 425 | | |
| |||
0 commit comments