Skip to content
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 Request - Debug #948

Closed
shahzadlone opened this issue Nov 17, 2022 · 1 comment · Fixed by #1563
Closed

Explain Request - Debug #948

shahzadlone opened this issue Nov 17, 2022 · 1 comment · Fixed by #1563
Assignees
Labels
area/planner Related to the planner system feature New feature or request
Milestone

Comments

@shahzadlone
Copy link
Member

Sub Task of #35

Spec: https://source.getoutline.com/doc/explain-queries-jtaGX0L995

@shahzadlone shahzadlone added feature New feature or request area/planner Related to the planner system labels Nov 17, 2022
@shahzadlone shahzadlone added this to the DefraDB v0.4 milestone Nov 17, 2022
@shahzadlone shahzadlone self-assigned this Nov 17, 2022
@shahzadlone
Copy link
Member Author

Call the implementation after #972 is done.

@shahzadlone shahzadlone modified the milestones: DefraDB v0.4, DefraDB v0.5 Dec 16, 2022
@jsimnz jsimnz modified the milestones: DefraDB v0.5, DefraDB v0.5.1 Mar 30, 2023
@shahzadlone shahzadlone changed the title Explain Request - Debug (JSON) Explain Request - Debug Mar 30, 2023
@jsimnz jsimnz modified the milestones: DefraDB v0.5.1, DefraDB v0.6 Apr 12, 2023
shahzadlone added a commit to shahzadlone/defradb that referenced this issue Feb 23, 2024
Resolves sourcenetwork#948 

## Description
Implements a new type of explain called `debug` which dumps all plan
nodes (even non-explainable nodes) as a graph (has no attributes).

Usage is similar to other explain types, but would just do
`@explain(type: debug)` instead of `@explain(type: simple)` or
`@explain(type: execute)`.

Example Request:
```
query @Explain(type: debug) {
	Author (groupBy: [age]) {
		age
		_group {
			name
		}
	}
}
```

Response:
```
{
	"data": [
		"explain": {
			"selectTopNode": {
				"groupNode": {
					"selectNode": {
						"pipeNode": {
							"scanNode": {}
						}
					}
				}
			}
		}
	]
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/planner Related to the planner system feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants