ClickHouse/tests/queries/0_stateless/01047_nullable_rand.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
525 B
MySQL
Raw Normal View History

select toTypeName(rand(cast(4 as Nullable(UInt8))));
2022-11-17 10:17:27 +00:00
select toTypeName(randCanonical(CAST(4 as Nullable(UInt8))));
select toTypeName(randConstant(CAST(4 as Nullable(UInt8))));
select toTypeName(rand(Null));
2022-11-17 10:17:27 +00:00
select toTypeName(randCanonical(Null));
select toTypeName(randConstant(Null));
select rand(cast(4 as Nullable(UInt8))) * 0;
2022-11-17 10:17:27 +00:00
select randCanonical(cast(4 as Nullable(UInt8))) * 0;
select randConstant(CAST(4 as Nullable(UInt8))) * 0;
select rand(Null) * 0;
2022-11-17 10:17:27 +00:00
select randCanonical(Null) * 0;
select randConstant(Null) * 0;