@@ -73,6 +73,8 @@ public static class OracleSourceConfig extends AbstractDBSpecificSourceConfig {
7373
7474 public static final String NAME_USE_CONNECTION = "useConnection" ;
7575 public static final String NAME_CONNECTION = "connection" ;
76+ public static final String DEFAULT_ROW_PREFETCH_VALUE = "40" ;
77+ public static final String DEFAULT_BATCH_SIZE = "10" ;
7678
7779 @ Name (NAME_USE_CONNECTION )
7880 @ Nullable
@@ -88,12 +90,12 @@ public static class OracleSourceConfig extends AbstractDBSpecificSourceConfig {
8890 @ Name (OracleConstants .DEFAULT_BATCH_VALUE )
8991 @ Description ("The default batch value that triggers an execution request." )
9092 @ Nullable
91- public Integer defaultBatchValue ;
93+ private Integer defaultBatchValue ;
9294
9395 @ Name (OracleConstants .DEFAULT_ROW_PREFETCH )
9496 @ Description ("The default number of rows to prefetch from the server." )
9597 @ Nullable
96- public Integer defaultRowPrefetch ;
98+ private Integer defaultRowPrefetch ;
9799
98100 @ Override
99101 public String getConnectionString () {
@@ -111,9 +113,12 @@ public String getConnectionString() {
111113 @ Override
112114 protected Map <String , String > getDBSpecificArguments () {
113115 ImmutableMap .Builder <String , String > builder = ImmutableMap .builder ();
114-
115- builder .put (OracleConstants .DEFAULT_BATCH_VALUE , String .valueOf (defaultBatchValue ));
116- builder .put (OracleConstants .DEFAULT_ROW_PREFETCH , String .valueOf (defaultRowPrefetch ));
116+ if (defaultBatchValue != null ) {
117+ builder .put (OracleConstants .DEFAULT_BATCH_VALUE , String .valueOf (defaultBatchValue ));
118+ }
119+ if (defaultRowPrefetch != null ) {
120+ builder .put (OracleConstants .DEFAULT_ROW_PREFETCH , String .valueOf (defaultRowPrefetch ));
121+ }
117122
118123 return builder .build ();
119124 }
0 commit comments