handle blank aggregates

This commit is contained in:
John Krauss 2017-02-16 17:53:38 +00:00
parent 01b56fbfcc
commit 71d891c067

View File

@ -7,7 +7,7 @@ from util import query
USE_SCHEMA = True
MEASURE_COLUMNS = query('''
SELECT distinct numer_id, numer_aggregate NOT ILIKE 'sum' as point_only
SELECT distinct numer_id, Coalesce(numer_aggregate, '') NOT ILIKE 'sum' as point_only
FROM observatory.obs_meta
WHERE numer_type ILIKE 'numeric'
AND numer_weight > 0