Skip to content
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
10 changes: 5 additions & 5 deletions api/src/main/java/marquez/db/ColumnLineageDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,22 +187,22 @@ SELECT DISTINCT ON (cl.output_dataset_field_uuid, cl.input_dataset_field_uuid) c
dataset_fields_view AS (
SELECT
d.namespace_name AS namespace_name,
d.name AS dataset_name,
d.dataset_name AS dataset_name,
df.name AS field_name,
df.type,
df.uuid
FROM dataset_fields df
INNER JOIN (
SELECT uuid, namespace_name, name
FROM datasets_view
WHERE current_version_uuid IN (
SELECT DISTINCT dataset_uuid, namespace_name, dataset_name
FROM dataset_versions
WHERE uuid IN (
SELECT DISTINCT output_dataset_version_uuid
FROM selected_column_lineage
UNION
SELECT DISTINCT input_dataset_version_uuid
FROM selected_column_lineage
)
) d ON d.uuid = df.dataset_uuid
) d ON d.dataset_uuid = df.dataset_uuid
)
SELECT
output_fields.namespace_name,
Expand Down