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

Respect range requests. #521

Closed
wants to merge 2 commits into from

Conversation

danielballan
Copy link
Member

Needs unit tests.

This is needed to support DuckDB httpfs, which sets the Range header.

$ http https://tiled-demo.blueskyproject.io/api/v1/node/full/bmm/raw/f8c83910-4adb-4207-a465-9ff0ff0e9cd2/primary/data/?format=application/x-parquet 'Range: bytes=0-100'
HTTP/1.1 206 Partial Content
Connection: keep-alive
Content-Length: 101
Content-Type: application/x-parquet
Date: Thu, 13 Jul 2023 19:33:38 GMT
Server: nginx/1.18.0 (Ubuntu)
content-range: bytes 0-100/83289
etag: 17c638c79d841b8a5c7c98fe07a4a078
expires: Thu, 13 Jul 2023 20:33:38 GMT
server-timing: read;dur=43.5, tok;dur=0.1, pack;dur=23.5, app;dur=105.4
set-cookie: tiled_csrf=h8wIyssQ2_Mg1J8OhWCofwIIEh0if1zbnFMZ-w5685k; HttpOnly; Path=/; SameSite=lax

Via duckdb:

import duckdb
db = duckdb.connect(':memory:')
db.execute('install httpfs; load httpfs;')
db.execute('SELECT * FROM read_parquet("https://tiled-demo.blueskyproject.io/api/v1/node/full/bmm/raw/f8c83910-4adb-4207-a465-9ff0ff0e9cd2/primary/data/?format=application/x-parquet")')

@danielballan danielballan added this to the v0.1.0 release milestone Jul 16, 2023
@danielballan
Copy link
Member Author

Superseded by #734

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

Successfully merging this pull request may close these issues.

1 participant