Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,18 @@ public SearchLineageResult searchLineage(
@Parameter(description = "Size field to limit the no.of results returned, defaults to 10")
@DefaultValue("1000")
@QueryParam("size")
int size)
int size,
@Parameter(
description =
"Column-level lineage filter. Supports filtering by column names, tags, or glossary terms (e.g., 'columnName:customer_id', 'tag:PII', 'glossary:BusinessTerm')")
@QueryParam("columnFilter")
String columnFilter,
@Parameter(
description =
"When true, preserves all nodes in the path to filtered results. When false, only returns nodes matching the filter. Default is true.")
@QueryParam("preservePaths")
@DefaultValue("true")
Boolean preservePaths)
throws IOException {
return Entity.getSearchRepository()
.searchLineage(
Expand All @@ -241,7 +252,9 @@ public SearchLineageResult searchLineage(
.withIsConnectedVia(isConnectedVia(entityType))
.withLayerFrom(from)
.withLayerSize(size)
.withIncludeSourceFields(getRequiredLineageFields(includeSourceFields)));
.withIncludeSourceFields(getRequiredLineageFields(includeSourceFields))
.withColumnFilter(columnFilter)
.withPreservePaths(preservePaths));
}

@GET
Expand Down Expand Up @@ -329,7 +342,18 @@ public SearchLineageResult searchLineageWithDirection(
@Parameter(description = "Size field to limit the no.of results returned, defaults to 10")
@DefaultValue("1000")
@QueryParam("size")
int size)
int size,
@Parameter(
description =
"Column-level lineage filter. Supports filtering by column names, tags, or glossary terms (e.g., 'columnName:customer_id', 'tag:PII', 'glossary:BusinessTerm')")
@QueryParam("columnFilter")
String columnFilter,
@Parameter(
description =
"When true, preserves all nodes in the path to filtered results. When false, only returns nodes matching the filter. Default is true.")
@QueryParam("preservePaths")
@DefaultValue("true")
Boolean preservePaths)
throws IOException {
return Entity.getSearchRepository()
.searchLineageWithDirection(
Expand All @@ -343,7 +367,9 @@ public SearchLineageResult searchLineageWithDirection(
.withDirection(direction)
.withLayerFrom(from)
.withLayerSize(size)
.withIncludeSourceFields(getRequiredLineageFields(includeSourceFields)));
.withIncludeSourceFields(getRequiredLineageFields(includeSourceFields))
.withColumnFilter(columnFilter)
.withPreservePaths(preservePaths));
}

@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,23 @@ private static void createDefaultConfiguration(OpenMetadataApplicationConfig app
new LineageSettings()
.withDownstreamDepth(2)
.withUpstreamDepth(2)
.withLineageLayer(LineageLayer.ENTITY_LINEAGE));
.withLineageLayer(LineageLayer.ENTITY_LINEAGE)
.withGraphPerformanceConfig(
new org.openmetadata.schema.api.lineage.GraphPerformanceConfig()
.withSmallGraphThreshold(5000)
.withMediumGraphThreshold(50000)
.withMaxInMemoryNodes(100000)
.withSmallGraphBatchSize(10000)
.withMediumGraphBatchSize(5000)
.withLargeGraphBatchSize(1000)
.withStreamingBatchSize(500)
.withEnableCaching(true)
.withCacheTTLSeconds(300)
.withMaxCachedGraphs(100)
.withEnableProgressTracking(false)
.withProgressReportInterval(1000)
.withUseScrollForLargeGraphs(true)
.withScrollTimeoutMinutes(5)));
Entity.getSystemRepository().createNewSetting(setting);
}

Expand Down
Loading