Re: Operators && and || do not work

2013-09-19 Thread amareshwari sriramdasu
Yes, should not be because of HIVE-2439. Even in hive-0.7, it is not
working, not sure if it worked at any version. Will create a jira to track.

Thanks
Amareshwari


On Fri, Sep 20, 2013 at 6:03 AM, Thiruvel Thirumoolan <
thiru...@yahoo-inc.com> wrote:

> Hi Amareshwari/Ashutosh,
>
> Ashutosh is probably right, I doubt if this ever worked. I couldn't find a
> clientpositive test case which uses && or ||.
>
> I also modified a unit test case in Hive9 to use "&&" instead of "AND" and
> that failed with the same error Amareshwari saw. Hive9 does not have
> HIVE-2439.
>
> -Thiruvel
>
> On 9/19/13 7:21 AM, "Ashutosh Chauhan"  wrote:
>
> >I have not tested it on historical versions, so don't know on which
> >versions it used to work (if ever), but possibly antlr upgrade [1] may
> >have
> >impacted this.
> >
> >[1] : https://issues.apache.org/jira/browse/HIVE-2439
> >
> >Ashutosh
> >
> >
> >On Thu, Sep 19, 2013 at 4:52 AM, amareshwari sriramdasu <
> >amareshw...@gmail.com> wrote:
> >
> >> Hello,
> >>
> >> Though the documentation
> >> https://cwiki.apache.org/Hive/languagemanual-udf.html says they are
> same
> >> as
> >> AND and OR, they do not even get parsed. User gets parsing when they are
> >> used. Was that intentional or is it a regression?
> >>
> >> hive> select key from src where key=a || key =b;
> >> FAILED: Parse Error: line 1:33 cannot recognize input near '|' 'key'
> >>'=' in
> >> expression specification
> >>
> >> hive> select key from src where key=a && key =b;
> >> FAILED: Parse Error: line 1:33 cannot recognize input near '&' 'key'
> >>'=' in
> >> expression specification
> >>
> >> Thanks
> >> Amareshwari
> >>
>
>


Operators && and || do not work

2013-09-19 Thread amareshwari sriramdasu
Hello,

Though the documentation
https://cwiki.apache.org/Hive/languagemanual-udf.html says they are same as
AND and OR, they do not even get parsed. User gets parsing when they are
used. Was that intentional or is it a regression?

hive> select key from src where key=a || key =b;
FAILED: Parse Error: line 1:33 cannot recognize input near '|' 'key' '=' in
expression specification

hive> select key from src where key=a && key =b;
FAILED: Parse Error: line 1:33 cannot recognize input near '&' 'key' '=' in
expression specification

Thanks
Amareshwari


Re: ant maven-build not working in trunk

2013-06-13 Thread amareshwari sriramdasu
Thanks Nitin, I will give a try with HIVE-4387.


On Thu, Jun 13, 2013 at 12:30 PM, Nitin Pawar wrote:

> I just tried a build with both jdk versions
>
> build = ant clean package
> jdk7 on branch-0.10 with patch from HIVE-3384 and it works
> jdk6 on trunk without any changes it works
>
> i created a new redhat vm and installed  sun jdk 6u43 and tried it. It
> works too.
>
> when i try ant maven-build -Dmvn.publish.repo=local it does fail with
> make-pom target not existing.
> Alan has a Jira on this: https://issues.apache.org/jira/browse/HIVE-4387
>
> There is a patch available there for branch-0.11. I will try to build with
> that.
>
>
>
> On Thu, Jun 13, 2013 at 10:14 AM, amareshwari sriramdasu <
> amareshw...@gmail.com> wrote:
>
>> Nitin,
>>
>> Hive does not compile with jdk7. You have to use jdk6 for compiling
>>
>>
>> On Wed, Jun 12, 2013 at 9:42 PM, Nitin Pawar > >wrote:
>>
>> > I tried the build on trunk
>> >
>> > i did not hit the issue of make-pom but i hit the issue of jdbc with
>> jdk7.
>> > I will apply the patch and try again
>> >
>> >
>> > On Wed, Jun 12, 2013 at 4:48 PM, amareshwari sriramdasu <
>> > amareshw...@gmail.com> wrote:
>> >
>> >> Hello,
>> >>
>> >> ant maven-build -Dmvn.publish.repo=local fails to build hcatalog with
>> >> following error :
>> >>
>> >>
>> >> /home/amareshwaris/hive/build.
>> >> xml:121: The following error occurred while executing this line:
>> >> /home/amareshwaris/hive/build.xml:123: The following error occurred
>> while
>> >> executing this line:
>> >> Target "make-pom" does not exist in the project "hcatalog".
>> >>
>> >> Was curious to know if I'm only one facing this or Is there anyother
>> way
>> >> to
>> >> publish maven artifacts locally?
>> >>
>> >> Thanks
>> >> Amareshwari
>> >>
>> >
>> >
>> >
>> > --
>> > Nitin Pawar
>> >
>>
>
>
>
> --
> Nitin Pawar
>


