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

Any plans for support for TimestreamQuery ? #7426

Open
cipher1729 opened this issue Mar 5, 2024 · 3 comments
Open

Any plans for support for TimestreamQuery ? #7426

cipher1729 opened this issue Mar 5, 2024 · 3 comments

Comments

@cipher1729
Copy link

Hi, is there any plan to support Timestream Query (https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/timestream-query.html). We heavily use moto in our services and we do see support for TimestreamWrite (https://docs.getmoto.org/en/latest/docs/services/timestream-write.html), but having support for Query would be great.

@bblommers
Copy link
Collaborator

Hi @cipher1729, I'll mark it as an enhancement. Which methods specifically (besides query) are you after?

I don't see a way for us to completely emulate AWS' behaviour here, so the results of query will be either static, or configurable by the user. Do you have a preference? Would returning an empty list of rows work, or is that too simplistic?

@cipher1729
Copy link
Author

Thank you, we are looking for query, get_paginator, and the scheduled query ones create_scheduled_query , update_scheduled_query. Ah i see.. are there challenges to implementing AWS behavior specifically for Timestream-query which doesn't apply to timestream-write?

@bblommers
Copy link
Collaborator

Well, writing data is easy- we just have a regular list with all the data send by the user.

Supporting the query function means parsing the incoming query, which comes in a custom SQL dialect. I'm not aware of any opensource Python library to parse this dialect, and the alternative is writing our own parser - which is not something I personally have the time or energy for!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants