hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Jain (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-381) [JDBC component] HiveResultSet next() always returned true due to bad string comparison
Date Thu, 02 Apr 2009 01:01:13 GMT

    [ https://issues.apache.org/jira/browse/HIVE-381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694852#action_12694852
] 

Namit Jain commented on HIVE-381:
---------------------------------

Kim, after looking at the code again, I had some questions:

In the test (without your patch), the while loop should have never exited, and eventually
some random timeout happened.
I am not sure how is it working without your patch ?

I should not have accepted in the first place - I will delete the above comment

> [JDBC component] HiveResultSet next() always returned true due to bad string comparison
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-381
>                 URL: https://issues.apache.org/jira/browse/HIVE-381
>             Project: Hadoop Hive
>          Issue Type: Bug
>    Affects Versions: 0.2.0, 0.3.0, 0.4.0
>            Reporter: Kim P.
>            Assignee: Kim P.
>         Attachments: HIVE-381.2.patch, HIVE-381.patch, HiveResultSet.java
>
>
> Method next() is comparing String using "!=" operator resulted in "true" being returned
all the time.  Can be fix by using String equals() operation to check. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message