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

Allow String key type to transform SMB sources with CharSequence key #5297

Merged
merged 5 commits into from
Mar 18, 2024

Conversation

clairemcginty
Copy link
Contributor

@clairemcginty clairemcginty commented Mar 12, 2024

extension of #5291 for transforms.

+ adds support for sources with multiple partitions, where some partitions have CharSequence key and some have String key

( 🤦‍♀️ )

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.66%. Comparing base (40c900b) to head (7b5abad).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5297      +/-   ##
==========================================
- Coverage   62.67%   62.66%   -0.01%     
==========================================
  Files         301      301              
  Lines       10844    10844              
  Branches      749      749              
==========================================
- Hits         6796     6795       -1     
- Misses       4048     4049       +1     

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

@@ -403,11 +403,9 @@ private <MetadataT extends BucketMetadata> boolean isIntraPartitionCompatibleWit
final Class<? extends BucketMetadata> otherClass = other.getClass();
final Set<Class<? extends BucketMetadata>> compatibleTypes = compatibleMetadataTypes();

if (compatibleTypes.isEmpty() && other.getClass() != this.getClass()) {
return false;
} else if (this.getKeyClass() != other.getKeyClass()
Copy link
Contributor Author

@clairemcginty clairemcginty Mar 12, 2024

Choose a reason for hiding this comment

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

this check was not correct; it should have been comparing the metadata class itself.

Added an assertion in AvroBucketMetadataTest for this

@clairemcginty clairemcginty merged commit 67abe4a into main Mar 18, 2024
11 checks passed
@clairemcginty clairemcginty deleted the scio-smb-transform-key branch March 18, 2024 14:22
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