Skip to content

[FEAT] Add typed enum attribute map lookup - #977

Merged
cyx-6 merged 3 commits into
apache:mainfrom
tqchen:feat/enum-attr-column
Nov 16, 2026
Merged

cyx-6 merged 3 commits into
apache:mainfrom
tqchen:feat/enum-attr-column

Conversation

@tqchen

@tqchen tqchen commented Nov 15, 2026

Copy link
Copy Markdown
Member

Add reflection::EnumAttrMap<EnumClsObj, T> and GetEnumAttrMap<EnumClsObj>(AttrKey<T>) alongside EnumDef. The factory resolves the enum object type internally and deduces the attribute value type from its key.

Maps retain the shared registry dictionary for typed lookup by enum singleton identity. Missing columns throw; missing or None entries return std::nullopt, and AttrKey::ValueFrom checks present values. Later registrations and attribute updates remain visible.

@cyx-6
cyx-6 merged commit 9574941 into apache:main Nov 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants