-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Convert SHOW FIELD KEYS
to the new query engine
#5815
Conversation
This converts |
f5a1063
to
76c3f3f
Compare
} | ||
return newMeasurementKeysIterator(sh, fn, opt) | ||
} | ||
|
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.
Injecting a function into another iterator type seems like it makes the implementation harder to follow in order to reuse a few lines of code. Why not make a separate fieldKeysIterator
and tagKeysIterator
?
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.
Mostly because I was copying verbatim large portions of functionality with exactly one line change. So I decided to change both of the iterators to use the same base since they both did the same thing.
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.
The newMeasurementKeysIterator
is pretty small. I'd prefer separate types but I'll leave it up to you.
Is this PR still WIP? |
It can be rebased now that remote exec has been merged. I'll do that and test it in a cluster now. |
76c3f3f
to
d7886f6
Compare
d7886f6
to
aa0b603
Compare
SHOW FIELD KEYS
to the new query engineSHOW FIELD KEYS
to the new query engine
This is now ready for review and it works with the remote exec and some extra fixes that had to go in for that. I've rebased on top of the needed commits. |
lgtm, merge on 🍏 |
Convert `SHOW FIELD KEYS` to the new query engine
Fixes #5579.