Fix #9042: query is being indexed causing huge payload returned (#9043)

* Fix #9042: query is being indexed causing huge payload returned

* Fix #9042: query is being indexed causing huge payload returned
This commit is contained in:
Sriharsha Chintalapani 2022-11-28 23:24:07 -08:00 committed by GitHub
parent eb9c18f7f6
commit ce3ab68932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,14 @@ import org.openmetadata.service.util.FullyQualifiedName;
import org.openmetadata.service.util.JsonUtils; import org.openmetadata.service.util.JsonUtils;
public class TableIndex implements ElasticSearchIndex { public class TableIndex implements ElasticSearchIndex {
final List<String> excludeFields = List.of("sampleData", "tableProfile", "joins", "changeDescription"); private static final List<String> excludeFields =
List.of(
"sampleData",
"tableProfile",
"joins",
"changeDescription",
"tableQueries, viewDefinition, tableProfilerConfig, profile, location, tableQueries, " + "tests, dataModel");
final Table table; final Table table;
public TableIndex(Table table) { public TableIndex(Table table) {