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 75aacd9cc8b9c8370008534054322479d80d3fcc Author: Qian Xia <lauraxiaq...@gmail.com> AuthorDate: Thu Jul 13 16:15:00 2023 +0800 KYLIN-5627 refine logical view and ddl import table issue --- kystudio/src/components/studio/DDL/ddl.vue | 3 ++- kystudio/src/components/studio/LogicalView/LogicalView.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kystudio/src/components/studio/DDL/ddl.vue b/kystudio/src/components/studio/DDL/ddl.vue index c83751e25f..29f95b8575 100644 --- a/kystudio/src/components/studio/DDL/ddl.vue +++ b/kystudio/src/components/studio/DDL/ddl.vue @@ -153,7 +153,8 @@ }) const resultData = await handleSuccessAsync(res) this.running = false - this.showCreateSuccessAlert = this.content.toLocaleLowerCase().indexOf('create view') > -1 + const ddlRule = /create\s+view/i + this.showCreateSuccessAlert = ddlRule.test(this.content) resultData && this.insertEditorContent(`\n\n${resultData}`) this.resetErrorMsg() this.$message({ type: 'success', message: this.$t('runSuccess') }) diff --git a/kystudio/src/components/studio/LogicalView/LogicalView.vue b/kystudio/src/components/studio/LogicalView/LogicalView.vue index ab3ce8404e..80d1902492 100644 --- a/kystudio/src/components/studio/LogicalView/LogicalView.vue +++ b/kystudio/src/components/studio/LogicalView/LogicalView.vue @@ -224,7 +224,8 @@ }) const resultData = await handleSuccessAsync(res) this.running = false - this.showCreateSuccessAlert = this.content.toLocaleLowerCase().indexOf('create logical view') > -1 + const logicalRule = /create\s+logical\s+view/i + this.showCreateSuccessAlert = logicalRule.test(this.content) resultData && this.insertEditorContent(`\n\n${resultData}`) this.resetErrorMsg() this.$message({ type: 'success', message: this.$t('runSuccess') })