-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][kinesis-sink] Add unit test for Kinesis sink JsonConverter #15848
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
aef9aaa to
2ff92d6
Compare
2ff92d6 to
06b473a
Compare
|
/pulsarbot rerun-failure-checks |
| @Test | ||
| public void testAvroToJson() throws IOException { | ||
| Schema avroArraySchema = SchemaBuilder.array().items(SchemaBuilder.builder().stringType()); | ||
| Schema schema = SchemaBuilder.record("record").fields() |
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.
Suggestion adds Logical type test. Remind, JsonNode will default to the scientific and technical method when acquiring big data types. refer to: #15687
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.
This PR is mainly to align with Elastic Search JsonConverter tests. Maybe we could improve with Logical types in a follow-up PR for both ?
…pache#15848) (cherry picked from commit 8c21c00)
Motivation
Improves test coverage
Modifications
Added a test
Verifying this change
This change added tests and can be verified as follows:
Run JsonConverterTests
Does this pull request potentially affect one of the following parts:
no
If
yeswas chosen, please highlight the changesDocumentation
Check the box below or label this PR directly.
Need to update docs?
doc-required(Your PR needs to update docs and you will update later)
doc-not-neededfix
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)