chaokunyang commented on issue #2079:
URL: https://github.com/apache/fury/issues/2079#issuecomment-2673304130

   Hi @mail-ricklee-mail , thanks for reporting this issue. Would you like to 
submit a pr to fix it?
   
   We could add a new path in `writeJavaString`:
   ```java
     public void writeJavaString(MemoryBuffer buffer, String value) {
       if (STRING_WITH_OFFSET) {
         writeStringWithOffset(buffer, value);
       }
       if (STRING_VALUE_FIELD_IS_BYTES) {
         if (compressString) {
           writeCompressedBytesString(buffer, value);
         } else {
           writeBytesString(buffer, value);
         }
       } else {
         assert STRING_VALUE_FIELD_IS_CHARS;
         if (compressString) {
           writeCompressedCharsString(buffer, value);
         } else {
           writeCharsString(buffer, value);
         }
       }
     }
   ```
   
   
   `StringSerializer#writeStringExpr` also be updated.


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