hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <>
Subject [jira] [Commented] (HIVE-8889) JDBC Driver ResultSet.getXXXXXX(String columnLabel) methods Broken
Date Fri, 28 Nov 2014 20:07:13 GMT


Hive QA commented on HIVE-8889:

{color:red}Overall{color}: -1 at least one tests failed

Here are the results of testing the latest attachment:

{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 6695 tests executed
*Failed tests:*

Test results:
Console output:
Test logs:

Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 2 tests failed

This message is automatically generated.

ATTACHMENT ID: 12684204 - PreCommit-HIVE-TRUNK-Build

> JDBC Driver ResultSet.getXXXXXX(String columnLabel) methods Broken
> ------------------------------------------------------------------
>                 Key: HIVE-8889
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.1
>            Reporter: G Lingle
>            Assignee: Chaoyu Tang
>            Priority: Critical
>             Fix For: 0.15.0, 0.14.1
>         Attachments: HIVE-8889.1.patch, HIVE-8889.2.patch, HIVE-8889.patch
> Using hive-jdbc-0.13.1-cdh5.2.0.jar.
> All of the get-by-column-label methods of HiveBaseResultSet are now broken.  They don't
take just the column label as they should.  Instead you have to pass in <table name>.<column
name>.  This requirement doesn't conform to the java ResultSet API which specifies:
> "columnLabel - the label for the column specified with the SQL AS clause. If the SQL
AS clause was not specified, then the label is the name of the column"
> Looking at the code, it seems that the problem is that findColumn() method is looking
in normalizedColumnNames instead of the columnNames.
> BTW, Another annoying issue with the code is that the SQLException thrown gives no indication
of what the problem is.  It should at least say that the column name wasn't found in the description

This message was sent by Atlassian JIRA

View raw message