Repository navigation
TUR-298: Cypher: implement coll.sortMulti - #1455
sulaimansuhas wants to merge 1 commit into
Conversation
|
Note AI-generated summary. Summary
FunctionDecls + coll.sortMulti: 1-4 args (list, list, int, int), each also Any
DBProgramGenerator + translateSortMulti -> db.sort_multi(list, fields?, limit?, skip?)
DBLowering
+ rowAlignOptionalChunks lay the present operands out over one row count
+ lowerSortMulti -> nl.sort_multi, result element type = input's
~ lowerListSlice same IR, now uses rowAlignOptionalChunks + listOfSameElementsChunkType
NLTranslator + translateSortMulti -> NLSortMultiData
NLExecutor + runSortMulti
ListBuffer + gather(span<CellView>); reverse() now shares writeElementsPer row, Values of different types compare as EvidenceNew test The other cases cover stable ties, an empty field list, limit 0 / -1, a stored list property, a I did not build or run the tests for this comment. Merge DangerDoor: two-way The change adds a new function, two new ops and a new executor step. It writes nothing to disk and changes no wire format. Blast Radius: small Two existing paths change shape: |
2cf3fea to
f0baac9
Compare
683e7d8 to
544f8fd
Compare
|
-// Disabled: apoc.coll.sortMulti does not exist (TUR-298).
-TEST_F(JourneyParetoTest, DISABLED_sortsTheLegsWithSortMulti) {
+TEST_F(JourneyParetoTest, sortsTheLegsWithSortMulti) {
...
- "RETURN [leg IN apoc.coll.sortMulti(OTTlist, ['nlc', '^arrival', 'departure']) | leg.service]",
+ "RETURN [leg IN coll.sortMulti(OTTlist, ['nlc', '^arrival', 'departure']) | leg.service]", |
|
Other items to fix in this PR:
|
544f8fd to
5516566
Compare
Implement coll.sortMulti.
Stacked on #1452 (bot stack
main): review and merge #1452 first.