-
-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Due to use of DECFLOAT(34) representation of numeric really big int128 values have same key in index. That is not dangerous when working with bitmaps on index (not more then small slowdown) but can be easily seen when index is used in ORDER BY:
create table biTest(dat int128);
insert into biTest values(12345678901234567890123456789012345678);
insert into biTest values(12345678901234567890123456789012345679);
insert into biTest values(12345678901234567890123456789012345677);
commit;
create index it on biTest(dat);
commit;
-- wrong order
select dat from biTest order by dat;
DAT
=============================================
12345678901234567890123456789012345678
12345678901234567890123456789012345679
12345678901234567890123456789012345677
alter index it inactive;
-- correct order
select dat from biTest order by dat;
DAT
=============================================
12345678901234567890123456789012345677
12345678901234567890123456789012345678
12345678901234567890123456789012345679