mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-06 16:18:05 +00:00
* Fix #1824: ES index live check if tableType is set
This commit is contained in:
parent
c3113ffcba
commit
5a2c97724f
1
.gitignore
vendored
1
.gitignore
vendored
@ -46,6 +46,7 @@ logs
|
|||||||
.idea/libraries/
|
.idea/libraries/
|
||||||
.idea/modules.xml
|
.idea/modules.xml
|
||||||
.idea/dataSources.xml
|
.idea/dataSources.xml
|
||||||
|
.idea/encodings.xml
|
||||||
|
|
||||||
# Package Files
|
# Package Files
|
||||||
*.jar
|
*.jar
|
||||||
|
1
.idea/encodings.xml
generated
1
.idea/encodings.xml
generated
@ -5,6 +5,5 @@
|
|||||||
<file url="file://$PROJECT_DIR$/catalog-rest-service/src/main/resources" charset="UTF-8" />
|
<file url="file://$PROJECT_DIR$/catalog-rest-service/src/main/resources" charset="UTF-8" />
|
||||||
<file url="file://$PROJECT_DIR$/catalog-rest-service/src/main/resources/json/data" charset="UTF-8" />
|
<file url="file://$PROJECT_DIR$/catalog-rest-service/src/main/resources/json/data" charset="UTF-8" />
|
||||||
<file url="file://$PROJECT_DIR$/common/src/main/java" charset="UTF-8" />
|
<file url="file://$PROJECT_DIR$/common/src/main/java" charset="UTF-8" />
|
||||||
<file url="file://$PROJECT_DIR$/openmetadata-ui/src/main/resources/ui/dist" charset="UTF-8" />
|
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -287,6 +287,7 @@ class ParseTags {
|
|||||||
@Value
|
@Value
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
class TableESIndex extends ElasticSearchIndex {
|
class TableESIndex extends ElasticSearchIndex {
|
||||||
|
|
||||||
@JsonProperty("table_id")
|
@JsonProperty("table_id")
|
||||||
String tableId;
|
String tableId;
|
||||||
|
|
||||||
@ -323,6 +324,7 @@ class TableESIndex extends ElasticSearchIndex {
|
|||||||
String tableId = table.getId().toString();
|
String tableId = table.getId().toString();
|
||||||
String tableName = table.getName();
|
String tableName = table.getName();
|
||||||
String description = table.getDescription() != null ? table.getDescription() : "";
|
String description = table.getDescription() != null ? table.getDescription() : "";
|
||||||
|
String tableType = table.getTableType() != null ? table.getTableType().toString(): "Regular";
|
||||||
List<String> tags = new ArrayList<>();
|
List<String> tags = new ArrayList<>();
|
||||||
List<String> columnNames = new ArrayList<>();
|
List<String> columnNames = new ArrayList<>();
|
||||||
List<String> columnDescriptions = new ArrayList<>();
|
List<String> columnDescriptions = new ArrayList<>();
|
||||||
@ -361,7 +363,7 @@ class TableESIndex extends ElasticSearchIndex {
|
|||||||
.serviceCategory("databaseService")
|
.serviceCategory("databaseService")
|
||||||
.columnNames(columnNames)
|
.columnNames(columnNames)
|
||||||
.columnDescriptions(columnDescriptions)
|
.columnDescriptions(columnDescriptions)
|
||||||
.tableType(table.getTableType().toString())
|
.tableType(tableType)
|
||||||
.tags(parseTags.tags)
|
.tags(parseTags.tags)
|
||||||
.tier(parseTags.tierTag);
|
.tier(parseTags.tierTag);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user