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

Rename File format related classes to be agnostic of S3 #37442

Merged
merged 4 commits into from
Apr 20, 2024

Conversation

gisripa
Copy link
Contributor

@gisripa gisripa commented Apr 19, 2024

What

Renaming classes which are agnostic to S3.

Review guide

  • Rename S3Format to FileUploadFormat
  • Rename related factories and config builders
  • Remove unnecessary S3 config injection into ParquetSerializedBuffer

User Impact

No Functional changes

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@gisripa gisripa requested a review from a team as a code owner April 19, 2024 19:15
Copy link

vercel bot commented Apr 19, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Apr 20, 2024 0:09am

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Apr 19, 2024
@@ -46,7 +47,7 @@ private val logger = KotlinLogging.logger {}
* data will be buffered in such a hadoop file.
*/
class ParquetSerializedBuffer(
config: S3DestinationConfig,
uploadFormatConfig: UploadFormatConfig,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the main change, decoupling ParquetBuffer from S3 bucket configs. Rest all are renames.

@@ -46,7 +46,7 @@ class GcsParquetWriter(

init {
val outputFilename: String =
BaseGcsWriter.Companion.getOutputFilename(uploadTimestamp, S3Format.PARQUET)
BaseGcsWriter.Companion.getOutputFilename(uploadTimestamp, FileUploadFormat.PARQUET)
outputPath = java.lang.String.join("/", outputPrefix, outputFilename)
LOGGER.info(
"Storage path for stream '{}': {}/{}",
Copy link
Contributor

Choose a reason for hiding this comment

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

This whole class and the one above look suspicious. This init seems to be doing the same thing except for odd differences, like using an s3:// address here.... I'm definitely in need of understanding those thing better...

Copy link
Contributor

Choose a reason for hiding this comment

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

(just to be clear, I understand that this came from the autoformatting, so I'm not expecting any changes from you)

@gisripa gisripa requested a review from a team as a code owner April 19, 2024 23:54
@gisripa gisripa enabled auto-merge (squash) April 19, 2024 23:55
@gisripa gisripa merged commit f493c7b into master Apr 20, 2024
30 checks passed
@gisripa gisripa deleted the gireesh/s3-cdk-renames branch April 20, 2024 00:09
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.

4 participants