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

Test JsonPointerBasedFilter with sequence of JSONs #34

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

dmikurube
Copy link
Member

@dmikurube dmikurube commented Sep 19, 2023

This is not a test for embulk-util-json by itself, but to check the behavior of Jackson.

A related topic: https://groups.google.com/g/jackson-user/c/bLZTjjjXZ28

@dmikurube dmikurube force-pushed the test-JsonPointerBasedFilter-with-sequence-of-jsons branch 2 times, most recently from 7aa4934 to 5411f8c Compare September 20, 2023 12:36
@dmikurube dmikurube force-pushed the test-JsonPointerBasedFilter-with-sequence-of-jsons branch from 5411f8c to be9a641 Compare September 20, 2023 12:38
@dmikurube dmikurube marked this pull request as ready for review September 20, 2023 12:40
@dmikurube dmikurube requested a review from a team as a code owner September 20, 2023 12:40
@dmikurube dmikurube added this to the v0.3.0 milestone Sep 20, 2023
Copy link
Member

@hiroyuki-sato hiroyuki-sato left a comment

Choose a reason for hiding this comment

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

LGTM👍
(One minor comment.)

public class TestJacksonFilter {
@Test
public void testFilterSequenceSkippingNonMatch() throws IOException {
final com.fasterxml.jackson.core.JsonParser parser = createFilteredParser(
Copy link
Member

Choose a reason for hiding this comment

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

What do you think to add this comment ?
Because, I completely understand the purpose of this test after reading the google group article.

// This |parser| returns {"bar":"baz"}, and {"bar":"qux"}, with just skipping {"xxx":{"yyy":"zzz"}}.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Sounds good! Added.

@dmikurube dmikurube merged commit cf28754 into master Sep 21, 2023
11 checks passed
@dmikurube dmikurube deleted the test-JsonPointerBasedFilter-with-sequence-of-jsons branch September 21, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants