blob: 3dd4a12621a5311d6e2d135db8866c0bf3232361 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* syntax version 1 */
SELECT
Histogram::Normalize(HISTOGRAM(key)) AS key_histogram,
Histogram::Normalize(HISTOGRAM(subkey), 1.0) AS subkey_histogram,
Histogram::Normalize(HISTOGRAM(value), -1.0) AS value_histogram
FROM (
SELECT
CAST(key AS Double) AS key,
CAST(subkey AS Double) AS subkey,
CAST(value AS Double) AS value
FROM Input
);
|