-
-
Save mioalter/b239472086b63d389d5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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