Do you have an origin for the discussion about access-control-allow-headers? Range would be easy enough to add add to the cors headers, but I’m not entirely sure how good cloudfront/s3 support is (it seems to exist but I’ve never stressed it).
I verified ranged fetches of file attachments don't work on published notebooks, but you could attempt them on private notebooks/attachments for now (those don't cross a CORS boundary and seem to work for me).
Thanks for checking Pasted a link to the github discussion here in the block, https://github.com/duckdb/duckdb-wasm/discussions/356.
Dominick Moritz links from there to an issue he filed on observable at Mike Bostock's request. https://github.com/observablehq/feedback/issues/283
That's great if it works on local ones.
Looking at it a little more, I think this specific notebook probably would benefit less than others from the partial range approach anyway, because it does a full table scan relatively early.
It would be great if we could do range requests against files on e.g. GitHub. That wouldn't require support for range requests in cloud front yet, right? As a second step, support range requests over file attachments would be sweet as well.
these are all red for me.
'RuntimeError: Catalog Error: Table with name characteristics@2 does not exist!
Did you mean "characteristics"?
LINE 1: ...l_filter AS SELECT UNITID, INSTNM FROM "characteristics@2" WHERE TRUE AND "STA...
'
First errors are fixed. This cell is erroring with "viewof school_total = Error: Catalog Error: Table with name school_filter_including_table does not exist!
Did you mean "fields_raw"?"
Did you know the trick of using Chrome Incognito Mode to debug a notebook as an anonymous viewer (i.e. a member of the public)?
you could make the height dynamic, like `2.5 * majors.toArray().length` instead of fixed `2000`, to adjust the gap between rows for varying number of records.
Interactive exploration with DuckDB: 5.2 million rows of college degrees in the browser | Benjamin Schmidt | Observable