From d46400fefc4da257c4f75cb9db2c505c01e5fc66 Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Tue, 6 Aug 2024 18:09:45 -0400 Subject: [PATCH] add comments to filter sql --- .../StudyViewFilterMapper.xml | 61 +++++++++---------- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml index b98b4a5690e..1a3897d98e7 100644 --- a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml +++ b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml @@ -66,49 +66,44 @@ '${sampleIdentifier.studyId}_${sampleIdentifier.sampleId}' - INTERSECT SELECT sample_unique_id FROM sample_derived - - - - - WHERE - - - AND - ( - sample_unique_id IN ( - '', + WHERE + + + + AND + ( + + + + sample_unique_id IN ( + '', + + + '${sampleIdentifier.studyId}_${sampleIdentifier.sampleId}' + + + ) + + + + + OR + sample_unique_id NOT IN ( - + '${sampleIdentifier.studyId}_${sampleIdentifier.sampleId}' ) - - - OR - sample_unique_id NOT IN ( - '', - - - '${sampleIdentifier.studyId}_${sampleIdentifier.sampleId}' - - - ) - - - ) + - - - - '' - - + ) + +