Skip to content

Commit

Permalink
Update clickhouse.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhaoyuan authored Oct 16, 2024
1 parent 80a8f13 commit b2dcd17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/db-scripts/clickhouse/clickhouse.sql
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ FROM
ge.stable_id as entity_stable_id,
gp.datatype as datatype,
gp.patient_level as patient_level,
arrayMap(x -> (x = '' ? NULL : x), splitByString(',', assumeNotNull(substring(ga.values, 1, -1)))) AS alteration_value,
arrayMap(x -> (x = '' ? NULL : x), splitByString(',', assumeNotNull(substring(ga.values, 1, -1)))) AS value,
arrayMap(x -> (x = '' ? NULL : toInt64(x)), splitByString(',', assumeNotNull(substring(gps.ordered_sample_list, 1, -1)))) AS sample_id
FROM genetic_profile gp
JOIN genetic_profile_samples gps ON gp.genetic_profile_id = gps.genetic_profile_id
Expand Down

0 comments on commit b2dcd17

Please sign in to comment.