fix orc date32 overflow

This commit is contained in:
taiyang-li 2024-11-06 16:38:09 +08:00
parent ef0be4a01c
commit 590029a33b

View File

@ -3,12 +3,12 @@
SET session_timezone = 'UTC';
SET engine_file_truncate_on_insert = 1;
insert into function file('03259.orc')
insert into function file('03259.orc', 'ORC')
select
number,
if (number % 2 = 0, null, toDate32(number)) as date_field
from numbers(10);
from numbers(10);
desc file('03259.orc');
desc file('03259.orc', 'ORC');
select date_field from file('03259.orc') order by number;
select date_field from file('03259.orc', 'ORC') order by number;