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

select * order tags before fields #7094

Closed
phemmer opened this issue Jul 29, 2016 · 3 comments
Closed

select * order tags before fields #7094

phemmer opened this issue Jul 29, 2016 · 3 comments

Comments

@phemmer
Copy link
Contributor

phemmer commented Jul 29, 2016

Feature Request

Proposal: [Description of the feature]
With the influx CLI tool, when doing a select * from foo, it would be useful to have tags ordered before fields.

Current behavior: [What currently happens]
Columns, both tags and fields, are sorted alphabetically together.

Desired behavior: [What you would like to happen]
Sort the tags alphabetically, and then sort the fields alphabetically, and put the tags before the fields.

Use case: [Why is this important (helps with prioritizing requests)]
When there are many fields and/or tags, separating the two would make it easier to visually identify the important values, or to easily distinguish between changing values and changing sources (hosts, tag sets, cardinals, whatever), or to easily know where to find a tag when you have the same tags on multiple measurements.

@dandv
Copy link
Contributor

dandv commented Sep 14, 2016

Definitely 👍 for displaying the tags before the fields, so the output matches the examples from https://docs.influxdata.com/influxdb/latest/write_protocols/line_protocol_tutorial/#syntax.

Since tags are sorted at the engine level, not just as a presentation feature, they should remain sorted in the CLI output as well.

@dgnorton dgnorton added the 1.x label Jan 7, 2019
@stale
Copy link

stale bot commented Jul 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 23, 2019
@stale
Copy link

stale bot commented Jul 30, 2019

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

@stale stale bot closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants