mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
be2cf70da8
Use writeBinary/readBinary to serialize/deserialize the denominator of Average functions. Previously it would be transmitted as an unsigned int, which means its value would get corrupted when doing an avgWeighted over a floating point number. Note: this commit is not backwards compatible! Signed-off-by: Baudouin Giard <bgiard@bloomberg.net>
7 lines
21 B
Plaintext
7 lines
21 B
Plaintext
100
|
|
10
|
|
0
|
|
nan
|
|
nan
|
|
100
|