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
Implement head
and taste
operators
#2891
Conversation
The `head [n]` operator limits the result to the first `n` events. The limit defaults to 1. The `taste [n]` operator behaves similarly, except that the limit is applied per unique schema. E.g., running `vast export json 'taste'` will return exactly one event of schema in the database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need N = 10
as default to match the users' expectation from other tools.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked into the code and played around with the operators a bit and I don't see any (big) problems. So it's an approval from me. I did leave some comments though. Good luck with the demo!
The
head [n]
operator limits the result to the firstn
events. The limit defaults to 1.The
taste [n]
operator behaves similarly, except that the limit is applied per unique schema. E.g., runningvast export json 'taste'
will return exactly one event of each schema in the database.Tasks
head [n]
taste [n]