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

User questions (not issue) regarding querying timestreams #607

Open
vincentvanhees opened this issue Apr 4, 2023 · 1 comment
Open

User questions (not issue) regarding querying timestreams #607

vincentvanhees opened this issue Apr 4, 2023 · 1 comment
Labels
question 🧐❓ Further information is requested

Comments

@vincentvanhees
Copy link

I am looking for a demo example on how to use timestreamquery() in context?

In particular I am wondering:

  • Can I use this in combination with parallel processing via foreach in R?
  • How do I fetch the queried data into the R workspace?

If there is a better place to ask questions like this then please tell me.

@DyfanJones
Copy link
Member

Hi @vincentvanhees

Can I use this in combination with parallel processing via foreach in R?
I believe this is ok, I have done something similar with future.apply and S3() in the s3fs package.

How do I fetch the queried data into the R workspace?
It looks like the method query should do this for you.
https://paws-r.github.io/docs/timestreamquery/query.html

Mini example:

client = paws::timestreamquery()
client$query(QueryString = "string")

Then you will need to parse the returning list :) I hope this helps :)

@DyfanJones DyfanJones added the question 🧐❓ Further information is requested label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 🧐❓ Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants