cartodb-postgresql/test/CDB_DistTypeTest.sql
Andy Eschbacher 9cb1fe30d8 adding tests
2015-06-08 15:01:50 -04:00

5 lines
130 B
SQL

WITH data AS (
SELECT pow(x,3)::numeric x FROM generate_series(-100,100) x
)
SELECT CDB_DistType(array_agg(x)) FROM data