-
Notifications
You must be signed in to change notification settings - Fork 78
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
Get random access to the rows #13
Comments
Currently, some datasets are fully on the disk (those that cannot be streamed, and have a small size) and could be queried for ranges of rows, or could produce statistics. |
Another Hub that gives random access to the data: https://app.activeloop.ai/activeloop/coco-train (right panel) |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Design thoughts (thanks to discussion with @lhoestq):
|
for consistency with the arrow terminology you can use |
Maybe we could eventually switch to Apache Flight to make this performant. A nice article that compares Apache Flight and the standard approach based on returning a binary format over HTTP: https://voltrondata.com/resources/data-transfer-at-the-speed-of-flight |
We could provide two response formats for the /rows endpoint, depending on what the client wants:
We could use the Accept header, or a query parameter, to select the format of the response. |
Another option would be to create an Arrow Flight server that can be accessed on a dedicated endpoint (it's RPC, not REST API); and the /rows endpoint would use that RPC endpoint to serve a JSON serialized response. |
Done |
Currently, only the first rows can be obtained with /rows. We want to get access to slices of the rows through pagination, eg /rows?from=40000&rows=10
The text was updated successfully, but these errors were encountered: