want to be able to serve responses as Apache Arrow data #3947
-
ProblemI have stakeholders who want to be able to receive responses to HTTP requests as Arrow IPC streams. SolutionThere's an implementation of HTTP methods for sharing Arrow data. Postgres was one of the first databases to have an Arrow Flight SQL implementation. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
It would probably help to explain what that is and why PostgREST, the project, would benefit from it. |
Beta Was this translation helpful? Give feedback.
-
For Apache Arrow, it's an in-memory columnar data standard that is geared towards analytical workloads. Here's the one-pager overview. I find that users of my data are looking to do their own analytics, serving Arrow data would mean that they could do analysis without having to convert from JSON to another format. |
Beta Was this translation helpful? Give feedback.
-
So you want to return a different format instead of JSON? Have a look at https://docs.postgrest.org/en/v12/references/api/media_type_handlers.html - does that help? |
Beta Was this translation helpful? Give feedback.
-
Yes it does! It helps that Arrow does have their own MIME types |
Beta Was this translation helpful? Give feedback.
So you want to return a different format instead of JSON?
Have a look at https://docs.postgrest.org/en/v12/references/api/media_type_handlers.html - does that help?