-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't fetch http query set #1
Comments
Thanks for your reporting! I use the same parquet file in develop testing XD. This issue is likely a CORS problem. You should find a request is blocked in the browser's debugging panel. The root cause is the underlying storage implement (OpenDAL HTTP operator) can't add a CORS header. Related discussion is here. It's now a bit tricky to use the HTTP/HTTPS files. The solution is like using S3 that setting the server to add the needed CORS header. But HTTPs server doesn't have an easy way to add it like S3. I've tried two ways to work around it: (a) download the file and serve it from the local environment using a server that can add custom headers. (b) setup a HTTPS proxy and add the header in that proxy. Both ways request a TLS cert since requesting HTTP content from HTTPS website (that playground) is also forbidden. |
Thanks @waynexia -- now that you say this it makes sense that CORs would prevent the webpage from making requests to arbitrary other hosts (I forget now that I mostly do backend development these days). The most interesting usecase for sure would be to show the wasm playground working with some data served from the same server (aka to do "in browser analytics") |
Give this a try. DuckDB's S3 address is already set up to allow cross-origin resource sharing (CORS), CREATE EXTERNAL TABLE lineitem |
I added it to playground's readme datafusion-contrib/datafusion-wasm-playground@2b86c19 |
Cross reference apache/opendal#4446, ticket tries to solve the CORS problem from our side. |
As mentioned in apache/opendal#4446, we can add headers while building opendal operators. |
Originally posted by @alamb: waynexia/datafusion-wasm#1
Thanks @waynexia this is amazing 🙏 I found it from apache/datafusion#9834
I figured I would report an error I encountered in case that would help
I tried to setup https://waynexia.github.io/datafusion-playground/ to read from the clickbench data
https://github.com/ClickHouse/ClickBench/
However, when I ran this query
The text was updated successfully, but these errors were encountered: