You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@bigtop.apache.org by nabhajit ray <na...@linux.vnet.ibm.com> on 2013/06/19 10:20:55 UTC

TestJDBC Driver failing in Hive 0.11.0

I was trying to run TestJDBCDriver testcase from Bigtop-0.6-snapshot for
Hive-0.11.0

The test case is getting assertion failure due to the wrong rendering of
a query result.

When I do "Describe table" in Hive-0.11.0 I am getting the following
result:

hive> describe hive_jdbc_driver_test;
    
OK
key                     int                     None                
value                   string                  None


Previously, with hive-0.10.0 the query result was:

hive> describe hive_jdbc_driver_test;
OK
key     int
value   string

As there are extra  whitespaces in the result for  Hive-0.11.0 the
assertion in TestJdbcDriver.java file :

    assertEquals("key", colNames.get(0));
    assertEquals("value", colNames.get(1));

is failing  with the following messages:

Results :

Failed tests:
testCreate(org.apache.bigtop.itest.hivesmoke.TestJdbcDriver):
expected:<key[]> but was:<key[                 ]>

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0


I guess,  some trimming need to be done for the query result to remove
the extra white spaces.

Thanks,




Re: TestJDBC Driver failing in Hive 0.11.0

Posted by nabhajit ray <na...@linux.vnet.ibm.com>.
Hi Mark,

Thanks for your suggestion . Have opened the JIRA :

https://issues.apache.org/jira/browse/BIGTOP-1015


Thanks,
Nabhajit Ray
On Wed, 2013-06-19 at 08:38 -0700, Mark Grover wrote:
> Hi Nabhajit,
> Thanks for your email. This does seem like a problem. Would you mind
> creating a JIRA for this please?
> 
> Mark
> 
> On Wed, Jun 19, 2013 at 1:20 AM, nabhajit ray
> <na...@linux.vnet.ibm.com> wrote:
> > I was trying to run TestJDBCDriver testcase from Bigtop-0.6-snapshot for
> > Hive-0.11.0
> >
> > The test case is getting assertion failure due to the wrong rendering of
> > a query result.
> >
> > When I do "Describe table" in Hive-0.11.0 I am getting the following
> > result:
> >
> > hive> describe hive_jdbc_driver_test;
> >
> > OK
> > key                     int                     None
> > value                   string                  None
> >
> >
> > Previously, with hive-0.10.0 the query result was:
> >
> > hive> describe hive_jdbc_driver_test;
> > OK
> > key     int
> > value   string
> >
> > As there are extra  whitespaces in the result for  Hive-0.11.0 the
> > assertion in TestJdbcDriver.java file :
> >
> >     assertEquals("key", colNames.get(0));
> >     assertEquals("value", colNames.get(1));
> >
> > is failing  with the following messages:
> >
> > Results :
> >
> > Failed tests:
> > testCreate(org.apache.bigtop.itest.hivesmoke.TestJdbcDriver):
> > expected:<key[]> but was:<key[                 ]>
> >
> > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> >
> >
> > I guess,  some trimming need to be done for the query result to remove
> > the extra white spaces.
> >
> > Thanks,
> >
> >
> >
> 



Re: TestJDBC Driver failing in Hive 0.11.0

Posted by Mark Grover <gr...@gmail.com>.
Hi Nabhajit,
Thanks for your email. This does seem like a problem. Would you mind
creating a JIRA for this please?

Mark

On Wed, Jun 19, 2013 at 1:20 AM, nabhajit ray
<na...@linux.vnet.ibm.com> wrote:
> I was trying to run TestJDBCDriver testcase from Bigtop-0.6-snapshot for
> Hive-0.11.0
>
> The test case is getting assertion failure due to the wrong rendering of
> a query result.
>
> When I do "Describe table" in Hive-0.11.0 I am getting the following
> result:
>
> hive> describe hive_jdbc_driver_test;
>
> OK
> key                     int                     None
> value                   string                  None
>
>
> Previously, with hive-0.10.0 the query result was:
>
> hive> describe hive_jdbc_driver_test;
> OK
> key     int
> value   string
>
> As there are extra  whitespaces in the result for  Hive-0.11.0 the
> assertion in TestJdbcDriver.java file :
>
>     assertEquals("key", colNames.get(0));
>     assertEquals("value", colNames.get(1));
>
> is failing  with the following messages:
>
> Results :
>
> Failed tests:
> testCreate(org.apache.bigtop.itest.hivesmoke.TestJdbcDriver):
> expected:<key[]> but was:<key[                 ]>
>
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
>
>
> I guess,  some trimming need to be done for the query result to remove
> the extra white spaces.
>
> Thanks,
>
>
>