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

Question: why do we need to pass actual schema to the constructor to flink if the schemas are in the schema registry? #354

Open
bbaja42 opened this issue Sep 27, 2024 · 0 comments

Comments

@bbaja42
Copy link

bbaja42 commented Sep 27, 2024

In https://github.com/awslabs/aws-glue-schema-registry?tab=readme-ov-file#flink-kafka-consumer-with-avro-format
when flink needs to get generic Avro record, why do we need actual schema in

        GlueSchemaRegistryAvroDeserializationSchema.forGeneric(schema, configs),

When message is read from kafka, the magic bytes are used to find the schema ID from schema registry, which is then used to fetch the actual schema.
If the actual schema is in the schema registry, why do we need to still pass the schema when creating Flink source?

In our case, we have large number of schemas, and would like to have a single source that can read all of them.

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

No branches or pull requests

1 participant