Inline sorting of traversal result in SELECT projection
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
Research direction
Start by reviewing OrientDB's SELECT projection and traversal-function handling, using the nested out() examples as the behavioral target. Determine how inline single- and multi-key sorting should be specified and validated, then add coverage showing ordered nested traversal results; done means the illustrated queries produce the requested ordering.
Written by the indexing model from the issue text.
Description
OrientDB Version: 3.1.8 (docker)
I don't think this exists yet, so this is probably a feature request.
It would be great to have a way to sort the partial result set returned by a traverse function (e.g. out()). This would make it a lot easier to control the order of nested traversal projections.
Example
SELECT
/* as method, string argument -> single sort */
out("hasContainer").sort("id:asc"):{
id,
size,
/* as method, array argument -> multiple sort */
out("hasContent").sort(["promisedDeliveryDate:desc", "id:asc"]):{
id,
dispatchDate,
promisedDeliveryDate,
/* Maybe as a function? I think it is a less readable syntax. */
sort(out("hasLineItems"), "lineId:asc"):{
lineId,
name,
quantity
} AS lineItems
} AS contents
} AS containers
FROM Manifest;
- Dominant language
- Java
- Stars
- 5k
- Forks
- 868
- Avg merge
- 15h 6m
- Merged PRs (30d)
- 18
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from orientechnologies/orientdb
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
orientechnologies/orientdb#9317 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
orientechnologies/orientdb#10865 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
orientechnologies/orientdb#10864 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
orientechnologies/orientdb#10856 · 7 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
orientechnologies/orientdb#10813 · 1 comment ·
All issues in orientechnologies/orientdb
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
objectionary/hone-maven-plugin#1061 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spring-projects/spring-modulith#1895 ·