Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0, 1.3.0
-
None
-
None
Description
In Hive for union right most type wins out for most primitive types during plan gen. However when union op gets initialized the type gets switched.
This could result in bad data & type exceptions.
This happens only in non cbo mode.
In CBO mode, Hive would add explicit type casts that would prevent such type issues.
Sample Query:
select cd/sum(cd) over() from(select cd from u1 union all select cd from u2 union all select cd from u3)u4;
Attachments
Attachments
Issue Links
- relates to
-
HIVE-11880 filter bug of UNION ALL when hive.ppd.remove.duplicatefilters=true and filter condition is type incompatible column
- Resolved
- links to