Hi,
Thanks for the replies.
I already knew that the optimizer already does that.
My usecase is a bit different though.
I want to display the flattened query back to the user.
So I was hoping of using internal Hive CBO to somehow change the AST
generated for the query somehow.

Thanks,
Aviral

On Tue, Jun 14, 2016 at 12:42 PM, Gopal Vijayaraghavan <gop...@apache.org>
wrote:

>
> > You can see that you get identical execution plans for the nested query
> >and the flatten one.
>
> Wasn't that always though. Back when I started with Hive, before Stinger,
> it didn't have the identity project remover.
>
> To know if your version has this fix, try looking at
>
> hive> set hive.optimize.remove.identity.project;
>
>
> Cheers,
> Gopal
>
>
>
>
>

Reply via email to