Skip to content

Commit f040e05

Browse files
committed
sanity
1 parent ee48917 commit f040e05

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class JdbcSelectQuerier(
9494
/** Initializes a connection and readies the resultset. */
9595
fun initQueryExecution() {
9696
conn = jdbcConnectionFactory.get()
97-
// conn?.autoCommit = false // TEMP
9897
stmt = conn!!.prepareStatement(q.sql)
9998
parameters.statementFetchSize?.let { fetchSize: Int ->
10099
log.info { "Setting Statement fetchSize to $fetchSize." }
@@ -143,7 +142,7 @@ class JdbcSelectQuerier(
143142
val jdbcFieldType: JdbcFieldType<*> = column.type as JdbcFieldType<*>
144143
try {
145144
if (column is NonEmittedField) {
146-
@Suppress("UNCHECKED_CAST")
145+
@Suppress("UNCHECKED_CAST") // TODO: See if we can avoid an unchecked cast
147146
resultRow.nonEmittedData[column.id] =
148147
FieldValueEncoder(
149148
jdbcFieldType.jdbcGetter.get(rs!!, colIdx),

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-
) // TODO: check here
54+
)
5555
}
5656
else -> mapOf()
5757
}

0 commit comments

Comments
 (0)