bulk-cdk-core-base: optimized record serialization (#44880)
This commit is contained in:
@@ -3,7 +3,7 @@ package io.airbyte.cdk.read
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode
|
||||
import com.fasterxml.jackson.databind.node.ArrayNode
|
||||
import io.airbyte.cdk.TestClockFactory
|
||||
import io.airbyte.cdk.ClockFactory
|
||||
import io.airbyte.cdk.command.OpaqueStateValue
|
||||
import io.airbyte.cdk.output.BufferingOutputConsumer
|
||||
import io.airbyte.cdk.util.Jsons
|
||||
@@ -109,7 +109,7 @@ class RootReaderIntegrationTest {
|
||||
fun testAllStreamsNonGlobal() {
|
||||
val stateManager =
|
||||
StateManager(initialStreamStates = testCases.associate { it.stream to null })
|
||||
val testOutputConsumer = BufferingOutputConsumer(TestClockFactory().fixed())
|
||||
val testOutputConsumer = BufferingOutputConsumer(ClockFactory().fixed())
|
||||
val rootReader =
|
||||
RootReader(
|
||||
stateManager,
|
||||
@@ -152,7 +152,7 @@ class RootReaderIntegrationTest {
|
||||
initialGlobalState = null,
|
||||
initialStreamStates = testCases.associate { it.stream to null },
|
||||
)
|
||||
val testOutputConsumer = BufferingOutputConsumer(TestClockFactory().fixed())
|
||||
val testOutputConsumer = BufferingOutputConsumer(ClockFactory().fixed())
|
||||
val rootReader =
|
||||
RootReader(
|
||||
stateManager,
|
||||
@@ -216,7 +216,7 @@ data class TestCase(
|
||||
)
|
||||
|
||||
fun run() {
|
||||
val testOutputConsumer = BufferingOutputConsumer(TestClockFactory().fixed())
|
||||
val testOutputConsumer = BufferingOutputConsumer(ClockFactory().fixed())
|
||||
val rootReader =
|
||||
RootReader(
|
||||
StateManager(initialStreamStates = mapOf(stream to null)),
|
||||
|
||||
Reference in New Issue
Block a user