Details
Description
Related to HIVE-12462
select count(1) from accounts a, transactions t where year(a.dt) = year(t.dt) and account_id = 22; $hdt$_0:$hdt$_1:a TableScan (TS_2) alias: a filterExpr: (((account_id = 22) and year(dt) is not null) and (year(dt)) IN (RS[6])) (type: boolean)
Ends up being evaluated as year(cast(dt as int)) because the pruner only checks for final type, not the column type.
ObjectInspector oi = PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(TypeInfoFactory .getPrimitiveTypeInfo(si.fieldInspector.getTypeName())); Converter converter = ObjectInspectorConverters.getConverter( PrimitiveObjectInspectorFactory.javaStringObjectInspector, oi);
Attachments
Attachments
Issue Links
- is related to
-
HIVE-12667 Proper fix for HIVE-12473
- Closed