-
Notifications
You must be signed in to change notification settings - Fork 70
feat: add schema conversion to avro schema #100
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
Conversation
| *node = std::make_shared<::avro::NodePrimitive>(::avro::AVRO_FIXED); | ||
| (*node)->setLogicalType(::avro::LogicalType{::avro::LogicalType::UUID}); | ||
| (*node)->setFixedSize(16); | ||
| (*node)->setName(::avro::Name("uuid_fixed")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if the _fixed suffix is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay then. Will the name be serialized to the Avro file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
| Status Visit(const StructType& type, ::avro::NodePtr* node); | ||
| Status Visit(const ListType& type, ::avro::NodePtr* node); | ||
| Status Visit(const MapType& type, ::avro::NodePtr* node); | ||
| Status Visit(const SchemaField& field, ::avro::NodePtr* node); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this one private, since SchemaField is not a Iceberg type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine because the file is also internal. We don't want to expose any avro:: and arrow:: namespace.
No description provided.