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

H-3774: Fix including data type children will not emit anything if no children exist #5846

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 @@ -217,12 +217,14 @@ where

let query = if include_data_type_children {
"
SELECT DISTINCT ON (ontology_id) schema, closed_schema
FROM data_type_inherits_from
JOIN data_types
ON ontology_id = source_data_type_ontology_id
OR ontology_id = target_data_type_ontology_id
WHERE target_data_type_ontology_id = ANY($1);
SELECT schema, closed_schema
FROM data_types
WHERE ontology_id = ANY($1)
OR ontology_id IN (
SELECT source_data_type_ontology_id
FROM data_type_inherits_from
WHERE target_data_type_ontology_id = ANY($1)
);
"
} else {
"
Expand Down
Loading