Skip to content

Fix runner to string inconsistency (#575)#620

Merged
khorshuheng merged 2 commits intofeast-dev:v0.4-branchfrom
khorshuheng:backport-575
Apr 15, 2020
Merged

Fix runner to string inconsistency (#575)#620
khorshuheng merged 2 commits intofeast-dev:v0.4-branchfrom
khorshuheng:backport-575

Conversation

@khorshuheng
Copy link
Copy Markdown
Collaborator

Backport #575 and #578

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:


mrzzy and others added 2 commits April 15, 2020 09:04
* Changed Runner.getName() to Runner.toString() when passing to Job.runner in DataflowJobManager

This is necessary to standardise the use of Runner.toString() when
passing to the Job.runner, so that code dependending on Job.runner
would know what to expect.

* Document how & when Runner.toString() or Runner.getName() should be used

* Convert getName() to toString(). Use name() for Job.runner.

Use toString() to render human readable strings while using the
non overriding name() for code dependencies.

Co-authored-by: Zhu Zhanyan <zhu.zhanyan@gojek.com>
feast-dev#578)

Bug caused by toString() method being used in the conversion lambda instead of
the getName() method.  Since lambda duplicates functionality already
implemented by Feature.fromProto, removing the lambda block in favor
using the method to do the conversion.

Co-authored-by: Zhu Zhanyan <zhu.zhanyan@gojek.com>
@feast-ci-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: khorshuheng
To complete the pull request process, please assign thirteen37
You can assign the PR to them by writing /assign @thirteen37 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@khorshuheng khorshuheng changed the title Fix runner to string inconsistency #575 Fix runner to string inconsistency (#575) Apr 15, 2020
@khorshuheng
Copy link
Copy Markdown
Collaborator Author

/test test-end-to-end-batch-java-8

@khorshuheng khorshuheng merged commit 3c8b2fd into feast-dev:v0.4-branch Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants