mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
17 lines
553 B
SQL
17 lines
553 B
SQL
drop table if exists test_index;
|
|
|
|
create table test_index(date Date) engine MergeTree partition by toYYYYMM(date) order by date;
|
|
|
|
insert into test_index values('2020-10-30');
|
|
|
|
select 1 from test_index where date < toDateTime('2020-10-30 06:00:00');
|
|
|
|
drop table if exists test_index;
|
|
|
|
select toTypeName([-1, toUInt32(1)]);
|
|
-- We don't promote to wide integers
|
|
select toTypeName([-1, toUInt64(1)]); -- { serverError 386 }
|
|
select toTypeName([-1, toInt128(1)]);
|
|
select toTypeName([toInt64(-1), toInt128(1)]);
|
|
select toTypeName([toUInt64(1), toUInt256(1)]);
|