Skip to content

Conversation

@bvaradar
Copy link
Contributor

@bvaradar bvaradar commented Oct 2, 2020

This is to let users implement custom deduping-merge logic.

Committer checklist

  • Has a corresponding JIRA in PR title & commit

  • Commit message is descriptive of the change

  • CI is green

  • Necessary doc changes done or have another open PR

  • For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@bvaradar bvaradar requested a review from vinothchandar October 2, 2020 16:54
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made this to a class to take advantatage of lazy creation of Schema in executors.

* @return Combined Record.
*/
@PublicAPIMethod(maturity = ApiMaturityLevel.STABLE)
default T preCombine(T another, Schema schema) {
Copy link
Member

Choose a reason for hiding this comment

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

Could we just introduce a config that simply uses combineAndGetUpdateValue() to perform the preCombine as well. We have debated doing this for a while. Do you see a reason not to do something like that.

@vinothchandar
Copy link
Member

cc @Karl-WangSK

@bvaradar please see the other PR #2106 for a similar discussion.

@nsivabalan
Copy link
Contributor

@bvaradar : we have already introduced properties as an arg to all apis as per #2311. Do you think we can redo this patch based on this new api.

@nsivabalan
Copy link
Contributor

@bvaradar : can you check my previous comment. We can close this out if not required. If not, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants