aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/histogram/test/cases/Logarithmic.sql
blob: 216488e91ecf2041f1bc4bd6f20151358e373a1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* syntax version 1 */
SELECT
    LogarithmicHistogram(value) AS default,
    LogHistogram(value, 2) AS log_size,
    LogHistogram(value, 0.5, 10, 10000) AS log_min_max
FROM (
    SELECT
        CAST(value AS Double) AS value
    FROM Input
);