Skip to content

Conversation

@boneanxs
Copy link
Contributor

Tips

What is the purpose of the pull request

(For example: This pull request adds quick-start document.)

Brief change log

(for example:)

  • Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request

(Please pick either of the following options)

This pull request is a trivial rework / code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end.
  • Added HoodieClientWriteTest to verify the change.
  • Manually verified the change by running a job locally.

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.

@boneanxs boneanxs changed the title [MINOR] Abstract Spark update Strategy to make code more clean and remove codes duplicates [MINOR] Abstract Spark update Strategy to make code more clean and remove duplicates Feb 18, 2022
@boneanxs
Copy link
Contributor Author

@codope @nsivabalan Hi, can you review this?

Copy link
Member

@codope codope left a comment

Choose a reason for hiding this comment

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

@boneanxs The refactoring looks good. Just a minor comment.

import java.util.List;
import java.util.Set;

public abstract class BaseSparkUpdateStrategy<T extends HoodieRecordPayload<T>> extends UpdateStrategy<T, JavaRDD<HoodieRecord<T>>> {
Copy link
Member

Choose a reason for hiding this comment

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

let's add a javadoc for public classes and methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done~

@codope codope self-assigned this Feb 18, 2022
@boneanxs
Copy link
Contributor Author

@hudi-bot run azure

1 similar comment
@boneanxs
Copy link
Contributor Author

@hudi-bot run azure

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

Copy link
Member

@xushiyan xushiyan left a comment

Choose a reason for hiding this comment

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

LGTM. I'm working on a broader refactoring that needs and covers this. https://issues.apache.org/jira/browse/HUDI-3042

@xushiyan xushiyan changed the title [MINOR] Abstract Spark update Strategy to make code more clean and remove duplicates [HUDI-3042] Abstract Spark update Strategy to make code more clean and remove duplicates Feb 21, 2022
@xushiyan xushiyan merged commit 801fdab into apache:master Feb 21, 2022
vingov pushed a commit to vingov/hudi that referenced this pull request Apr 3, 2022
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.

4 participants