hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vivek Ratan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1993) Incorrect code in Java stubs created by Record I/O compiler for vector<vector> type
Date Thu, 04 Oct 2007 10:01:03 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532371
] 

Vivek Ratan commented on HADOOP-1993:
-------------------------------------

very simple fix. org.apache.hadoop.record.compiler.JVector.genCompareTo() needs to increment
its level (call incrLevel()) at the beginning and decrement it at end. This lets it generate
unique variable names. 
This fix is part of the patch submitted for HADOOP-1883. 

> Incorrect code in Java stubs created by Record I/O compiler for vector<vector>
type
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-1993
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1993
>             Project: Hadoop
>          Issue Type: Bug
>            Reporter: Vivek Ratan
>            Assignee: Vivek Ratan
>            Priority: Minor
>
> If a 'vector of vectors' field is present in a DDL, the Java code generated by Record
I/O contains errors in the _compareTo()_ method. For example, if the DDL is 
> {code}
> class s1 {
>   vector<vector<int>> slkl;
> }
> {code}
> then s1.compareTo() contains code that cannot be compiled (duplicate local variables).

-- 
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