Skip to content

Commit 29017fb

Browse files
aquamatthiasmeln1k
andauthored
[core][fix] sort with with clause (#2056)
Co-authored-by: Nikita Melkozerov <nikita@some.engineering>
1 parent d45dfa9 commit 29017fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fixcore/fixcore/db/arango_query.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ def collect_filter(cl: WithClause, depth: int) -> str:
643643
f"LET {out} =( FOR {l0crsr} in {in_crsr} "
644644
+ traversal_filter(clause, l0crsr, 1)
645645
+ collect_filter(clause, 1)
646+
+ (sort("l0_l0_res", p.sort) if p.sort else "")
646647
+ limited
647648
+ "RETURN l0_l0_res) "
648649
)

0 commit comments

Comments
 (0)