Skip to content

Conversation

@scxwhite
Copy link
Contributor

@scxwhite scxwhite commented Mar 2, 2022

Tips

What is the purpose of the pull request

when reading the delta log file, we compare the data in the external spillablemap with the delta log data. If oldrecord is selected, there is no need to rewrite the data in the external spillablemap. Rewriting data will waste a lot of resources when data is spill to disk

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.

@scxwhite
Copy link
Contributor Author

scxwhite commented Mar 2, 2022

old pr : #4400

records.put(key, new HoodieAvroRecord<>(new HoodieKey(key, hoodieRecord.getPartitionPath()), combinedValue, operation));
// If combinedValue is oldValue, no need rePut oldRecord
if (!combinedValue.equals(oldValue)) {
HoodieOperation operation = hoodieRecord.getOperation();
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use == instead which is more efficient. Currently the payload clazz has no uniform #equals yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed. please review again.

@hudi-bot
Copy link
Collaborator

hudi-bot commented Mar 2, 2022

CI report:

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

Copy link
Contributor

@nsivabalan nsivabalan left a comment

Choose a reason for hiding this comment

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

LGTM. thanks for the contribution!

@nsivabalan nsivabalan added the priority:medium Moderate impact; usability gaps label Mar 3, 2022
@danny0405 danny0405 changed the title [HUDI-3069] compact improve [HUDI-3069] Improve HoodieMergedLogRecordScanner avoid putting unnecessary hoodie records Mar 7, 2022
@danny0405 danny0405 merged commit 6f57bbf into apache:master Mar 7, 2022
vingov pushed a commit to vingov/hudi that referenced this pull request Apr 3, 2022
…ssary hoodie records (apache#4932)

* log scanner optimization
* payload equals switches to `=`

Co-authored-by: 苏承祥 <[email protected]>
stayrascal pushed a commit to stayrascal/hudi that referenced this pull request Apr 12, 2022
…ssary hoodie records (apache#4932)

* log scanner optimization
* payload equals switches to `=`

Co-authored-by: 苏承祥 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Moderate impact; usability gaps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants