Skip to content
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

ut: add serialize/deserialize tests for spec #56

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

QuakeWang
Copy link
Contributor

part of #26

crates/paimon/src/spec/data_file.rs Outdated Show resolved Hide resolved

#[test]
fn test_data_file_meta_serialize_deserialize() {
let json_data = r#"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @devillove084

https://github.com/apache/paimon-rust/blob/main/crates/paimon/tests/fixtures/manifest_file_meta_schema.json

This fixture appears to be just the schema of ManifestFileMeta. How is ManifestFileMeta data stored on disk?

Copy link
Member

@Xuanwo Xuanwo Aug 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also have DataFileMeta's datatype and DataFileMeta on disk format.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default manifest file is of avro format. I think we should also generate a corresponding manifest file to verify the deserialize. But may be we should support avro/orc reader first ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default manifest file is of avro format. I think we should also generate a corresponding manifest file to verify the deserialize. But may be we should support avro/orc reader first ?

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants