From 47b22274536704753e50d609d82bde6e2be166fe Mon Sep 17 00:00:00 2001 From: John Krauss Date: Tue, 3 May 2016 14:27:36 -0400 Subject: [PATCH] fix obs_search signature & tests --- src/pg/sql/42_observatory_exploration.sql | 2 +- src/pg/test/expected/42_observatory_exploration_test.out | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pg/sql/42_observatory_exploration.sql b/src/pg/sql/42_observatory_exploration.sql index 4d6460d..3c2a8c8 100644 --- a/src/pg/sql/42_observatory_exploration.sql +++ b/src/pg/sql/42_observatory_exploration.sql @@ -66,7 +66,7 @@ BEGIN SELECT id, description, name, aggregate, - NULL source -- TODO use tags + NULL::TEXT source -- TODO use tags FROM observatory.OBS_column where name ilike '%%' || %L || '%%' or description ilike '%%' || %L || '%%' diff --git a/src/pg/test/expected/42_observatory_exploration_test.out b/src/pg/test/expected/42_observatory_exploration_test.out index 814ce65..e88689b 100644 --- a/src/pg/test/expected/42_observatory_exploration_test.out +++ b/src/pg/test/expected/42_observatory_exploration_test.out @@ -36,8 +36,8 @@ t (1 row) obs_search ("es.ine.total_pop","The total number of all people living in a geographic area.","Total Population",sum,es.ine) -("us.census.acs.B01001001","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Total Population",sum,us.census.acs) -("us.census.acs.B01001001_quantile","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Quantile:Total Population",quantile,us.census.acs) +("us.census.acs.B01001001","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Total Population",sum,) +("us.census.acs.B01001001_quantile","The total number of all people living in a given geographic area. This is a very useful catch-all denominator when calculating rates.","Quantile:Total Population",quantile,) (3 rows) boundary_id|description|time_span|tablename us.census.tiger.block_group|Block groups (BGs) are statistical divisions of census tracts, are generally defined to contain between 600 and 3,000 people, and are used to present data and control block numbering. A block group consists of clusters of blocks within the same census tract that have the same first digit of their four-digit census block number. For example, blocks 3001, 3002, 3003, ..., 3999 in census tract 1210.02 belong to BG 3 in that census tract. Most BGs were delineated by local participants in the Census Bureau\u2019s Participant Statistical Areas Program. The Census Bureau delineated BGs only where a local or tribal government declined to participate, and a regional organization or State Data Center was not available to participate.