hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shelukhin (JIRA)" <>
Subject [jira] [Updated] (HIVE-8225) CBO trunk merge: union11 test fails due to incorrect plan
Date Mon, 13 Oct 2014 22:14:34 GMT


Sergey Shelukhin updated HIVE-8225:
       Resolution: Fixed
    Fix Version/s:     (was: 0.14.0)
           Status: Resolved  (was: Patch Available)

committed to trunk. [~vikram.dixit] ok for 14?

> CBO trunk merge: union11 test fails due to incorrect plan
> ---------------------------------------------------------
>                 Key: HIVE-8225
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Pengcheng Xiong
>            Priority: Critical
>             Fix For: 0.15.0
>         Attachments: HIVE-8225.1.patch, HIVE-8225.2.patch, HIVE-8225.3.patch, HIVE-8225.4.patch,
HIVE-8225.5.patch, HIVE-8225.6.patch, HIVE-8225.7.patch, HIVE-8225.8.patch, HIVE-8225.inprogress.patch,
HIVE-8225.inprogress.patch, HIVE-8225.patch
> The result changes to as if the union didn't have count() inside. The issue can be fixed
by using srcunion.value outside the subquery in count (replace count(1) with count(srcunion.value)).
Otherwise, it looks like count(1) node from union-ed queries is not present in AST at all,
which might cause this result.
> -Interestingly, adding group by to each query in a union produces completely weird result
(count(1) is 309 for each key, whereas it should be 1 and the "logical" incorrect value if
internal count is lost is 500)- Nm, that groups by table column called key, which is weird
but is what Hive does

This message was sent by Atlassian JIRA

View raw message