mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Updated test #1665
This commit is contained in:
parent
ef8e1dc9f7
commit
d33ac0ea15
@ -374,8 +374,7 @@ void assertInfinity(ReadBuffer & buf);
|
|||||||
void assertNaN(ReadBuffer & buf);
|
void assertNaN(ReadBuffer & buf);
|
||||||
|
|
||||||
|
|
||||||
/// Rough: not exactly nearest machine representable number is returned.
|
/// Some garbage may be successfully parsed, examples: '--1' parsed as '1'.
|
||||||
/// Some garbage may be successfully parsed, examples: '.' parsed as 0; 123Inf parsed as inf.
|
|
||||||
template <typename T, typename ReturnType>
|
template <typename T, typename ReturnType>
|
||||||
ReturnType readFloatTextImpl(T & x, ReadBuffer & buf)
|
ReturnType readFloatTextImpl(T & x, ReadBuffer & buf)
|
||||||
{
|
{
|
||||||
|
@ -1 +1 @@
|
|||||||
inf -inf inf -inf inf -inf nan nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0 inf -inf inf -inf inf -inf nan nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0
|
inf -inf inf -inf inf -inf nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0 inf -inf inf -inf inf -inf nan nan nan nan nan nan 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||||
|
@ -11,7 +11,6 @@ toFloat64('NAN'),
|
|||||||
toFloat64('-NAN'),
|
toFloat64('-NAN'),
|
||||||
toFloat64('NaN'),
|
toFloat64('NaN'),
|
||||||
toFloat64('-NaN'),
|
toFloat64('-NaN'),
|
||||||
toFloat64('+NaN'),
|
|
||||||
|
|
||||||
toFloat64OrZero('in'),
|
toFloat64OrZero('in'),
|
||||||
toFloat64OrZero('-in'),
|
toFloat64OrZero('-in'),
|
||||||
@ -39,7 +38,6 @@ toFloat32('NAN'),
|
|||||||
toFloat32('-NAN'),
|
toFloat32('-NAN'),
|
||||||
toFloat32('NaN'),
|
toFloat32('NaN'),
|
||||||
toFloat32('-NaN'),
|
toFloat32('-NaN'),
|
||||||
toFloat32('+NaN'),
|
|
||||||
|
|
||||||
toFloat32OrZero('in'),
|
toFloat32OrZero('in'),
|
||||||
toFloat32OrZero('-in'),
|
toFloat32OrZero('-in'),
|
||||||
|
Loading…
Reference in New Issue
Block a user