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

framework tries to build a remote file listed in sql front-matter #1635

Closed
Fil opened this issue Sep 3, 2024 · 0 comments · Fixed by #1636
Closed

framework tries to build a remote file listed in sql front-matter #1635

Fil opened this issue Sep 3, 2024 · 0 comments · Fixed by #1636
Assignees
Labels
bug Something isn’t working

Comments

@Fil
Copy link
Contributor

Fil commented Sep 3, 2024

Here’s test.md:

---
sql:
  taxi: https://blobs.duckdb.org/data/taxi_2019_04.parquet
---

```sql echo
SELECT COUNT() FROM taxi;
```

The page works fine in preview and in build, and displays the expected result 7,433,139.

However the logs show an erroneous tentative in build to copy the (non-existing) resource src/https:/blobs.duckdb.org/data/taxi_2019_04.parquet (note the single / after https:).

copy src/https:/blobs.duckdb.org/data/taxi_2019_04.parquet → error: missing referenced file

Another symptom is a spurious call to registerFile in the page's scripts:

registerFile("https://blobs.duckdb.org/data/taxi_2019_04.parquet", {"name":"https://blobs.duckdb.org/data/taxi_2019_04.parquet","path":"https://blobs.duckdb.org/data/taxi_2019_04.parquet"});
@Fil Fil added the bug Something isn’t working label Sep 3, 2024
@mbostock mbostock self-assigned this Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants