You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by rohan monga <mo...@gmail.com> on 2011/08/05 09:39:29 UTC
Comments in hive scripts
Hi,
I am using hive version 0.7 and I am having an odd issue with comments
The following works
<snip>
use default;
-- this is good
-- select blah from blahness
...
</snip>
However,
<snip>
use default;
-- this is good
-- select * from blahness;
...
</snip>
doesn't work, is this because hive is parsing ';' before removing
comments? or am I missing something?
Thanks,
--
Rohan Monga
Re: Comments in hive scripts
Posted by rohan monga <mo...@gmail.com>.
thanks, that worked.
--
Rohan Monga
On Sat, Aug 6, 2011 at 1:08 AM, Jakob Homan <jg...@gmail.com> wrote:
> Comments in scripts are a bit wonky. In 8, HIVE-2259
> (http://bit.ly/rg1WVk) has improved the handling of comments. That
> patch should fix the issue you're having.
>
> -Jakob
>
>
> On Fri, Aug 5, 2011 at 12:39 AM, rohan monga <mo...@gmail.com> wrote:
>> Hi,
>> I am using hive version 0.7 and I am having an odd issue with comments
>>
>> The following works
>> <snip>
>> use default;
>> -- this is good
>> -- select blah from blahness
>> ...
>> </snip>
>>
>> However,
>> <snip>
>> use default;
>> -- this is good
>> -- select * from blahness;
>> ...
>> </snip>
>> doesn't work, is this because hive is parsing ';' before removing
>> comments? or am I missing something?
>>
>> Thanks,
>> --
>> Rohan Monga
>>
>
Re: Comments in hive scripts
Posted by Jakob Homan <jg...@gmail.com>.
Comments in scripts are a bit wonky. In 8, HIVE-2259
(http://bit.ly/rg1WVk) has improved the handling of comments. That
patch should fix the issue you're having.
-Jakob
On Fri, Aug 5, 2011 at 12:39 AM, rohan monga <mo...@gmail.com> wrote:
> Hi,
> I am using hive version 0.7 and I am having an odd issue with comments
>
> The following works
> <snip>
> use default;
> -- this is good
> -- select blah from blahness
> ...
> </snip>
>
> However,
> <snip>
> use default;
> -- this is good
> -- select * from blahness;
> ...
> </snip>
> doesn't work, is this because hive is parsing ';' before removing
> comments? or am I missing something?
>
> Thanks,
> --
> Rohan Monga
>