influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

[0.9.5-nightly] Continuous queries for downsampling not preserving meta tags

Open priyadarsh opened this issue 11 years ago • 4 comments

CREATE CONTINUOUS QUERY book_response_counts_hourly on mydb BEGIN SELECT count(responsetime) INTO hourly_roll_up_book FROM "book" GROUP BY time(1h), * END

Build 0.9.5-nightly-827c513

I have created a down sampling continuous query as above. I wanted to preserve all the meta tags. But when this query executes I see only one record with time as "1970-01-01T00:00:00Z" and some random meta tag values with count field. Am I missing something here?

priyadarsh avatar Oct 26 '15 19:10 priyadarsh

@priyadarsh can you give an example of the output from both SELECT * FROM hourly_roll_up_book WHERE time > now() - 6h and also SELECT count(responsetime) FROM "book" WHERE time > now() -6h GROUP BY time(1h), *

beckettsean avatar Oct 26 '15 21:10 beckettsean

@priyadarsh are you using the bz1 engine or the tsm1 engine?

beckettsean avatar Oct 26 '15 22:10 beckettsean

@beckettsean I am using tsm1 engine. I recreated all the continuous again and it seems to be working fine now. Not sure what happened then. You may close this for now. If I face this again I will provide the mentioned data and open the issue again. Sorry for the trouble.

priyadarsh avatar Oct 28 '15 06:10 priyadarsh

Thanks for the update, @priyadarsh. Closing the issue until it recurs.

beckettsean avatar Oct 28 '15 17:10 beckettsean