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
--Syntax (ApproxPercentileMap version 1.1; | |
--ApproxPercentileReduce version 1.0) | |
--The synopsis below shows the syntax for invoking the approximate percentile function for | |
--a column of data, grouping the data by a different set of columns: | |
SELECT * FROM ApproxPercentileReduce( | |
ON( | |
SELECT * FROM ApproxPercentileMap( | |
ON {table_name | view_name | (query)} | |
TARGET_COLUMN('column_name') | |
ERROR(tolerance_value) | |
[GROUP_COLUMNS('column_name' [, ...])] | |
) | |
) | |
PARTITION BY expression [, ...] | |
PERCENTILE(percentile [, ...]) | |
[GROUP_COLUMNS('column_name' [, ...])] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment