When creating a table from a parquet file using CREATE OR REPLACE
, the data is not replaced.
- Run the mosaic server with
npm run server
- Run the web server with
npm run dev
- Click the
Load table_1
button and you should get a scatter plot - Click the
Load table_2
button.
Expected result
The chart gets reloaded with different data.
Actual result
The same data is loaded.
I thought the issue was due to Mosaic cacheing the results so I set the following, which fixes the issue:
await vg.coordinator().configure({
cache: false
})
However, it doesn't matter what the value of cache
here is. The bug is fixed as long as this configure call is made. For example, setting it to the defaults fixes it:
await vg.coordinator().configure({
cache: true,
index: true
})
This also fixes it:
await vg.coordinator().configure({})
To enable the fix, un-comment line 9 in src/App.svelte
.