Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep string FQN as a way to add lineage information #32585

Merged
merged 1 commit into from
Sep 30, 2024
Merged
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 @@ -112,7 +112,7 @@ public static String getFqName(String system, Iterable<String> segments) {
* Add a FQN (fully-qualified name) to Lineage. Segments will be processed via {@link #getFqName}.
*/
public void add(String system, @Nullable String subtype, Iterable<String> segments) {
metric.add(getFqName(system, subtype, segments));
add(getFqName(system, subtype, segments));
}

/**
Expand All @@ -122,6 +122,14 @@ public void add(String system, Iterable<String> segments) {
add(system, null, segments);
}

/**
* Adds the given details as Lineage. For asset level lineage the resource location should be
* specified as Dataplex FQN https://cloud.google.com/data-catalog/docs/fully-qualified-names
*/
public void add(String details) {
metric.add(details);
}

/** Query {@link StringSet} metrics from {@link MetricResults}. */
public static Set<String> query(MetricResults results, Type type) {
MetricsFilter filter =
Expand Down
Loading