aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/histogram/test/cases/Linear.sql
blob: 08af7fc3019ec1d558746ca10f329052ff611508 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* syntax version 1 */
SELECT
    LinearHistogram(value) AS default,
    LinearHistogram(value, 33) AS linear_size,
    LinearHistogram(value, 100, 100, 1000) AS linear_min_max
FROM (
    SELECT
        CAST(value AS Double) AS value
    FROM Input
);