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

This test illustrates a problem with Points.newFieldsFromBinary. #5712

Closed

Conversation

jonseymour
Copy link
Contributor

Prior to #5697 it causes a panic, after #5697 it causes an infinite loop

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

@jonseymour jonseymour mentioned this pull request Feb 17, 2016
jonseymour added a commit to jonseymour/influxdb that referenced this pull request Feb 17, 2016
…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>
Prior to influxdata#5697 it causes a panic, after influxdata#5697 it causes an infinite loop

Signed-off-by: Jon Seymour <jon@wildducktheories.com>
@jonseymour jonseymour force-pushed the js-empty-field-name-test branch from 9eae0a5 to 23be938 Compare February 17, 2016 06:00
@jonseymour
Copy link
Contributor Author

The previous version of this test had a bug. Fixed in this version.

@jonseymour
Copy link
Contributor Author

Closed in favour of #5716

@jonseymour jonseymour closed this Feb 17, 2016
@jonseymour jonseymour deleted the js-empty-field-name-test branch February 17, 2016 06:13
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