-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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-8786] Running intellij code cleanup #12524
base: master
Are you sure you want to change the base?
Conversation
- On top, fixed to make checkstyle happy
e39adf3
to
e180b9e
Compare
...rc/main/java/org/apache/hudi/common/table/read/HoodiePositionBasedFileGroupRecordBuffer.java
Show resolved
Hide resolved
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/AsyncClusteringService.java
Outdated
Show resolved
Hide resolved
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/HoodieAsyncService.java
Outdated
Show resolved
Hide resolved
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/async/AsyncClusteringService.java
Outdated
Show resolved
Hide resolved
@@ -33,9 +33,9 @@ public class WorkloadStat implements Serializable { | |||
|
|||
private long numUpdates = 0L; | |||
|
|||
private HashMap<String, Pair<String, Long>> insertLocationToCount; | |||
private final HashMap<String, Pair<String, Long>> insertLocationToCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, for Java serialization and deserialization to work in Spark, these member variables cannot be final.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for any class that already has final variables, it is safe to add additional final
variables. Otherwise, we need to be careful around the Serializable
.
.setBootstrapFilePath(slice.getBaseFile().map(bf -> bf.getBootstrapBaseFile().map(bbf -> bbf.getPath()).orElse(StringUtils.EMPTY_STRING)).orElse(StringUtils.EMPTY_STRING)) | ||
.build()).collect(Collectors.toList()); | ||
return slices.stream().map(slice -> { | ||
new HoodieSliceInfo(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont follow. checkstyle was failing due to bad indentation.
Change Logs
final
modified added as needed.toString()
All the changes are auto generated.
Impact
None
Risk level (write none, low medium or high below)
low
Documentation Update
none
Contributor's checklist