You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@thrift.apache.org by GitBox <gi...@apache.org> on 2021/05/20 08:51:34 UTC

[GitHub] [thrift] huzhao37 commented on pull request #2394: THRIFT-5417: Fix Lua compiler omitting default values in Lua service functions

huzhao37 commented on pull request #2394:
URL: https://github.com/apache/thrift/pull/2394#issuecomment-844876600


   当我使用Compact协议编解码复杂结构体时,调用初始化,给其中一个简单的string类型赋值,然后编码,得到buffer,再解码,发现string类型的字段的值没有了,如果把复杂结构体里的其他复杂字段初始化,就不会有这个问题,这个怎么解决呢?
   ![image](https://user-images.githubusercontent.com/17268060/118949155-881b1100-b98b-11eb-80d3-c80432edcabb.png)
   ![image](https://user-images.githubusercontent.com/17268060/118949223-96692d00-b98b-11eb-8bc9-cb33761a1c4b.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org