diff --git a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml index c0b2909cd53..f2ce040188e 100644 --- a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml +++ b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml @@ -189,7 +189,7 @@ value AS treatment, argMin(start_date, start_date) AS treatment_time_taken FROM clinical_event_derived - WHERE event_type = 'Treatment' + WHERE lower(event_type) = 'treatment' AND key = 'AGENT' GROUP BY patient_unique_id, value ) ced_inner ON ced_inner.patient_unique_id = ced.patient_unique_id @@ -231,7 +231,7 @@ - event_type = 'Treatment' + lower(event_type) = 'treatment' AND key = 'AGENT' AND value = '${patientTreatmentFilter.treatment}' diff --git a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewMapper.xml b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewMapper.xml index e94d466f6f0..5af781dfeb0 100644 --- a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewMapper.xml +++ b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewMapper.xml @@ -442,7 +442,7 @@ patient_unique_id FROM clinical_event_derived - event_type = 'Treatment' + lower(event_type) = 'treatment' AND key = 'AGENT' AND @@ -465,7 +465,7 @@ count(DISTINCT patient_unique_id) AS count FROM clinical_event_derived - event_type = 'Treatment' + lower(event_type) = 'treatment' AND key = 'AGENT' AND @@ -493,7 +493,7 @@ patient_unique_id FROM clinical_event_derived - event_type = 'Treatment' + lower(event_type) = 'treatment' AND key = 'AGENT' AND @@ -537,7 +537,7 @@ argMin(start_date, start_date) AS treatment_time_taken FROM clinical_event_derived - event_type = 'Treatment' + lower(event_type) = 'treatment' AND key = 'AGENT' GROUP BY patient_unique_id, value