Details
Description
ORC vs text schema evolution from float to double changes precision
Text Schema Evolution
hive> create table float_text(f float); hive> insert into float_text values(74.72); hive> select f from float_text; OK 74.72 hive> alter table float_text change column f f double; hive> select f from float_text; OK 74.72
Orc Schema Evolution
hive> create table float_orc(f float) stored as orc; hive> insert into float_orc values(74.72); hive> select f from float_orc; OK 74.72 hive> alter table float_orc change column f f double; hive> select f from float_orc; OK 74.72000122070312
This will break all filters on the evolved column "f"
Filter returning no results
hive> set hive.optimize.index.filter=false;
hive> select f from float_orc where f=74.72;
OK
Attachments
Attachments
Issue Links
- blocks
-
HIVE-14310 ORC schema evolution should not completely disable PPD
- Closed
- relates to
-
HIVE-14214 ORC Schema Evolution and Predicate Push Down do not work together (no rows returned)
- Closed
- links to