WJSGDBZ commented on code in PR #2305:
URL: 
https://github.com/apache/incubator-pegasus/pull/2305#discussion_r2444855621


##########
python-client/pypegasus/base/ttypes.py:
##########
@@ -44,10 +44,19 @@ def write(self, oprot):
 
   def validate(self):
     return
+  
+  def raw(self):
+    if self._is_str:
+      return self.data.decode('UTF-8')

Review Comment:
   self._is_str is a flag used to determine whether the input data is of string 
type. If it is, the data will be encoded using 'utf-8'. The raw function also 
checks self._is_str to decide whether to decode the data



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to