Replies: 2 comments
-
|
Note I don't think this is anyone's fault who implemented various versions of the detection logic. I think it's a situation where the spec is vague and different servers have done different things, so any version of the detection logic that is efficient for some servers is going to be broken for other servers -- hence the detection logic being updated in circles, and a way to opt out of detection logic entirely is desirable. |
Beta Was this translation helpful? Give feedback.
-
|
I'm running into the same issue. My server supports range requests, but DuckDB thinks it doesn't because of the HEAD request. Pulling in the whole Parquet file is not an option for me, so it would be great if I could force it to use range requests. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The logic to detect whether range requests are supported or not is complicated and brittle. (The openFile function in runtime_browser.ts).
reliable_head_requestsandallow_full_http_reads, that have effects that are hard to understand even when reading the code.SET reliable_head_requests = trueto get range requests to work in the Vite dev server, butSET reliable_head_requests = falseto get them to work with files served on source.coop (which I think is S3 under the hood).I think much of this could be mitigated if there was a setting like
force_range_requests, on/off/unset, that worked like:This would work well in two situations:
force_range_requestsand seeing what happens.I think both of these situations are well communicated by offering a
force_...flag -- if you use it, what happens is on you, but we have it because you might know better than we do.Beta Was this translation helpful? Give feedback.
All reactions