-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pnilan/p1-fix-backoff-retry-with-auth
- Loading branch information
Showing
113 changed files
with
14,877 additions
and
3,526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 0 additions & 64 deletions
64
airbyte-cdk/bulk/core/load/src/main/kotlin/io/airbyte/cdk/load/file/LocalFile.kt
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
airbyte-cdk/bulk/core/load/src/main/kotlin/io/airbyte/cdk/load/file/SpillFileProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.cdk.load.file | ||
|
||
import io.airbyte.cdk.load.command.DestinationConfiguration | ||
import io.micronaut.context.annotation.Secondary | ||
import jakarta.inject.Singleton | ||
import java.nio.file.Files | ||
import java.nio.file.Path | ||
|
||
interface SpillFileProvider { | ||
fun createTempFile(): Path | ||
} | ||
|
||
@Singleton | ||
@Secondary | ||
class DefaultSpillFileProvider(val config: DestinationConfiguration) : SpillFileProvider { | ||
override fun createTempFile(): Path { | ||
val directory = config.tmpFileDirectory | ||
Files.createDirectories(directory) | ||
return Files.createTempFile(directory, "staged-raw-records", "jsonl") | ||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
airbyte-cdk/bulk/core/load/src/main/kotlin/io/airbyte/cdk/load/file/TempFileProvider.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
airbyte-cdk/bulk/core/load/src/main/kotlin/io/airbyte/cdk/load/util/InputStreamUtil.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.cdk.load.util | ||
|
||
import java.io.InputStream | ||
|
||
fun InputStream.lineSequence(): Sequence<String> = bufferedReader(Charsets.UTF_8).lineSequence() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 0 additions & 70 deletions
70
airbyte-cdk/bulk/core/load/src/test/kotlin/io/airbyte/cdk/load/file/MockTempFileProvider.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.