some tests [CLICKHOUSE-3905]

This commit is contained in:
chertus 2018-08-31 14:19:19 +03:00
parent d0f452f6d9
commit 4cf8f174da
2 changed files with 8 additions and 0 deletions

View File

@ -127,3 +127,5 @@
42.42 42.4200000 42.4200000000000000 42.420000000000000000000000000000000000
123456789 123456789123456789
12345678901234567890123456789012345678
0.123456789 0.123456789123456789
0.12345678901234567890123456789012345678

View File

@ -92,4 +92,10 @@ SELECT CAST('123456789', 'Decimal(9,1)'); -- { serverError 69 }
SELECT CAST('123456789123456789', 'Decimal(18,1)'); -- { serverError 69 }
SELECT CAST('12345678901234567890123456789012345678', 'Decimal(38,1)'); -- { serverError 69 }
SELECT CAST('0.123456789', 'Decimal(9,9)'), CAST('0.123456789123456789', 'Decimal(18,18)');
SELECT CAST('0.12345678901234567890123456789012345678', 'Decimal(38,38)');
SELECT CAST('0.123456789', 'Decimal(9,8)'); -- { serverError 69 }
SELECT CAST('0.123456789123456789', 'Decimal(18,17)'); -- { serverError 69 }
SELECT CAST('0.12345678901234567890123456789012345678', 'Decimal(38,37)'); -- { serverError 69 }
DROP TABLE IF EXISTS test.decimal;