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

feat: parse timeseries into an array of time, value pairs #33

Closed
wants to merge 1 commit into from

Conversation

pfried
Copy link
Contributor

@pfried pfried commented Mar 1, 2021

As AWS Timestream supports creating Timeseries from Queries I would like to add the support to parse them into an array of time value pairs.

This comes handy when you want to query multiple devices or properties in one query as the results will be nested.

A query resolving in a timeseries could be

SELECT device, measure_name,
CREATE_TIME_SERIES(time, measure_value::double) as timeseries
FROM "<Database>.<Table>"
WHERE time > ago(1d)
AND measure_name in ('speed', 'acceleration')
AND deviceId IN ('Device1', 'Device2')
GROUP BY device, measure_name

Adding .idea to .gitignore

@pfried pfried requested a review from coderbyheart as a code owner March 1, 2021 06:50
@CLAassistant
Copy link

CLAassistant commented Mar 1, 2021

CLA assistant check
All committers have signed the CLA.

coderbyheart added a commit that referenced this pull request Mar 1, 2021
Co-authored-by: Friedrich Maeckle <maeckle@nantis.de>
@coderbyheart
Copy link
Member

Thank you!
Closed via 2cbeac7.
I removed the change to .gitignore and added a note, why: d4a4689

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.

3 participants