This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new ed4899237ec Refactor InventoryDumper (#32630)
ed4899237ec is described below
commit ed4899237eca97158a7317155bc0e736a64afaed
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Aug 22 16:42:10 2024 +0800
Refactor InventoryDumper (#32630)
---
.../data/pipeline/core/ingest/dumper/inventory/InventoryDumper.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/inventory/InventoryDumper.java
b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/inventory/InventoryDumper.java
index 650713b08e8..a5bca34cbac 100644
---
a/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/inventory/InventoryDumper.java
+++
b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/ingest/dumper/inventory/InventoryDumper.java
@@ -225,8 +225,7 @@ public class InventoryDumper extends
AbstractPipelineLifecycleRunnable implement
return ((DataRecord)
dataRecords.get(index)).getUniqueKeyValue().iterator().next();
}
- private List<Record> dumpPageByPage0(final Connection connection, final
InventoryQueryParameter queryParam,
- final AtomicLong rowCount) throws
SQLException {
+ private List<Record> dumpPageByPage0(final Connection connection, final
InventoryQueryParameter queryParam, final AtomicLong rowCount) throws
SQLException {
DatabaseType databaseType =
dumperContext.getCommonContext().getDataSourceConfig().getDatabaseType();
int batchSize = dumperContext.getBatchSize();
try (PreparedStatement preparedStatement =
JDBCStreamQueryBuilder.build(databaseType, connection,
buildInventoryDumpPageByPageSQL(queryParam))) {