forked from github/dataease
fix: 识别 hive 字段类型
This commit is contained in:
parent
c611a5e7e3
commit
8986e4cc3a
@ -282,7 +282,7 @@ public class JdbcProvider extends DatasourceProvider {
|
|||||||
String f = metaData.getColumnName(j + 1);
|
String f = metaData.getColumnName(j + 1);
|
||||||
String l = StringUtils.isNotEmpty(metaData.getColumnLabel(j + 1)) ? metaData.getColumnLabel(j + 1) : f;
|
String l = StringUtils.isNotEmpty(metaData.getColumnLabel(j + 1)) ? metaData.getColumnLabel(j + 1) : f;
|
||||||
String t = metaData.getColumnTypeName(j + 1);
|
String t = metaData.getColumnTypeName(j + 1);
|
||||||
if (datasourceRequest.getDatasource().getType().equalsIgnoreCase(DatasourceTypes.hive.name())) {
|
if (datasourceRequest.getDatasource().getType().equalsIgnoreCase(DatasourceTypes.hive.name()) && l.contains("\\.")) {
|
||||||
l = l.split("\\.")[1];
|
l = l.split("\\.")[1];
|
||||||
}
|
}
|
||||||
TableFiled field = new TableFiled();
|
TableFiled field = new TableFiled();
|
||||||
|
@ -1697,6 +1697,8 @@ public class DataSetTableService {
|
|||||||
if (datasetTableIncrementalConfig == null || StringUtils.isEmpty(datasetTableIncrementalConfig.getTableId())) {
|
if (datasetTableIncrementalConfig == null || StringUtils.isEmpty(datasetTableIncrementalConfig.getTableId())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
datasetTableIncrementalConfig.setIncrementalAdd(datasetTableIncrementalConfig.getIncrementalAdd().trim());
|
||||||
|
datasetTableIncrementalConfig.setIncrementalDelete(datasetTableIncrementalConfig.getIncrementalDelete().trim());
|
||||||
if (StringUtils.isEmpty(datasetTableIncrementalConfig.getId())) {
|
if (StringUtils.isEmpty(datasetTableIncrementalConfig.getId())) {
|
||||||
datasetTableIncrementalConfig.setId(UUID.randomUUID().toString());
|
datasetTableIncrementalConfig.setId(UUID.randomUUID().toString());
|
||||||
datasetTableIncrementalConfigMapper.insertSelective(datasetTableIncrementalConfig);
|
datasetTableIncrementalConfigMapper.insertSelective(datasetTableIncrementalConfig);
|
||||||
|
Loading…
Reference in New Issue
Block a user