Git Product home page Git Product logo

Comments (2)

jheer avatar jheer commented on May 21, 2024

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...

  1. 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 }
  1. 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).

  2. 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.

jaanli avatar jaanli commented on May 21, 2024

Got it, thank you so much @jheer! That makes sense, will give it a shot 🙏

from mosaic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.