Skip to content

Commit

Permalink
Gotcha!
Browse files Browse the repository at this point in the history
  • Loading branch information
illusional committed Jun 13, 2024
1 parent c906797 commit 550110e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/python/tables/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ def construct_query(
]

if needs_eid:
# 2024-06-15 mfranklin: left join, inner join, doesn't matter as there
# should always be an external_id
query_lines.append(
'INNER JOIN sample_external_id seid ON seid.sample_id = ss.id'
'LEFT JOIN sample_external_id seid ON seid.sample_id = ss.id'
)
if needs_sequencing_group:
query_lines.append('INNER JOIN sequencing_group sg ON sg.sample_id = ss.id')
Expand Down Expand Up @@ -124,6 +126,7 @@ def construct_query(
INNER JOIN (
{query}
) as inner_query ON inner_query.id = s.id
GROUP BY s.id
"""

return outer_query, values
Expand Down

0 comments on commit 550110e

Please sign in to comment.