DataStrategistTeam opened a new issue, #36808:
URL: https://github.com/apache/superset/issues/36808
### Bug description
**Superset version:** (fill in, e.g. 6.0.0)
**Database:** DuckDB
**Deployment:** ( k8s)
**OS:** (Linux)
---
### Description
When using **DuckDB** as a database in Superset, **SQL Lab queries work**,
but **creating charts in Explore always fails** with:
```
DB engine Error
Authentication required.
Issue 1011 - Superset encountered an unexpected error.
```
This error is misleading: DuckDB does **not support authentication**, and
the connection itself is valid.
---
### Steps to reproduce
1. Add a DuckDB database in Superset
Example SQLAlchemy URI:
```
duckdb:///:memory:
```
2. Go to **SQL Lab** and run:
```sql
SELECT
i AS content_id,
(i * 37) % 500 + 50 AS view_count
FROM range(1, 11) AS r(i);
```
✅ Query runs successfully
3. Click **Explore → Save as Dataset** (Virtual Dataset)
✅ Dataset is created successfully
4. Click **Create Chart** from the dataset
❌ Error occurs:
```
Authentication required (Issue 1011)
```
---
### Expected behavior
* Superset should allow creating charts from DuckDB datasets (physical or
virtual), **or**
* Superset should fail gracefully with a **clear error message** indicating
that DuckDB Explore/metadata reflection is unsupported.
---
### Actual behavior
* SQL Lab works
* Dataset creation works
* Chart creation fails
* Superset throws a **misleading “Authentication required” error**
---
### Additional notes / diagnosis
* This happens with:
* File-backed DuckDB (not `:memory:`)
* Tables, views, and virtual datasets
* Permissions and file access are correct
* The failure appears during **Explore / metadata inspection / reflection**
* The error message is incorrect and makes debugging difficult
---
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [x] I have checked Superset's logs for errors and if I found a relevant
Python stacktrace, I included it here as text in the "additional context"
section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]