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

tsdb: prevent fields with empty names being written by SELECT INTO #5713

Conversation

jonseymour
Copy link
Contributor

Currently, if one tries to run a SELECT INTO statement with a query whose
result set has an empty column names influx will panic (#5644, #5697) or enter an
infinite loop (#5712).

An example of a query which causes this problem is

select count(value)/60 into cpu_hour from cpu group by time(1h)

It doesn't seem sane to create points with fields containing empty names,
so for now, return an error rather doing something we know is going
to cause a problem down the track.

A better alternative might be to assign/generate default names to such columns.

Signed-off-b: Jon Seymour jon@wildducktheories.com

…atements

Currently, if one tries to run a SELECT INTO statement with a query whose
result set has an empty column names influx will panic (influxdata#5644) or enter an
infinite loop (influxdata#5712).

An example of a query which causes this problem is

    select count(value)/60 into cpu_hour from cpu group by time(1h)

It doesn't seem sane to create points with fields containing empty names,
so for now, return an error rather doing something we know is going
to cause a problem down the track.

A better alternative might be to assign/generate default names to such columns.

Signed-off-b: Jon Seymour <jon@wildducktheories.com>
@jonseymour
Copy link
Contributor Author

Fails with merge conflict. Will create fix for 0.10.0 and a separate branch for merging with master.

@jonseymour jonseymour closed this Feb 17, 2016
@jonseymour jonseymour deleted the js-refuse-to-create-empty-field-names branch February 17, 2016 07:10
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.

1 participant