hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sonia gehlot <sonia.geh...@gmail.com>
Subject Re: Join with OR condition in hive
Date Wed, 29 Aug 2012 22:03:03 GMT
ah, thanks Erek.

I can easily handle this in where clause.

Thanks much.
Sonia

On Wed, Aug 29, 2012 at 2:52 PM, Erek Dyskant <erek@dyskant.net> wrote:

> select blah
> from table a
> Left Join table b *on (a.col1 = b.col2)*
> *where b.col2 is not null or a.col1 = 0*
>
>
> On Wed, Aug 29, 2012 at 5:44 PM, sonia gehlot <sonia.gehlot@gmail.com>wrote:
>
>> Hi All,
>>
>> I am joining 2 tables in hive, with or condition. for example:
>>
>> select blah
>> from table a
>> Join table b
>> *on (a.col1 = b.col2 or a.col2 = 0)*
>> *
>> *
>> but this is giving me error that OR not supported in hive currently.
>>
>> Any suggestion how I can handle this in hive query.
>>
>> Thanks,
>> Sonia
>>
>
>

Mime
View raw message