File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
airbyte-cdk/bulk/toolkits/extract-jdbc/src/main/kotlin/io/airbyte/cdk/read
airbyte-integrations/connectors/source-postgres Expand file tree Collapse file tree 3 files changed +7
-1
lines changed 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
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,6 +94,7 @@ class JdbcSelectQuerier(
9494 /* * Initializes a connection and readies the resultset. */
9595 fun initQueryExecution () {
9696 conn = jdbcConnectionFactory.get()
97+ conn?.autoCommit = false // TEMP
9798 stmt = conn!! .prepareStatement(q.sql)
9899 parameters.statementFetchSize?.let { fetchSize: Int ->
99100 log.info { " Setting Statement fetchSize to $fetchSize ." }
Original file line number Diff line number Diff line change 2828 - language:java
2929 connectorBuildOptions :
3030 baseImage : docker.io/airbyte/java-connector-base:2.0.1@sha256:ec89bd1a89e825514dd2fc8730ba299a3ae1544580a078df0e35c5202c2085b3
31+ connectorIPCOptions :
32+ dataChannel :
33+ version : " 0.0.1"
34+ supportedSerialization : ["JSONL", "PROTOBUF"]
35+ supportedTransport : ["SOCKET", "STDIO"]
3136 connectorTestSuitesOptions :
3237 - suite : unitTests
3338 - suite : integrationTests
You can’t perform that action at this time.
0 commit comments