-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when genomic data filter is set #11263
Comments
Not sure what's exactly going on but the SQL below fails on SELECT
'TEST' AS value,
(
SELECT
count(distinct sample_unique_id) as count
FROM
sample_derived
WHERE
sample_unique_id IN (
SELECT
sample_unique_id
FROM
sample_derived
WHERE
cancer_study_identifier IN ('genie_public')
INTERSECT
(
WITH cna_query AS (
SELECT
sample_unique_id, alteration_value
FROM
genetic_alteration_derived
WHERE
profile_type = 'cna'
AND
hugo_gene_symbol = 'EGFR'
AND
cancer_study_identifier IN ('genie_public')
)
SELECT
DISTINCT sd.sample_unique_id
FROM
sample_derived sd
LEFT JOIN cna_query ON sd.sample_unique_id = cna_query.sample_unique_id
WHERE
cancer_study_identifier IN ('genie_public')
AND
(alteration_value IS null)
)
)
) AS count This is the error message we are getting:
|
Here is the corresponding mybatis code for reference cbioportal/src/main/resources/org/cbioportal/persistence/mybatisclickhouse/StudyViewMapper.xml Lines 226 to 238 in b31fe9e
And we are getting the same error for other endpoints wherever we basically do (<include refid="getTotalSampleCount"/> - non_na_count) AS count |
@onursumer for some reason this works. if these results are correct, it seems like just another Clickhouse rough edge ; ) |
Thanks @alisman 🙏 |
PR #11265 partially fixes this but after adding more charts and filters I got a different SQL error. Here is the corresponding curl:
This is the error message:
|
The text was updated successfully, but these errors were encountered: