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

-Support for Sink Codecs #2986

Merged
merged 15 commits into from
Jul 26, 2023
Merged

Conversation

umayr-codes
Copy link
Contributor

@umayr-codes umayr-codes commented Jul 6, 2023

Signed-off-by: umairofficial [email protected]

Description

  • AvroSinkCodec, JsonSinkCodec & CsvSinkCodec implementation added
  • config classes for the respective sink codecs added
  • Unit Tests added
  • Integration Tests with InputCodecs added
  • Integration Tests with S3Sink added
  • Readme.md files updated

Issues Resolved

Resolves #2403

Check List

  • New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
@umayr-codes umayr-codes mentioned this pull request Jul 10, 2023
4 tasks
umairofficial and others added 13 commits July 12, 2023 20:40
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
# Conflicts:
#	data-prepper-plugins/parse-json-processor/src/test/java/org/opensearch/dataprepper/plugins/codec/json/JsonOutputCodecTest.java
#	data-prepper-plugins/parse-json-processor/src/test/java/org/opensearch/dataprepper/plugins/codec/json/NewlineDelimitedOutputCodecTest.java
#	data-prepper-plugins/s3-sink/build.gradle
#	data-prepper-plugins/s3-sink/src/integrationTest/java/org/opensearch/dataprepper/plugins/sink/S3SinkServiceIT.java
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Signed-off-by: umairofficial <[email protected]>
Comment on lines +34 to +44
@Size(max = 0, message = "Schema from file is not supported.")
@JsonProperty("region")
private String region;

@Valid
@Size(max = 0, message = "Schema from file is not supported.")
@JsonProperty("bucket_name")
private String bucketName;

@Valid
@Size(max = 0, message = "Schema from file is not supported.")
Copy link
Member

Choose a reason for hiding this comment

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

The error messages on these are copied from schema_file_location

Copy link
Collaborator

Choose a reason for hiding this comment

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

Merging this for now. Please fix this @umayr-codes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These error messages were written in accordance with Ashok's suggestion!

Comment on lines +30 to +38
@Size(max = 0, message = "Header from file is not supported.")
@JsonProperty("region")
private String region;
@Valid
@Size(max = 0, message = "Header from file is not supported.")
@JsonProperty("bucket_name")
private String bucketName;
@Valid
@Size(max = 0, message = "Header from file is not supported.")
Copy link
Member

Choose a reason for hiding this comment

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

This error message is copied from header_file_location

Copy link
Collaborator

Choose a reason for hiding this comment

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

Merging this for now. Please fix this @umayr-codes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These error messages were written in accordance with Ashok's suggestion!

@kkondaka kkondaka merged commit 4c4677b into opensearch-project:main Jul 26, 2023
24 checks passed
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.

Support a generic codec structure for sinks
5 participants