[ 
https://issues.apache.org/jira/browse/THRIFT-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ziming.wu updated THRIFT-4915:
------------------------------
    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

 
{code:java}
"age=21.339611053466797"
{code}
but client recieved

 

 

 
{code:java}
age: 
Some(OrderedFloat(0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000409415354256))
{code}
This bug only happens when using TCompactProtocol.

 

 

  was:
Client: Rust + Thrift 0.12.0

Server: CPP + Thrift 0.9.3

Protocol: TCompactProtocol

Transport: TBufferedTransport

 

 


> Deserializing double into OrderedFloat always returns zero when using 
> TCompactProtocol
> --------------------------------------------------------------------------------------
>
>                 Key: THRIFT-4915
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4915
>             Project: Thrift
>          Issue Type: Bug
>          Components: Rust - Library
>    Affects Versions: 0.12.0
>            Reporter: ziming.wu
>            Priority: Major
>
> 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
>  
> {code:java}
> "age=21.339611053466797"
> {code}
> but client recieved
>  
>  
>  
> {code:java}
> age: 
> Some(OrderedFloat(0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000409415354256))
> {code}
> This bug only happens when using TCompactProtocol.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to