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

Avro sink enhancements #1515

Merged
merged 2 commits into from
Apr 19, 2021
Merged

Conversation

nadberezny
Copy link
Collaborator

  1. Remove unnecessary parameter: ValidationMode
  2. Refactor: pass transformation state instead of var mutation

val key = params(SinkKeyParamName).asInstanceOf[LazyParameter[CharSequence]]

new KafkaAvroSink(preparedTopic, versionOption, key, sinkValue, kafkaConfig, schemaRegistryProvider.serializationSchemaFactory,
schemaData.serializableSchema, schemaUsedInRuntime.map(_.serializableSchema), clientId, validationMode)
schemaData.serializableSchema, schemaUsedInRuntime.map(_.serializableSchema), clientId, ValidationMode.strict)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder, does it have any effect/causes problem when "Latest version" is chosen? E.g. when we want to handle compatible changes?

Copy link
Member

Choose a reason for hiding this comment

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

I don't see issue with it. The idea is that our schema evolution mechanism handle this situation. From user perspective he/she should see definition of latest version. I see other problem - with handling defaults but will left comment in the place where it exists.

@nadberezny nadberezny force-pushed the avro_sink_enhancements2 branch from e7227da to adfd312 Compare April 13, 2021 10:17
@nadberezny nadberezny force-pushed the avro_sink_enhancements2 branch from adfd312 to cc181da Compare April 19, 2021 11:57
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.

3 participants