-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain the attributes of sumNode
.
#482
Labels
Milestone
Comments
shahzadlone
added
feature
New feature or request
area/query
Related to the query component
labels
May 27, 2022
This was referenced May 27, 2022
4 tasks
shahzadlone
added a commit
that referenced
this issue
Jun 30, 2022
- Relevant issue(s): #482. - Description Adds the attributes for `sumNode` to be included in the returned explain graph response. In this PR we are introducing 3 attributes: 1) `fieldName` 2) `childFieldName` 3) `filter` Example: - Request: ``` query @Explain { author { name _key TotalPages: _sum(books: {field: pages}) } } ``` - Response: ``` { "explain": { "selectTopNode": { "sumNode": { "sources": []{ { "fieldName": "books", "childFieldName": "pages", "filter": nil, } }, "selectNode": { "filter": null, "typeIndexJoin": { "joinType": "typeJoinMany", "rootName": "author", "root": { "scanNode": { "collectionID": "3", "collectionName": "author", "filter": null, "spans": []{ { "start": "/3", "end": "/4", } } } } "subTypeName": "books", "subType": { "selectTopNode": { "selectNode": { "filter": null, "scanNode": { "collectionID": "2", "collectionName": "book", "filter": null, "spans": []{ { "start": "/2", "end": "/3", } } } } } } } } } } } } ```
shahzadlone
added a commit
to shahzadlone/defradb
that referenced
this issue
Feb 23, 2024
- Relevant issue(s): sourcenetwork#482. - Description Adds the attributes for `sumNode` to be included in the returned explain graph response. In this PR we are introducing 3 attributes: 1) `fieldName` 2) `childFieldName` 3) `filter` Example: - Request: ``` query @Explain { author { name _key TotalPages: _sum(books: {field: pages}) } } ``` - Response: ``` { "explain": { "selectTopNode": { "sumNode": { "sources": []{ { "fieldName": "books", "childFieldName": "pages", "filter": nil, } }, "selectNode": { "filter": null, "typeIndexJoin": { "joinType": "typeJoinMany", "rootName": "author", "root": { "scanNode": { "collectionID": "3", "collectionName": "author", "filter": null, "spans": []{ { "start": "/3", "end": "/4", } } } } "subTypeName": "books", "subType": { "selectTopNode": { "selectNode": { "filter": null, "scanNode": { "collectionID": "2", "collectionName": "book", "filter": null, "spans": []{ { "start": "/2", "end": "/3", } } } } } } } } } } } } ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subtask of #35.
Explain the attributes of
sumNode
.The text was updated successfully, but these errors were encountered: