Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Step to reproduce:
select count(distinct logItem.triggerId) from service_stat_log LATERAL VIEW explode(logItems) LogItemTable AS logItem where logItem.dsp in ('delivery', 'ocpa') and logItem.iswin = true and logItem.adid in ( select distinct adId from ad_info where subAccountId in (16010, 14863));
For predicates logItem.dsp in ('delivery', 'ocpa') and logItem.iswin = true are removed when doing ppd: JOIN -> RS -> LVJ. The JOIN has candicates: logitem -> [logItem.dsp in ('delivery', 'ocpa'), logItem.iswin = true],when pushing them to the RS followed by LVJ, none of them are pushed, the candicates of logitem are removed finally by default, which cause to the wrong result.
Attachments
Issue Links
- relates to
-
HIVE-15040 LATERAL VIEW + WHERE IN ...= WRONG RESULT
- Open
- links to