Add new test about mixing decimals and ints

This test is broken with the old code
This commit is contained in:
Salvatore Mesoraca 2023-04-18 11:08:24 +02:00
parent 0b52166deb
commit 284070d419
No known key found for this signature in database
GPG Key ID: 0567E50A25403074
2 changed files with 11 additions and 0 deletions

View File

@ -17,3 +17,9 @@ a
a
\N
c
sep1
80000
80000
sep2
80000
80000

View File

@ -18,3 +18,8 @@ select transform(1, [1,2], ['a','b'], null);
select transform(1, [1,2], ['a','b'], 'c');
select transform(5, [1,2], ['a','b'], null);
select transform(5, [1,2], ['a','b'], 'c');
select 'sep1';
SELECT transform(number, [2], [toDecimal32(1, 1)], materialize(80000)) as x FROM numbers(2);
select 'sep2';
SELECT transform(number, [2], [toDecimal32(1, 1)], 80000) as x FROM numbers(2);