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

Convert SHOW FIELD KEYS to the new query engine #5815

Merged
merged 1 commit into from
Feb 25, 2016

Conversation

jsternberg
Copy link
Contributor

Fixes #5579.

@jsternberg
Copy link
Contributor Author

This converts SHOW FIELD KEYS to the new query engine. When remote exec is merged, this should work for a cluster just like the other select commands that depend on remote exec.

@jsternberg jsternberg force-pushed the js-5579-show-field-keys branch 2 times, most recently from f5a1063 to 76c3f3f Compare February 24, 2016 15:12
}
return newMeasurementKeysIterator(sh, fn, opt)
}

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@benbjohnson
Copy link
Contributor

Is this PR still WIP?

@jsternberg
Copy link
Contributor Author

It can be rebased now that remote exec has been merged. I'll do that and test it in a cluster now.

@jsternberg jsternberg force-pushed the js-5579-show-field-keys branch from 76c3f3f to d7886f6 Compare February 25, 2016 16:24
@jsternberg jsternberg force-pushed the js-5579-show-field-keys branch from d7886f6 to aa0b603 Compare February 25, 2016 23:31
@jsternberg jsternberg changed the title [WIP] Convert SHOW FIELD KEYS to the new query engine Convert SHOW FIELD KEYS to the new query engine Feb 25, 2016
@jsternberg
Copy link
Contributor Author

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.

@benbjohnson
Copy link
Contributor

lgtm, merge on 🍏

jsternberg added a commit that referenced this pull request Feb 25, 2016
Convert `SHOW FIELD KEYS` to the new query engine
@jsternberg jsternberg merged commit ba6186f into master Feb 25, 2016
@jsternberg jsternberg deleted the js-5579-show-field-keys branch February 25, 2016 23:41
@jsternberg jsternberg mentioned this pull request Feb 25, 2016
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.

2 participants