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

Destination S3-V2: Bug: Honor path variables in bucket prefix #51039

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

johnny-schmidt
Copy link
Contributor

What

The old CDK honored variables in both the bucket prefix and the path. The documentation is a little ambiguous about this, but it's a reasonable expectation that they should work in both places. This gets parity with the old code.

I'll test against this connection before releasing

I also modified the ambiguous filepath config secret to use this pattern, so there's an IT test case as well as a UTs:

{
...
  "s3_bucket_path": "s3-v2-test/${NAMESPACE}",
...
  "s3_path_format": "${STREAM_NAME}/",
  "file_name_pattern": "very_bad_practice"
}

@johnny-schmidt johnny-schmidt requested a review from a team as a code owner January 10, 2025 18:52
Copy link

vercel bot commented Jan 10, 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 Jan 10, 2025 6:52pm

): String {
val pattern = pathPatternResolved
val selectedPrefix = if (isStaging) stagingPrefix else finalPrefix
val pattern = resolveRetainingTerminalSlash(selectedPrefix, pathPatternResolved)
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be simpler to pass this pattern in instead of passing down a boolean to replicate the branching?

@johnny-schmidt johnny-schmidt merged commit 05b6d0b into master Jan 10, 2025
30 checks passed
@johnny-schmidt johnny-schmidt deleted the jschmidt/s3v2/bug-regex-maybe2 branch January 10, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants