Implement col_description so BI tools can sync member descriptions
Is your feature request related to a problem? Please describe. Member descriptions defined in the data model are not exposed to BI tools that retrieve column comments through the SQL API. Metabase’s Postgres driver syncs table comments by joining pg_description with objsubid = 0, so cube/view descriptions are available. However, it retrieves column comments using col_description. In CubeSQL, col_description is currently a no-op that always returns NULL. As a result, Metabase sees no descriptions for any fields, even though those descriptions are already defined in the data model and stored in pg_description.
Describe the solution you'd like Make col_description return the column description from the existing metadata.
Describe alternatives you've considered Copying descriptions from /cubejs-api/v1/meta into Metabase's field metadata through its API after every deploy. It works, but it's a separate sync to maintain per BI tool, for data the SQL API already has.
Additional context
- Cube 1.6.4
Source: cube-js/cube