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

Bulk load CDK: DestinationRecord has full DestinationStream #55811

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

edgao
Copy link
Contributor

@edgao edgao commented Mar 17, 2025

pulling this diff out of #55807.

S3DataLakePartitioner has a nontrivial diff; everything else is purely mechanical.

There might be other places where we can do stuff like the partitioner (i.e. instead of storing a map descriptor -> info, get stuff off the stream directly). But I didn't look for them.

(I think we should just leave s3 data lake on local CDK for now :/ since we're about to push some more changes into there anyway)

@edgao edgao requested a review from a team as a code owner March 17, 2025 23:26
Copy link

vercel bot commented Mar 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 5:44pm

@edgao edgao changed the title DestinationRecord has full DestinationStream Bulk load CDK: DestinationRecord has full DestinationStream Mar 17, 2025
Copy link
Contributor

@frifriSF59 frifriSF59 left a comment

Choose a reason for hiding this comment

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

Small nit but LGTM otherwise

?: run {
return abs(random.nextInt()) % numParts
}
return abs(primaryKeyValues.hashCode()) % numParts
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use Math.floorMod for this and skip the MIN_VALUE check?

Copy link
Contributor

Choose a reason for hiding this comment

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

h/t @frifriSF59 🙃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in 6fc5b0c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants