Skip to content
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

Export fails for some subsets of analysIds #43

Open
MaximMoinat opened this issue Feb 16, 2022 · 1 comment
Open

Export fails for some subsets of analysIds #43

MaximMoinat opened this issue Feb 16, 2022 · 1 comment
Labels
wontfix This will not be worked on

Comments

@MaximMoinat
Copy link

MaximMoinat commented Feb 16, 2022

This happens if only 'regular' or only 'dist' analysis types are executed.

For instance, if only analysis 406 is executed, then the catalogue_results table is not created. Then, the export function fails.

-- combine all results
SELECT analysis_id, stratum_1, stratum_2, stratum_3, stratum_4, stratum_5, count_value,
cast(null as float) min_value,
cast(null as float) max_value,
cast(null as float) avg_value,
cast(null as float) stdev_value,
cast(null as float) median_value,
cast(null as float) p10_value,
cast(null as float) p25_value,
cast(null as float) P75_value,
cast(null as float) p90_value
FROM @results_database_schema.catalogue_results
WHERE count_value > @min_cell_count
{@analysis_ids != ''} ? {AND analysis_id IN (@analysis_ids)}
UNION
select * from @results_database_schema.catalogue_results_dist
WHERE count_value > @min_cell_count
{@analysis_ids != ''} ? {AND analysis_id IN (@analysis_ids)}
ORDER BY analysis_id ASC
;

@MaximMoinat
Copy link
Author

Won't fix as this is an edge case.

@MaximMoinat MaximMoinat added the wontfix This will not be worked on label Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant