Merge pull request #7019 from dataease/pr@dev@fixSql

fix: ES数据源创建数据集后报错,剔除sql不支持的数据类型 #6293
This commit is contained in:
taojinlong 2023-12-05 04:07:23 -06:00 committed by GitHub
commit 39e21130a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ public class EsProvider extends Provider {
}
for (String[] row : esResponse.getRows()) {
if(!row[1].equalsIgnoreCase("STRUCT")){
if(!row[1].equalsIgnoreCase("STRUCT") && !row[2].equalsIgnoreCase("unsupported")){
TableField field = new TableField();
field.setFieldName(row[0]);
field.setRemarks(row[0]);