cube-js/cube

Align `TableColumn` Type with `Annotation` (Client Core)

Open

#9,976 建立於 2025年9月17日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (1,965 fork)batch import
client:corehelp wanted

倉庫指標

Star
 (19,563 star)
PR 合併指標
 (平均合併 5天 16小時) (30 天內合併 138 個 PR)

描述

Is your feature request related to a problem? Please describe.

We have two related types (as I believe table columns are derived from the annotation data):

https://github.com/cube-js/cube/blob/0fde75d3975d6911ec67353dacb9cfa0f62f0096/packages/cubejs-client-core/src/types.ts#L18-L27

https://github.com/cube-js/cube/blob/0fde75d3975d6911ec67353dacb9cfa0f62f0096/packages/cubejs-client-core/src/types.ts#L304-L313

I'm wondering why the types for type and format are different? I feel like Annotation is the correct one?

Describe the solution you'd like

Update the TableColumn type to better match Annotation.

Describe alternatives you've considered

N/A

Additional context

N/A

貢獻者指南