-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Remove cpuTimeAcc from DataSource#createSegmentMapFunction's signature #17623
base: master
Are you sure you want to change the base?
Conversation
added design review label since this is modifying the signature of an extension point |
I don't think I haven't seen any implementations of it outside the core modules (except one in msq)
in fact the current way things work; if someone would add a new datasource would have a pretty rough time running that on msq ; or having it work correctly in joins. The issues I've seen can't be fixed without altering the |
Yea, i did this out of an abundance of caution on changing stuff on core APIs, you're right that That said, I think this change makes sense to make, so will approve after I finish reviewing, we just need to be sure to call it out in the dev oriented release notes. |
This patch remove
cpuTimeAcc
fromDataSource#createSegmentMapFunction
signature.the method being executed doesn't need to know internally that they are being measured; it also complicates code-flow a bit - as it tries to avoid double counting.