Commit ebb888d
committed
fix: Load SELECT fields when using date functions in FT.AGGREGATE
When queries use date functions (YEAR, MONTH, etc.) alongside regular fields
in SELECT, the translator now properly loads those fields using LOAD clause.
Before: FT.AGGREGATE events "*" APPLY year(@created_at) AS year
After: FT.AGGREGATE events "*" LOAD 1 name APPLY year(@created_at) AS year1 parent 1f3d773 commit ebb888d
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
| |||
0 commit comments