Create a gist now

Instantly share code, notes, and snippets.

@mioalter /distFunctor.sql Secret
Last active Dec 22, 2015

What would you like to do?
SELECT f(a) AS b, SUM(prob) AS prob
FROM distA
GROUP BY f(a);
-- distA is our type Dist[A] reimagined as a table of values with columns a : A, prob : Double.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment