Keep "Column description" for Virtual Dataset #43298
Replies: 1 comment
|
Hi @emmanuel-bos! I'm Dosu and I'm helping the Apache Superset team. This is expected behavior, not a bug — but it's a limitation worth knowing about. For physical datasets, Superset uses SQLAlchemy's inspector ( For virtual datasets, metadata is obtained differently: Superset runs your SQL query with a The gap is architectural: physical datasets go through the inspector (which knows about column comments), while virtual datasets go through query execution (which doesn't). The Workaround: You can manually fill in column descriptions in the virtual dataset editor (Dataset → Edit → Columns → description field), since To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm new to Superset and still discovering it. Seems great ! I'm connecting it to a PostgreSQL datasource. This PostgreSQL instance has comments on each column set with the non standard SQL command "Comment on ". I was happily surprised to find that when creating a physical dataset, those comments were retrieved in the column descrition. I expect this to be very useful when I will test the MCP server functionality. But when I create un Virtual Dataset from on join query in the SQL Lab, I see the SQL comments are not retrieved in the column description. It seems pity as I will have to fill it myself to interact to best use the MCP functionality. Is there a reason to that or is it just a bug ?
All reactions