Athena result object should have type information, and a way to make it a dataframe #2383
Replies: 3 comments 10 replies
-
Does Athena return the type information? If so, we can add it to the struct and then use it on Table.Reader. Check out ReqAthena. :) |
Beta Was this translation helpful? Give feedback.
-
Yep looks like it! https://github.com/livebook-dev/req_athena/blob/main/lib/req_athena.ex#L297-L314 |
Beta Was this translation helpful? Give feedback.
-
req_athena now exports the type information, but the version hasn't been yet released. See livebook-dev/req_athena#34 for some discussion on it. It's the first step for this feature. |
Beta Was this translation helpful? Give feedback.
-
If i connect to athena and query it, i get back a result object like so;
livebook will display this result with typed fields
to convert it to a dataframe i do
but now it's untyped. I think we need a common way to get data from these external data sources into typed dataframes. I'd love to see elasticsearch support for instance. I'm not sure the best way to go about it.
I should also note that it would be great if datetime columns were also converted (another pain point!)
Beta Was this translation helpful? Give feedback.
All reactions