fix: 处理doris 字段长度

This commit is contained in:
taojinlong 2021-05-10 18:19:29 +08:00
parent 26b6bddee7
commit e46644534d
3 changed files with 8 additions and 3 deletions

View File

@ -115,7 +115,11 @@ public class ExtractDataService {
Column_Fields = Column_Fields + datasetTableField.getDataeaseName() + "` ";
switch (datasetTableField.getDeType()){
case 0:
Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize())) + ",`";
if(datasetTableField.getSize() > 65533){
Column_Fields = Column_Fields + "String" + ",`";
}else {
Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize())) + ",`";
}
break;
case 1:
Column_Fields = Column_Fields + "varchar(lenth)".replace("lenth", String.valueOf(datasetTableField.getSize())) + ",`";

View File

@ -1,2 +1,3 @@
ALTER TABLE `dataset_table_field` ADD COLUMN `dataease_name` varchar(255) NOT NULL COMMENT '字段名' AFTER `name`;
ALTER TABLE dataset_table_task_log CHANGE COLUMN `task_id` `task_id` VARCHAR(50) NULL COMMENT '任务ID' ;
ALTER TABLE dataset_table_task_log CHANGE COLUMN `task_id` `task_id` VARCHAR(50) NULL COMMENT '任务ID' ;
ALTER TABLE `dataset_table_task_log` CHANGE COLUMN `info` `info` LONGTEXT NULL DEFAULT NULL COMMENT '错误信息' ;

View File

@ -44,7 +44,7 @@
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install</arguments>
<arguments>install --force</arguments>
</configuration>
</execution>