You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mathias Herberts (JIRA)" <ji...@apache.org> on 2010/10/06 16:21:34 UTC

[jira] Created: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
-----------------------------------------------------------------------------

                 Key: THRIFT-946
                 URL: https://issues.apache.org/jira/browse/THRIFT-946
             Project: Thrift
          Issue Type: Improvement
          Components: Java - Compiler, Java - Library
    Affects Versions: 0.4, 0.3, 0.2, 0.1, 0.5, 0.6, 0.7
            Reporter: Mathias Herberts
            Priority: Minor


String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.

The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.


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


[jira] Updated: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Posted by "Mathias Herberts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mathias Herberts updated THRIFT-946:
------------------------------------

    Attachment: THRIFT-946.patch

> Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-946
>                 URL: https://issues.apache.org/jira/browse/THRIFT-946
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
>            Reporter: Mathias Herberts
>            Priority: Minor
>         Attachments: THRIFT-946.patch
>
>
> String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.
> The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.

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


[jira] Updated: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Posted by "Mathias Herberts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mathias Herberts updated THRIFT-946:
------------------------------------

    Attachment: THRIFT-946.patch-2

Note to self: svn diff should be done after the problem is fixed ;-)

> Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-946
>                 URL: https://issues.apache.org/jira/browse/THRIFT-946
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
>            Reporter: Mathias Herberts
>            Priority: Minor
>         Attachments: THRIFT-946.patch, THRIFT-946.patch-2
>
>
> String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.
> The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.

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


[jira] Closed: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury closed THRIFT-946.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6

Awesome, committed. Thanks for the patch, Mathias!

> Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-946
>                 URL: https://issues.apache.org/jira/browse/THRIFT-946
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
>            Reporter: Mathias Herberts
>            Assignee: Mathias Herberts
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: THRIFT-946.patch, THRIFT-946.patch-2, THRIFT-946.patch-3
>
>
> String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.
> The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.

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


[jira] Updated: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Posted by "Mathias Herberts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mathias Herberts updated THRIFT-946:
------------------------------------

    Attachment: THRIFT-946.patch-3

Added test.

> Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-946
>                 URL: https://issues.apache.org/jira/browse/THRIFT-946
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
>            Reporter: Mathias Herberts
>            Priority: Minor
>         Attachments: THRIFT-946.patch, THRIFT-946.patch-2, THRIFT-946.patch-3
>
>
> String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.
> The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.

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


[jira] Commented: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918570#action_12918570 ] 

Bryan Duxbury commented on THRIFT-946:
--------------------------------------

This version looks better, but I'd really love it if you added a testcase to TestStruct.testMetaData...

> Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-946
>                 URL: https://issues.apache.org/jira/browse/THRIFT-946
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
>            Reporter: Mathias Herberts
>            Priority: Minor
>         Attachments: THRIFT-946.patch, THRIFT-946.patch-2
>
>
> String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.
> The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.

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


[jira] Commented: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918542#action_12918542 ] 

Bryan Duxbury commented on THRIFT-946:
--------------------------------------

Uh oh:

{code}
src/generate/t_java_generator.cc: In member function 'void t_java_generator::generate_field_value_meta_data(std::ofstream&, t_type*)':
src/generate/t_java_generator.cc:2115: error: 'class t_type' has no member named 'is_binary'
src/generate/t_java_generator.cc: In member function 'void t_java_generator::generate_java_struct_clear(std::ofstream&, t_struct*)':
src/generate/t_java_generator.cc:3900: warning: enumeration value 'TYPE_VOID' not handled in switch
src/generate/t_java_generator.cc:3900: warning: enumeration value 'TYPE_STRING' not handled in switch
make[1]: *** [thrift-t_java_generator.o] Error 1
make: *** [all] Error 2
{code}

> Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-946
>                 URL: https://issues.apache.org/jira/browse/THRIFT-946
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
>            Reporter: Mathias Herberts
>            Priority: Minor
>         Attachments: THRIFT-946.patch
>
>
> String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.
> The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.

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


[jira] Assigned: (THRIFT-946) Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.

Posted by "Mathias Herberts (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mathias Herberts reassigned THRIFT-946:
---------------------------------------

    Assignee: Mathias Herberts

> Augment FieldValueMetaData so it differentiates 'string' and 'binary' fields.
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-946
>                 URL: https://issues.apache.org/jira/browse/THRIFT-946
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler, Java - Library
>    Affects Versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
>            Reporter: Mathias Herberts
>            Assignee: Mathias Herberts
>            Priority: Minor
>         Attachments: THRIFT-946.patch, THRIFT-946.patch-2, THRIFT-946.patch-3
>
>
> String fields are not differentiated from binary fields in the meta data map. This is sometimes problematic when manipulating Thrift structs in tools such as Pig.
> The included patch extends FieldValueMetaData with 'isBinary' field and method and modifies the java compiler so generated code correctly reflects the binary nature of fields in the meta data.

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