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

Implement DataSource's new methods: hasList, hasNested, getListOf, and toMap #61

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

dmikurube
Copy link
Member

Some methods have been added in Embulk SPI's DataSource: embulk/embulk#1534

It implements them in embulk-util-config's DataSourceImpl.

…d toMap

Some methods have been added in Embulk SPI's DataSource: embulk/embulk#1534

It implements them in embulk-util-config's DataSourceImpl.
@dmikurube dmikurube added this to the v0.4.1 milestone Oct 27, 2023
@dmikurube
Copy link
Member Author

We're going to add unit tests for them.

Base automatically changed from test-with-junit-5.10.0-embulk-0.11.1 to master November 2, 2023 08:14
@dmikurube dmikurube marked this pull request as ready for review November 7, 2023 09:07
@dmikurube dmikurube requested a review from a team as a code owner November 7, 2023 09:07
@dmikurube dmikurube force-pushed the implement-hasList-hasNested-getListOf-toMap branch from 7ef9c6d to e444178 Compare November 7, 2023 09:13
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👍

}
fail("ConfigException should be thrown by getting a mixed JSON array as a List of Strings.");
}

@Test
public void testFailToGetNestedAsList() {
Copy link
Member

Choose a reason for hiding this comment

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

Just memo reading review

{
  "string": "foo",
  "boolean": true,
  "int": 12,
  "double": 42914.142,
  "array": [
    "hoge",
    "fuga",
    {
      "subkey1": "something"
    },
    [
      "sumewhat"
    ]
  ],
  "arrayOfStrings": [
    "foo",
    "bar",
    "baz"
  ],
  "arrayOfIntegers": [
    124,
    -4014,
    9241
  ],
  "object": {
    "key1": "value1",
    "key2": "value2"
  }
}

@dmikurube
Copy link
Member Author

Thanks!

@dmikurube dmikurube merged commit 68d4935 into master Nov 8, 2023
2 checks passed
@dmikurube dmikurube deleted the implement-hasList-hasNested-getListOf-toMap branch November 8, 2023 05:03
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