88import java .util .*;
99import java .util .concurrent .*;
1010import java .util .zip .GZIPOutputStream ;
11-
1211import org .embulk .output .jdbc .BatchInsert ;
1312import org .embulk .output .jdbc .JdbcOutputConnector ;
1413import org .embulk .output .jdbc .JdbcSchema ;
@@ -42,11 +41,11 @@ public class SnowflakeCopyBatchInsert implements BatchInsert {
4241 private boolean emptyFieldAsNull ;
4342
4443 public SnowflakeCopyBatchInsert (
45- JdbcOutputConnector connector ,
46- StageIdentifier stageIdentifier ,
47- boolean deleteStageFile ,
48- int maxUploadRetries ,
49- boolean emptyFieldAsNull )
44+ JdbcOutputConnector connector ,
45+ StageIdentifier stageIdentifier ,
46+ boolean deleteStageFile ,
47+ int maxUploadRetries ,
48+ boolean emptyFieldAsNull )
5049 throws IOException {
5150 this .index = 0 ;
5251 openNewFile ();
@@ -399,7 +398,8 @@ private class CopyTask implements Callable<Void> {
399398 private final String snowflakeStageFileName ;
400399 private final boolean emptyFieldAsNull ;
401400
402- public CopyTask (Future <Void > uploadFuture , String snowflakeStageFileName , boolean emptyFieldAsNull ) {
401+ public CopyTask (
402+ Future <Void > uploadFuture , String snowflakeStageFileName , boolean emptyFieldAsNull ) {
403403 this .uploadFuture = uploadFuture ;
404404 this .snowflakeStageFileName = snowflakeStageFileName ;
405405 this .emptyFieldAsNull = emptyFieldAsNull ;
@@ -414,7 +414,12 @@ public Void call() throws SQLException, InterruptedException, ExecutionException
414414 logger .info ("Running COPY from file {}" , snowflakeStageFileName );
415415
416416 long startTime = System .currentTimeMillis ();
417- con .runCopy (tableIdentifier , stageIdentifier , snowflakeStageFileName , delimiterString , emptyFieldAsNull );
417+ con .runCopy (
418+ tableIdentifier ,
419+ stageIdentifier ,
420+ snowflakeStageFileName ,
421+ delimiterString ,
422+ emptyFieldAsNull );
418423
419424 double seconds = (System .currentTimeMillis () - startTime ) / 1000.0 ;
420425
0 commit comments