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

FIRST/ LAST return "interface is nil, not engine.FirstOrLastAggregatorState" #876

Closed
nicolai86 opened this issue Aug 26, 2014 · 7 comments
Closed

Comments

@nicolai86
Copy link
Contributor

I've a query which looks like this:

SELECT FIRST(a), FIRST(b) FROM my_series WHERE time > now() - 7d GROUP BY c, d, time(24h) fill(0);

In influxdb 0.7.3 this worked just fine, 0.8.0 returns

Internal Error: interface conversion: interface is nil, not engine.FirstOrLastAggregatorState

I'm not quite sure why this stopped working - according to the 0.8 docs the functions should work the same still.

Removing FIRST makes the query execute again, but it returns different results.

@nicolai86
Copy link
Contributor Author

After looking at the go source I think this use case should already have a test in integration/data_test.go:1320 CountWithAlias because it executes select %s(column0) as some_alias from test_aliasing for every aggregator, including FIRST and LAST.

I've added a test case to the data_test with my specific query and it works without any problems. Guess it must be a initialization problem someplace else.

@Dieterbe
Copy link
Contributor

see also #780 where i found various issues with different aggregation methods

@nicolai86
Copy link
Contributor Author

Just a heads up: the error still persists in v0.8.1 and current master branch.

@nicolai86
Copy link
Contributor Author

@jvshahid any update on this? the error persists since v0.8.0 through v0.8.2 as well as on master.

@jvshahid
Copy link
Contributor

jvshahid commented Sep 8, 2014

Duplicate of #780. @dgnorton is actually taking a stab at it

@pablo-tech
Copy link

this error persist as of today for

select FIRST(PRICE), MIN(PRICE), MAX(PRICE), LAST(PRICE) from "SPX-INDEX-TRADED" group BY time(1h) fill(0) where time > '2015-07-01 00:00:00' AND time < '2015-07-08 23:59:59'

at http://calvinklein-fluxcapacitor-1.c.influxdb.com:8083

@beckettsean
Copy link
Contributor

@pablo-tech that server is running version 0.8.2, for which there is no longer ongoing support. As I recommended, try putting the fill(0) at the end of the query, but otherwise the solution is to upgrade to 0.9.

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

No branches or pull requests

5 participants