ClickHouse/tests/queries/0_stateless/02366_union_decimal_conversion.sql
2022-08-01 21:04:15 +08:00

2 lines
202 B
SQL

select sum(a), sum(b) from cluster(test_cluster_two_shards, view(select cast(number as Decimal(7, 2)) a, 0 as b from numbers(2) union all select 0, cast(number as Decimal(7, 2)) as b from numbers(2)));