Re: ant maven-build not working in trunk

2013-06-12 Thread amareshwari sriramdasu
Nitin,

Hive does not compile with jdk7. You have to use jdk6 for compiling


On Wed, Jun 12, 2013 at 9:42 PM, Nitin Pawar wrote:

> I tried the build on trunk
>
> i did not hit the issue of make-pom but i hit the issue of jdbc with jdk7.
> I will apply the patch and try again
>
>
> On Wed, Jun 12, 2013 at 4:48 PM, amareshwari sriramdasu <
> amareshw...@gmail.com> wrote:
>
>> Hello,
>>
>> ant maven-build -Dmvn.publish.repo=local fails to build hcatalog with
>> following error :
>>
>>
>> /home/amareshwaris/hive/build.
>> xml:121: The following error occurred while executing this line:
>> /home/amareshwaris/hive/build.xml:123: The following error occurred while
>> executing this line:
>> Target "make-pom" does not exist in the project "hcatalog".
>>
>> Was curious to know if I'm only one facing this or Is there anyother way
>> to
>> publish maven artifacts locally?
>>
>> Thanks
>> Amareshwari
>>
>
>
>
> --
> Nitin Pawar
>


Re: ant maven-build not working in trunk

2013-06-12 Thread amareshwari sriramdasu
Adding hcatalog-dev for help on this.

Thanks
Amareshwari


On Wed, Jun 12, 2013 at 4:48 PM, amareshwari sriramdasu <
amareshw...@gmail.com> wrote:

> Hello,
>
> ant maven-build -Dmvn.publish.repo=local fails to build hcatalog with
> following error :
>
>
> /home/amareshwaris/hive/build.
> xml:121: The following error occurred while executing this line:
> /home/amareshwaris/hive/build.xml:123: The following error occurred while
> executing this line:
> Target "make-pom" does not exist in the project "hcatalog".
>
> Was curious to know if I'm only one facing this or Is there anyother way
> to publish maven artifacts locally?
>
> Thanks
> Amareshwari
>
>
>
>


ant maven-build not working in trunk

2013-06-12 Thread amareshwari sriramdasu
Hello,

ant maven-build -Dmvn.publish.repo=local fails to build hcatalog with
following error :


/home/amareshwaris/hive/build.
xml:121: The following error occurred while executing this line:
/home/amareshwaris/hive/build.xml:123: The following error occurred while
executing this line:
Target "make-pom" does not exist in the project "hcatalog".

Was curious to know if I'm only one facing this or Is there anyother way to
publish maven artifacts locally?

Thanks
Amareshwari


Re: [VOTE] Amend Hive Bylaws + Add HCatalog Submodule

2013-01-28 Thread amareshwari sriramdasu
Measure 1: +1
Measure 2: +1

Thanks
Amareshwari

On Tue, Jan 29, 2013 at 1:17 AM, Carl Steinbach  wrote:

> I am calling a vote on the following two measures.
>
> Measure 1: Amend Hive Bylaws to Define Submodules and Submodule Committers
>
> If this measure passes the Apache Hive Project Bylaws will be
> amended with the following changes:
>
>
> https://cwiki.apache.org/confluence/display/Hive/Proposed+Changes+to+Hive+Bylaws+for+Submodule+Committers
>
> The motivation for these changes is discussed in the following
> email thread which appeared on the hive-dev and hcatalog-dev
> mailing lists:
>
> http://markmail.org/thread/u5nap7ghvyo7euqa
>
>
> Measure 2: Create HCatalog Submodule and Adopt HCatalog Codebase
>
> This measure provides for 1) the establishment of an HCatalog
> submodule in the Apache Hive Project, 2) the adoption of the
> Apache HCatalog codebase into the Hive HCatalog submodule, and
> 3) adding all currently active HCatalog committers as submodule
> committers on the Hive HCatalog submodule.
>
> Passage of this measure depends on the passage of Measure 1.
>
>
> Voting:
>
> Both measures require +1 votes from 2/3 of active Hive PMC
> members in order to pass. All participants in the Hive project
> are encouraged to vote on these measures, but only votes from
> active Hive PMC members are binding. The voting period
> commences immediately and shall last a minimum of six days.
>
> Voting is carried out by replying to this email thread. You must
> indicate which measure you are voting on in order for your vote
> to be counted.
>
> More details about the voting process can be found in the Apache
> Hive Project Bylaws:
>
> https://cwiki.apache.org/confluence/display/Hive/Bylaws
>
>