apache / fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.
https://fury.apache.org/
Apache License 2.0
3.12k stars 248 forks source link

[Question] <title> Change the property type from int to long #1930

Open shaozhen2012 opened 2 weeks ago

shaozhen2012 commented 2 weeks ago

Question

If the value of the attribute does not exceed, how to make the attribute type compatible. For example, change an attribute from int to long

amabilee commented 2 weeks ago

Hey there!

To ensure type compatibility when changing an attribute type (e.g., from int to long), you can leverage Fury's type compatibility protocol. Fury supports forward and backward compatibility for object serialization, which means you can add or delete fields independently on the serialization and deserialization sides.

Here is more information: #1610, Documentation and #197