File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
core/extract/src/main/kotlin/io/airbyte/cdk/discover
toolkits/extract-jdbc/src/main/kotlin/io/airbyte/cdk
airbyte-integrations/connectors/source-postgres/src/main/kotlin/io/airbyte/integrations/source/postgres Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ interface LosslessFieldType : FieldType {
4646
4747interface DataField : DataOrMetaField
4848
49- /* @Deprecated(
49+ @Deprecated(
5050 message = " Use `EmittedField` directly instead." ,
5151 replaceWith = ReplaceWith (" EmittedField" )
52- )*/ // TEMP
52+ )
5353typealias Field = EmittedField
5454/* *
5555 * Internal equivalent of [io.airbyte.protocol.models.Field] for values which come from the source
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 <* >) {
Original file line number Diff line number Diff 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 ." }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments