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

[HUDI-738] Add validation to DeltaStreamer when filtetDupes is enabled on UPSERT mode #1505

Merged
merged 1 commit into from Apr 10, 2020

Conversation

bhasudha
Copy link
Contributor

Summary:
This fix ensures for UPSERT operation, '--filter-dupes' is disabled and fails fast if not. Otherwise it would drop all updates silently and only take in new records.

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.

…Dupes is enabled on UPSERT mode.

Summary:
This fix ensures for UPSERT operation, '--filter-dupes' is disabled and fails fast if not. Otherwise it would drop all updates silently and only take in new records.
@vinothchandar vinothchandar self-assigned this Apr 10, 2020
Copy link
Member

@vinothchandar vinothchandar left a comment

Choose a reason for hiding this comment

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

LGTM. please merge after CI passes

@bhasudha bhasudha changed the title [HUDI - 738] Add validation to DeltaStreamer when filtetDupes is enabled on UPSERT mode [HUDI-738] Add validation to DeltaStreamer when filtetDupes is enabled on UPSERT mode Apr 10, 2020
@codecov-io
Copy link

Codecov Report

Merging #1505 into master will increase coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1505   +/-   ##
=========================================
  Coverage     72.15%   72.15%           
+ Complexity      290      289    -1     
=========================================
  Files           338      338           
  Lines         15929    15926    -3     
  Branches       1625     1622    -3     
=========================================
- Hits          11494    11492    -2     
- Misses         3704     3705    +1     
+ Partials        731      729    -2     
Impacted Files Coverage Δ Complexity Δ
...apache/hudi/utilities/deltastreamer/DeltaSync.java 72.44% <ø> (+0.58%) 37.00 <0.00> (-1.00) ⬆️
...s/deltastreamer/HoodieMultiTableDeltaStreamer.java 78.39% <0.00%> (-0.49%) 18.00 <0.00> (ø)
...i/utilities/deltastreamer/HoodieDeltaStreamer.java 79.14% <100.00%> (+0.37%) 10.00 <0.00> (ø)
...ache/hudi/common/fs/inline/InMemoryFileSystem.java 79.31% <0.00%> (-10.35%) 0.00% <0.00%> (ø%)
...g/apache/hudi/metrics/InMemoryMetricsReporter.java 80.00% <0.00%> (+40.00%) 0.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5f34bb...7e05fda. Read the comment docs.

@bhasudha bhasudha merged commit 8c7cef3 into apache:master Apr 10, 2020
bhasudha pushed a commit to bhasudha/hudi that referenced this pull request May 19, 2020
…Dupes is enabled on UPSERT mode. (apache#1505)

Summary:
This fix ensures for UPSERT operation, '--filter-dupes' is disabled and fails fast if not. Otherwise it would drop all updates silently and only take in new records.
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.

None yet

3 participants