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

Deserializing double into OrderedFloat always returns zero when using TCompactProtocol

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.14.0
    • Rust - Library
    • None

    Description

      Client: Rust + Thrift 0.12.0

      Server: CPP + Thrift 0.9.3

      Protocol: TCompactProtocol

      Transport: TBufferedTransport

       

      I logged before cpp server response to rust client

       

      "age=21.339611053466797"
      

      but client recieved

       

       

       

      age: Some(OrderedFloat(0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000409415354256))
      

      This bug only happens when using TCompactProtocol.

       

       

      Attachments

        Issue Links

          Activity

            People

              mpajkowski Marcin Pajkowski
              ziming.wu ziming.wu
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m