Superset using duckdb connection encounter DB engine error #31978
Labels
dashboard:performance
Related to Dashboard performance
data:connect:duckdb
Related to a specific database
Bug description
When I use DuckDB to connect to MINIO to read data, I often encounter (not always) the following error:
or sometime error msg are
This seems to be related to having multiple filters on a dashboard. I observed that to generate the dropdown menu for each filter, a distinct SQL query is executed on the dataset for each filter. I suspect that this is causing many concurrent queries to be executed simultaneously when the dashboard is opened.
And there is also an error msg on superset server:
The current probability of error occurrence is about fifty-fifty without changing any settings, not occur every time.
This leads to suspicions that it might be an issue with the rate limit or the number of threads. In the article below, I saw that when using duckdb.connect(:default:), it might induce error since running queries concurrently on the same connection is not supported.
duckdb issue link
However, this is different from the error message I received, and I'm not sure if it's related. Has anyone else using Superset + DuckDB encountered a similar issue? Thanks."
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.10
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: