Comments (2)
I believe the issue stems from the fact that your specs create a table with the same name. By default, the data loaders will not replace an existing table, so when you navigate from one page to another without reloading, the DuckDB-WASM instance persists, including any previously loaded tables. This would explain both the binder error and why re-loading resolves the issue.
So I think there are multiple solutions you could apply...
- If you want to replace any existing table with the same name, update your data definition to specify this:
data:
charges: { file: data/EIN_74110155_houston-methodist-hospital.parquet, replace: true }
-
Or, if you always use distinct table names, your app will load all the various tables and keep them loaded (until the page is reloaded).
-
Alternatively, you could update your web application logic to first drop all tables when navigating to a new page, basically performing a "hard reset" of the DuckDB-WASM instance.
For simplicity (and to prevent the number of loaded data tables from getting too large), I would probably default to option 1 above -- assuming this does not interfere with other Mosaic specs loaded on the same page.
from mosaic.
Got it, thank you so much @jheer! That makes sense, will give it a shot 🙏
from mosaic.
Related Issues (20)
- Examples have hidden setup HOT 2
- cannot parse/access json response of query: Bad escaped character HOT 3
- Add struct/list support for load query options.
- Expose a handler in data-server package HOT 1
- rectY Mark is not updating bin step size as data is filtered HOT 2
- Exception is raised when intervalXY is used on cells HOT 1
- Update to latest version of duckdb HOT 2
- Add Panel example
- Add responsive height and width option
- Axis scale includes null value counts HOT 5
- Data is cached even after table is replaced unless `.configure` is called HOT 2
- Please add type `TIMESTAMP WITH TIME ZONE`
- make data-server usable as a websocket library HOT 1
- Literal SQL values using '...' are lost during serialization => Binder Error: Referenced column not found... HOT 1
- Jupyter widget breaks on non-localhost http jupyters
- Let interactors update more than one parameter
- Highlight interactor sometimes highlights the wrong thing for large datasets HOT 2
- Cannot specify arbitrary aggregations in json
- Window functions do not work in query with aggregate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mosaic.