-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Expose methods for ser/de data file #145
feat: Expose methods for ser/de data file #145
Conversation
Maybe we can consider to expose method to return a serializable object to make it more general. |
I tried to implement sth like:
But failed 🤪 |
Can we directly impl Serialize in in_memory::Datafile, like:
|
Do we need to serialize the data_file into other formats instead of json? |
Not sure. For now maybe json is enogh. But a more general interface may better for compatibilty in future. |
I understand your idea, but the DataFile in iceberg is specifically designed to be a JSON format. Therefore, adding a general interface may not provide enough benefits. |
Here is the use case, and I think it's not so much relative the original design🤔. (CMIIW): |
It is advisable not to rely on an external data type and attempt to directly serialize/deserialize or transfer it. Instead, downstream systems should have their own data format for this purpose in order to prevent unexpected disruptions. For a distribution system like risingwave, it may be more important since our service may not be able to upgrade simultaneously. |
Make sense! |
Required by other systems..