-
Notifications
You must be signed in to change notification settings - Fork 544
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
Fill parent ID column and nested set columns #2487
Conversation
This adds some overhead to the
After optimizations:
|
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.
this is some excellent work. after we merge this i will need to restrain myself from immediately writing {} >> {}
:)
i have a fair number of questions and i'd like to give @mdisibio a chance to review (if he wants).
overall this looks great. i don't see any major issues.
72b8ef5
to
e81b1e9
Compare
e81b1e9
to
62023e2
Compare
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.
LGTM. The only concern was recalculating after combination which was just addressed. It achieves the goals I was hoping for: linear O(n) performance and memory, no recursion in the DFS by using the stack. At first glance it seems there are small tweaks that could simplify or optimize, but after further consideration they aren't so clearcut (like the child slice pre-allocation requires many more map lookups). Excellent job @stoewer !
03caf64
to
62023e2
Compare
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.
two questions, but this is looking good. maybe a quick sync discussion about the changes will be helpful to get this merged.
i am sad about the additional complexity to handle zipkin and (if the work weren't already complete) would be tempted to just say that hierarchical operators are undefined for zipkin traces.
great work. in particular i'm impressed with the clever optimizations in (span id, kind) -> hash
What this PR does:
Fill the new columns that were introduced with
vParquet2
with the correct values.Which issue(s) this PR fixes:
Fixes grafana/tempo-squad#207
Checklist
Documentation addedCHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]