-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(ingest): Upgrade avro version to fix issues with decimal types #8868
fix(ingest): Upgrade avro version to fix issues with decimal types #8868
Conversation
Thanks @harsha-mandadi-4026! We'll need to tread carefully here because because we use avro for serializing when writing to kafka Also, it looks like CI might be failing with this change e.g.
|
Hi @hsheth2 - Thanks for taking a look. I can see in the Field class that it accepts a keyword argument called class Field(CanonicalPropertiesMixin, EqualByJsonMixin):
_reserved_properties: Sequence[str] = FIELD_RESERVED_PROPS
def __init__(self, type_, name, has_default, default=None, order=None, names=None, doc=None, other_props=None, validate_names: bool = True): this part field = avro.schema.Field(
type=f["type"],
name=f["name"],
has_default=False,
) in metadata_ingestion/scripts/modeldocgen.py seems to be failing. Looks like there are quite a few changes in the schema.py file of Avro, I'll take a look. |
Closing because #9042 was merged |
poetry
it's installing the lower end of the mentioned Avro versions which is1.10.2
and this version has a bug for Decimal types.BytesDecimalSchema
class. This is the function in Avro 1.10.2BytesDecimalSchema
class, the meta is lost only for Decimal column types. This issue has been fixed in the latest version of Avro 1.11.2. See here.Checklist