Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1833

Thrift generates incorrect C++ writer for union

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.9
    • 0.11.0
    • C++ - Compiler
    • None

    Description

      The generated union struct c++ writer would write all union fields. This is incorrect. It should only write the field that has been set.
      It causes incompatibility between c++ and Java. A union written by C++ side cannot be read by the Java side.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jensg Jens Geyer
            alan@cloudera.com Alan Choi
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment