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-1685] keep updating current date for every batch #2671

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

akanungoz
Copy link
Contributor

What is the purpose of the pull request

When current date is not specified as config setting, the current system date should keep getting updated and should not be initialized in the constructor

Brief change log

Verify this pull request

There exists tests for this code already (https://github.com/apache/hudi/blob/master/hudi-utilities/src/test/java/org/apache/hudi/utilities/sources/helpers/TestDatePartitionPathSelector.java#L193)

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.

@xushiyan
Copy link
Member

@akanungoz we need to file a bug and link the ticket id to this.

@akanungoz akanungoz changed the title [MINOR] keep updating current date for every batch [HUDI-1685] keep updating current date for every batch Mar 12, 2021
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

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

@codecov-io
Copy link

Codecov Report

Merging #2671 (e3dff4d) into master (20786ab) will increase coverage by 17.42%.
The diff coverage is 33.33%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master    #2671       +/-   ##
=============================================
+ Coverage     52.00%   69.43%   +17.42%     
+ Complexity     3579      363     -3216     
=============================================
  Files           465       53      -412     
  Lines         22268     1963    -20305     
  Branches       2375      235     -2140     
=============================================
- Hits          11581     1363    -10218     
+ Misses         9676      466     -9210     
+ Partials       1011      134      -877     
Flag Coverage Δ Complexity Δ
hudicli ? ?
hudiclient ? ?
hudicommon ? ?
hudiflink ? ?
hudihadoopmr ? ?
hudisparkdatasource ? ?
hudisync ? ?
huditimelineservice ? ?
hudiutilities 69.43% <33.33%> (-0.11%) 0.00 <5.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...ies/sources/helpers/DatePartitionPathSelector.java 54.68% <33.33%> (-1.57%) 13.00 <5.00> (ø)
...apache/hudi/utilities/deltastreamer/DeltaSync.java 70.00% <0.00%> (-0.35%) 52.00% <0.00%> (-1.00%)
...src/main/java/org/apache/hudi/cli/TableHeader.java
...va/org/apache/hudi/common/fs/ConsistencyGuard.java
...java/org/apache/hudi/common/engine/EngineType.java
...he/hudi/common/model/EmptyHoodieRecordPayload.java
...ache/hudi/common/util/collection/DiskBasedMap.java
...til/jvm/HotSpotMemoryLayoutSpecification64bit.java
...che/hudi/common/table/log/HoodieLogFileReader.java
.../java/org/apache/hudi/hadoop/InputPathHandler.java
... and 404 more

@xushiyan xushiyan merged commit f5e31be into apache:master Mar 12, 2021
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