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

feat(patch): support datajob input output #8190

Merged

Conversation

RyanHolstien
Copy link
Collaborator

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@RyanHolstien RyanHolstien added the platform PR-s that make changes to core parts of the platform label Jun 7, 2023
@RyanHolstien RyanHolstien self-assigned this Jun 7, 2023
@RyanHolstien RyanHolstien requested a review from pedro93 June 7, 2023 20:49
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jun 7, 2023
System.out.println(response.get().getResponseContent());

} catch (URISyntaxException | IOException | ExecutionException | InterruptedException e) {
System.out.println(Arrays.asList(e.getStackTrace()));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want this system out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, this test is more of an example usage for the Java SDK. It's set to ignore for CI and the System.out gives output of what happens during local testing.

return this;
}

private ObjectNode createEdgeValue(Urn urn) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This forces the timestamp for the added edge to be current time, which doesn't work if the producer wants to set a different time (e.g. processing an audit log and finding a job that was run a day ago). We need to expand the API to support passing in the full edge as well. Perhaps there can be a default implementation like this as a shortcut for people who don't care.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, will add it

@shirshanka shirshanka merged commit f78f7f9 into datahub-project:master Jun 15, 2023
44 checks passed
tusharm pushed a commit to tusharm/datahub that referenced this pull request Jun 20, 2023
Co-authored-by: Shirshanka Das <shirshanka@apache.org>
Co-authored-by: david-leifker <114954101+david-leifker@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata platform PR-s that make changes to core parts of the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants