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

Debug operator #5196

Merged
merged 2 commits into from
Aug 15, 2024
Merged

Debug operator #5196

merged 2 commits into from
Aug 15, 2024

Conversation

mattnibs
Copy link
Collaborator

This commit introduces the debug operator- an operator intending to help debugging complex queries. When running the debug operator using zq or zed all encounterd values at the point of the operator are written to stderr.

Closes #5181

@mattnibs mattnibs force-pushed the debug-op branch 2 times, most recently from c48f269 to 999281d Compare July 30, 2024 19:18
@mattnibs mattnibs marked this pull request as ready for review July 30, 2024 20:13
@mattnibs mattnibs requested a review from a team July 30, 2024 20:13
cmd/zed/internal/lakemanage/scan.go Outdated Show resolved Hide resolved
zbuf/mux.go Outdated Show resolved Hide resolved
Base automatically changed from output-op to main August 6, 2024 19:17
This commit introduces the debug operator- an operator intending to help
debugging complex queries. When running the debug operator using zq or
zed all encounterd values at the point of the operator are written to
stderr.

Closes #5181
@philrz philrz linked an issue Aug 6, 2024 that may be closed by this pull request
api/queryio/client.go Outdated Show resolved Hide resolved
zfmt/dag.go Show resolved Hide resolved
zfmt/ast.go Show resolved Hide resolved
@mattnibs mattnibs requested a review from nwt August 9, 2024 16:53
Copy link
Member

@nwt nwt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@philrz and I talked about extending the Zed syntax so you can specify a channel other than "debug". We both think that's a good idea since Zui will eventually be able to display channels separately but we can add it later.

api/queryio/client.go Outdated Show resolved Hide resolved
api/queryio/client.go Outdated Show resolved Hide resolved
api/queryio/client.go Outdated Show resolved Hide resolved
docs/libraries/go.md Outdated Show resolved Hide resolved
@mattnibs
Copy link
Collaborator Author

@philrz and I talked about extending the Zed syntax so you can specify a channel other than "debug". We both think that's a good idea since Zui will eventually be able to display channels separately but we can add it later.

Is this different than using the output operator?

@nwt
Copy link
Member

nwt commented Aug 12, 2024

@philrz and I talked about extending the Zed syntax so you can specify a channel other than "debug". We both think that's a good idea since Zui will eventually be able to display channels separately but we can add it later.

Is this different than using the output operator?

Yes, in two regards. First, it includes an expression (e.g., debug some_channel some.path). And second, it doesn't have output's "read to EOS" behavior.

@mattnibs mattnibs merged commit 97e0d9c into main Aug 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Something like jq's "debug"
3 participants