Closed rod-glover closed 8 months ago
The test (roughly rendered) cell_methods ~ '(within|over)' no longer gives correct results. Instead we must use (rendered as SQL)
cell_methods ~ '(within|over)'
ARRAY['climatology'::text] <@ variable_tags(meta_vars.*)
or its complement
ARRAY['observation'::text] <@ variable_tags(meta_vars.*)
Problematic queries:
https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/pdp_util/agg.py#L122 https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/pdp_util/filters.py#L176 https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/pdp_util/pcds_index.py#L189 https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/tests/test_filters.py#L66
The test (roughly rendered)
cell_methods ~ '(within|over)'
no longer gives correct results. Instead we must use (rendered as SQL)or its complement
Problematic queries:
https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/pdp_util/agg.py#L122 https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/pdp_util/filters.py#L176 https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/pdp_util/pcds_index.py#L189 https://github.com/pacificclimate/pdp_util/blob/916761ff920b9071801156a806cf1ebc4b4e67e4/tests/test_filters.py#L66