This is an automated email from the ASF dual-hosted git repository.
leezng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git
The following commit(s) were added to refs/heads/master by this push:
new eca88ea3b [INLONG-4028][Dashboard] Make ClickHouseTargetType matches
ClickHouse uses (#4029)
eca88ea3b is described below
commit eca88ea3b318d878bf7172a16ea54455c44c763b
Author: lucaspeng12138 <[email protected]>
AuthorDate: Fri Apr 29 18:49:46 2022 +0800
[INLONG-4028][Dashboard] Make ClickHouseTargetType matches ClickHouse uses
(#4029)
* Make ClickHouseTargetType matches ClickHouse uses
* Delete no use code
Co-authored-by: lucaspeng <[email protected]>
---
.../src/components/MetaData/StorageClickhouse.tsx | 24 ++++++++--------------
1 file changed, 9 insertions(+), 15 deletions(-)
diff --git a/inlong-dashboard/src/components/MetaData/StorageClickhouse.tsx
b/inlong-dashboard/src/components/MetaData/StorageClickhouse.tsx
index 3505c78ff..36220fef7 100644
--- a/inlong-dashboard/src/components/MetaData/StorageClickhouse.tsx
+++ b/inlong-dashboard/src/components/MetaData/StorageClickhouse.tsx
@@ -30,21 +30,15 @@ import { sourceDataFields } from './SourceDataFields';
// ClickHouse targetType
const clickhouseTargetTypes = [
- 'string',
- 'boolean',
- 'byte',
- 'short',
- 'int',
- 'long',
- 'float',
- 'double',
- 'decimal',
- // 'time',
- // 'date',
- // 'timestamp',
- // 'map<string,string>',
- // 'map<string,map<string,string>>',
- // 'map<string,map<string,map<string,string>>>',
+ 'String',
+ 'Int8',
+ 'Int16',
+ 'Int32',
+ 'Int64',
+ 'Float32',
+ 'Float64',
+ 'DateTime',
+ 'Date',
].map(item => ({
label: item,
value: item,