ClickHouse/tests/queries/0_stateless/00700_decimal_defaults.reference

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

15 lines
343 B
Plaintext
Raw Normal View History

a Decimal(9, 4) DEFAULT 0
b Decimal(18, 4) DEFAULT a / 2
c Decimal(38, 4) DEFAULT b / 3
d Decimal(9, 4) MATERIALIZED a + toDecimal32(\'0.2\', 1)
e Decimal(18, 4) ALIAS b * 2
f Decimal(38, 4) ALIAS c * 6
2021-08-15 07:53:46 +00:00
0 0 0
1 0.5 0.1666
2 1 0.3333
3 1.5 0.5
0 0 0 0.2 0 0
1 0.5 0.1666 1.2 1 0.9996
2 1 0.3333 2.2 2 1.9998
3 1.5 0.5 3.2 3 3