fix: 修复度量字段/别名重复问题,统一使用field作为标识符#361
Merged
LoganLCX merged 2 commits intoVisActor:mainfrom Mar 5, 2026
Merged
Conversation
youngwinds
reviewed
Mar 5, 2026
youngwinds
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
系统在处理度量字段时混用了
alias(别名/显示名称,非唯一)和field(字段名,唯一标识),导致多个度量共用相同别名时发生数据冲突和状态错乱。解决方案
统一使用
field作为度量字段的唯一标识符,涉及三个关键层:1. Builder 层
MeasuresBuilder.modifyMeasure()参数从alias改为fieldfield而非alias2. App 状态管理层
measuresDetail从Record<alias, ...>改为Record<field, ...>3. 数据连接器层
demoConnector输出数据列名使用field而非alias测试