数据导入分析接口调整
This commit is contained in:
@ -12,7 +12,6 @@
|
||||
方向 2:字段数据类型与格式推断
|
||||
针对每列:输出推断数据类型(如 varchar(n) / int / bigint / tinyint / float / double / decimal(p,s) / date / datetime / text)。
|
||||
说明推断依据:样本值分布、长度范围、格式正则、是否存在空值、是否数值但含前导零等。
|
||||
指出数据质量初步观察:缺失率、是否有异常/离群值(简单规则即可)、是否需标准化(如去空格、去重、枚举值归一)。
|
||||
给出“建议处理动作”:如 trim、cast_float、cast_int、cast_double、cast_date、cast_time、cast_datetime,适用于将样本数据转换成数据库表字段兼容的格式。
|
||||
若为“可能是枚举”的字段,列出候选枚举值及占比。
|
||||
|
||||
@ -23,12 +22,8 @@
|
||||
"columns": [{
|
||||
"original_name": "原始名称",
|
||||
"standard_name": "标准化后的名称: 下划线命名,大小写字母、数字、下划线",
|
||||
"data_type": "数据类型限制为:number/string/datetime",
|
||||
"db_type": "数据库字段类型",
|
||||
"java_type": "java字段类型限制为: int/long/double/string/date",
|
||||
"data_type": "",
|
||||
"nullable": true/false,
|
||||
"distinct_count_sample": number,
|
||||
"null_ratio_sample": 0.x,
|
||||
"is_enum_candidate": true/false,
|
||||
"description": "字段简短描述",
|
||||
"date_format": "转换成Date类型的pattern"
|
||||
|
||||
Reference in New Issue
Block a user