Skip to content

Commit ee48917

Browse files
committed
sanity
1 parent 4699651 commit ee48917

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

airbyte-cdk/bulk/core/extract/src/main/kotlin/io/airbyte/cdk/discover/Field.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ interface LosslessFieldType : FieldType {
4646

4747
interface DataField : DataOrMetaField
4848

49-
/*@Deprecated(
49+
@Deprecated(
5050
message = "Use `EmittedField` directly instead.",
5151
replaceWith = ReplaceWith("EmittedField")
52-
)*/ //TEMP
52+
)
5353
typealias Field = EmittedField
5454
/**
5555
* Internal equivalent of [io.airbyte.protocol.models.Field] for values which come from the source

airbyte-cdk/bulk/toolkits/extract-jdbc/src/main/kotlin/io/airbyte/cdk/jdbc/DefaultJdbcConstants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ data class DefaultJdbcConstants(
5757
internal const val FIELD_OVERHEAD_BYTES = 16L
5858
// We're targeting use of 60% of the available memory in order to allow
5959
// for some headroom for other garbage collection.
60-
internal const val MEM_CAPACITY_RATIO: Double = 0.2
60+
internal const val MEM_CAPACITY_RATIO: Double = 0.6
6161
}
6262
}

airbyte-cdk/bulk/toolkits/extract-jdbc/src/main/kotlin/io/airbyte/cdk/read/JdbcPartitionsCreator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class JdbcConcurrentPartitionsCreator<
227227
}
228228
val rowByteSizeSample: Sample<Long> = sample.map { (_, rowByteSize: Long) -> rowByteSize }
229229
streamState.fetchSize = sharedState.jdbcFetchSizeEstimator().apply(rowByteSizeSample)
230-
val expectedTableByteSize: Long = /*rowByteSizeSample.sampledValues.sum() * sample.valueWeight*/ 1_000L * 1_000 * 1_000 * 1_000 // TEMP
230+
val expectedTableByteSize: Long = rowByteSizeSample.sampledValues.sum() * sample.valueWeight /*1_000L * 1_000 * 1_000 * 1_000*/ // TEMP
231231
log.info { "Table memory size estimated at ${expectedTableByteSize shr 20} MiB." }
232232
// Handle edge case where the table can't be split.
233233
if (partition !is JdbcSplittablePartition<*>) {

airbyte-cdk/bulk/toolkits/extract-jdbc/src/main/kotlin/io/airbyte/cdk/read/SelectQuerier.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class JdbcSelectQuerier(
9494
/** Initializes a connection and readies the resultset. */
9595
fun initQueryExecution() {
9696
conn = jdbcConnectionFactory.get()
97-
conn?.autoCommit = false // TEMP
97+
// conn?.autoCommit = false // TEMP
9898
stmt = conn!!.prepareStatement(q.sql)
9999
parameters.statementFetchSize?.let { fetchSize: Int ->
100100
log.info { "Setting Statement fetchSize to $fetchSize." }

airbyte-integrations/connectors/source-postgres/src/main/kotlin/io/airbyte/integrations/source/postgres/PostgresSourceJdbcV2CompatibilityStreamStateValue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ data class PostgresSourceJdbcV2CompatibilityStreamStateValue(
5151
cursorField,
5252
incrementalState.cursorValue!!.asText()
5353
)
54-
) // TEMP
54+
) // TODO: check here
5555
}
5656
else -> mapOf()
5757
}

0 commit comments

Comments
 (0)