Using the same chart multiple times in a dashboard can throw error about missing columns · Issue #14728 · lightdash/lightdash · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
almeidabbm opened this issue
May 8, 2025
· 2 comments
· May be fixed by #15059
Assignees
Labels
🐛 bugSomething isn't working as expected. This can be an error or an unexpected user experiencetech-debtCruft, refactoring, and hinderances to developer productivity
A way to keep simple code flow with no "cache/results files" updates and different state management:
Delete cache table, all info is in query_history
query history columns: query_hash (non unique, indexed), file_name (string, non unique)
Scenario:
cache: find query by query_hash + state=ready + not expired (calculate with created_at + stale time) -> applies the same file name to new query_history row
scenario where state != ready: 2 queries with the same hash are triggered at the same time -> 2 query history + 2 files (no cache used)
ZeRego
changed the title
Rename results_cache and ResultsCacheModel
Using the same chart multiple times in a dashboard can throw error about missing columns
May 28, 2025
ZeRego
added
🐛 bug
Something isn't working as expected. This can be an error or an unexpected user experience
tech-debt
Cruft, refactoring, and hinderances to developer productivity
labels
May 28, 2025
🐛 bugSomething isn't working as expected. This can be an error or an unexpected user experiencetech-debtCruft, refactoring, and hinderances to developer productivity
Uh oh!
There was an error while loading. Please reload this page.
There is a race condition when loading the same chart multiple times in the same dashboard.
They both upsert the row in the cache table because cache_key is unique so the 2 charts can't load the results independently.
The text was updated successfully, but these errors were encountered: