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

Enum forward compatibility

    XMLWordPrintableJSON

Details

    Description

      It seems that enums in the Rust implem are not forward compatible. As Thrift enums are mapped 1:1 to Rust enum, if a newer Thrift definition adds a case to an enum, an error will be returned when parsing the message.

      Is this intended? Is there a workaround?

      (We met this problem in the Rust parquet implem: https://issues.apache.org/jira/browse/ARROW-10553)

      Attachments

        Issue Links

          Activity

            People

              allengeorge Allen George
              rdettai RĂ©mi Dettai
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h