Fixed categories

remotes/origin/536-Change_mc_schema
antoniocarlon 6 years ago
parent 3172a11d9d
commit 4e57558da6

@ -267,11 +267,11 @@ CREATE OR REPLACE FUNCTION cdb_observatory.OBS_DecodeCategory(category TEXT)
RETURNS TEXT
AS $$
categories = {
'NEP': 'non_eating_places',
'EP': 'eating_places',
'NEP': 'non eating places',
'EP': 'eating places',
'APP': 'apparel',
'SB': 'small_business',
'TR': 'total_retail',
'SB': 'small business',
'TR': 'total retail',
}
return categories.get(category)
$$ LANGUAGE plpythonu;

Loading…
Cancel
Save