From 096684f767cc997fdea27406a7456c98d7e0bbd4 Mon Sep 17 00:00:00 2001 From: ZonaHe Date: Mon, 8 Apr 2024 15:45:33 +0800 Subject: [PATCH 1/2] refactor: data type in solumn schemas --- src/store/modules/database/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/database/index.ts b/src/store/modules/database/index.ts index f6819af4..0c9a827b 100644 --- a/src/store/modules/database/index.ts +++ b/src/store/modules/database/index.ts @@ -37,7 +37,7 @@ const useDataBaseStore = defineStore('database', () => { return schema.name === 'column_name' }) const dataTypeIndex = columnSchemas.findIndex((schema: SchemaType) => { - return schema.name === 'data_type' + return schema.name === 'greptime_data_type' || 'data_type' }) const semanticTypeIndex = columnSchemas.findIndex((schema: SchemaType) => { From f3e7ac0073dd12ff8413cd87024bd5c21401b098 Mon Sep 17 00:00:00 2001 From: ZonaHe Date: Mon, 8 Apr 2024 16:25:54 +0800 Subject: [PATCH 2/2] fix: data type --- src/store/modules/database/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/database/index.ts b/src/store/modules/database/index.ts index 0c9a827b..4e9cbf80 100644 --- a/src/store/modules/database/index.ts +++ b/src/store/modules/database/index.ts @@ -37,7 +37,7 @@ const useDataBaseStore = defineStore('database', () => { return schema.name === 'column_name' }) const dataTypeIndex = columnSchemas.findIndex((schema: SchemaType) => { - return schema.name === 'greptime_data_type' || 'data_type' + return schema.name === 'greptime_data_type' || schema.name === 'data_type' }) const semanticTypeIndex = columnSchemas.findIndex((schema: SchemaType) => {