This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch kylin5 in repository https://gitbox.apache.org/repos/asf/kylin.git
commit 17f21a47ca764438fc93a729bbe93ac6add42f33 Author: Qian Xia <lauraxiaq...@gmail.com> AuthorDate: Wed Apr 12 11:25:50 2023 +0800 KYLIN-5500 refine dimension trim issue --- kystudio/src/components/studio/StudioModel/DimensionsModal/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kystudio/src/components/studio/StudioModel/DimensionsModal/index.vue b/kystudio/src/components/studio/StudioModel/DimensionsModal/index.vue index 5ed456fb2d..64e98f5e18 100644 --- a/kystudio/src/components/studio/StudioModel/DimensionsModal/index.vue +++ b/kystudio/src/components/studio/StudioModel/DimensionsModal/index.vue @@ -562,7 +562,7 @@ export default class DimensionsModal extends Vue { const tableValue = Object.values(this.tables) const names = [] tableValue.forEach(item => { - names.push(...item.columns.map(it => it.alias || it.name)) + names.push(...item.columns.map(it => it.alias || it.name.trim())) }) tableValue.forEach((table, idx) => { if (table.kind === 'FACT') { @@ -577,6 +577,7 @@ export default class DimensionsModal extends Vue { let others = this.otherColumns.length ? this.otherColumns : this.modelDesc.all_named_columns.filter(item => !selectedColumns.includes(item.column)) // 将已经选上的dimension回显到界面上 table.columns && table.columns.forEach((col, index) => { + col.name = col.name.trim() this.$set(col, 'tableName', table.alias) this.$set(col, 'alias', this.getUniqueAlias(this.uniqueAliasObj, col.name.replace(unIncludedNameRegex, ''))) // 去除不符合维度命名的字符) this.$set(col, 'isSelected', false)