diff --git a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml index f7b4dd70592..ca63efa765b 100644 --- a/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml +++ b/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewFilterMapper.xml @@ -136,8 +136,7 @@ SELECT ${unique_id} FROM ${table_name} WHERE attribute_name = '${clinicalDataFilter.attributeId}' AND - type='${type}' AND - (attribute_value = '' OR match(attribute_value, '^[\d\.]+$')) + type='${type}' @@ -146,19 +145,22 @@ - - - AND abs(minus(cast(attribute_value as float), ${dataFilterValue.start})) < exp(-11) - - - - AND cast(attribute_value as float) > ${dataFilterValue.start} - - - AND cast(attribute_value as float) <= ${dataFilterValue.end} - - - + + AND match(attribute_value, '^[\d\.]+$') + + + AND abs(minus(cast(attribute_value as float), ${dataFilterValue.start})) < exp(-11) + + + + AND cast(attribute_value as float) > ${dataFilterValue.start} + + + AND cast(attribute_value as float) <= ${dataFilterValue.end} + + + +