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

Implement hashCode() and equals() for FileOperations subclasses #5265

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

clairemcginty
Copy link
Contributor

Non-consistent equals() seems to be an issue for FlinkRunner.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (4a19ad6) 62.72% compared to head (6e15fdb) 62.73%.
Report is 1 commits behind head on main.

Files Patch % Lines
...sdk/extensions/smb/ParquetTypeFileOperations.scala 75.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5265   +/-   ##
=======================================
  Coverage   62.72%   62.73%           
=======================================
  Files         301      301           
  Lines       10851    10859    +8     
  Branches      754      763    +9     
=======================================
+ Hits         6806     6812    +6     
- Misses       4045     4047    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}
final AvroFileOperations<ValueT> that = (AvroFileOperations<ValueT>) obj;
return that.getSchema().equals(this.getSchema())
&& that.codec.getCodec().toString().equals(this.codec.getCodec().toString())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Context: CodecFactory has a specialized override of toString that prints the codec type.

@clairemcginty clairemcginty merged commit dddda57 into main Feb 21, 2024
11 checks passed
@clairemcginty clairemcginty deleted the smb-fileops-eq-hashcode branch February 21, 2024 15:18
clairemcginty added a commit that referenced this pull request Feb 23, 2024
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.

2 participants