ClickHouse/tests/queries/0_stateless/01566_negate_formatting.reference

35 lines
773 B
Plaintext
Raw Normal View History

2021-03-25 15:38:02 +00:00
-- { echo }
explain syntax select negate(1), negate(-1), - -1, -(-1), (-1) in (-1);
SELECT
-(1),
-(-1),
-(-1),
-(-1),
2021-03-25 15:38:02 +00:00
-1 IN (-1)
explain syntax select negate(1.), negate(-1.), - -1., -(-1.), (-1.) in (-1.);
SELECT
-(1.),
-(-1.),
-(-1.),
-(-1.),
2021-03-25 15:38:02 +00:00
-1. IN (-1.)
2021-03-26 17:29:41 +00:00
explain syntax select negate(-9223372036854775808), -(-9223372036854775808), - -9223372036854775808;
SELECT
-(-9223372036854775808),
-(-9223372036854775808),
-(-9223372036854775808)
2021-04-16 16:28:07 +00:00
explain syntax select negate(0), negate(-0), - -0, -(-0), (-0) in (-0);
SELECT
-(0),
-(0),
-(0),
-(0),
2021-04-16 16:28:07 +00:00
0 IN (0)
explain syntax select negate(0.), negate(-0.), - -0., -(-0.), (-0.) in (-0.);
SELECT
-(0.),
-(-0.),
-(-0.),
-(-0.),
2021-04-16 16:28:07 +00:00
-0. IN (-0.)