ClickHouse/tests/queries/0_stateless/01702_system_numbers_scientific_notation.sql
Azat Khuzhin 5001b19613 Accept arbitrary numeric types for numbers() arguments (for scientific notation)
This is to make the syntax simpler, i.e. avoid explicit cast to UInt64
if you want to use scientific notation (i.e. 1e9 over 1 000 000 000).

v2: use plain evaluateConstantExpression() over
evaluateConstantExpressionOrIdentifierAsLiteral() since identifier will
not work anyway
2021-02-10 22:32:32 +03:00

6 lines
280 B
SQL

select * from numbers(1e2) format Null;
select * from numbers_mt(1e2) format Null;
select * from numbers_mt('100') format Null; -- { serverError 43 }
select * from numbers_mt(inf) format Null; -- { serverError 43 }
select * from numbers_mt(nan) format Null; -- { serverError 43 }