@@ -363,7 +363,7 @@ final long load(Options options) throws ClickHouseException, SQLException {
363
363
.hasOption (ClickHouseClientOption .FORMAT )) {
364
364
format = defaultFormat .defaultInputFormat ();
365
365
}
366
- try (PreparedStatement stmt = conn .prepareStatement (options .query + " format " + format .name ())) {
366
+ try (PreparedStatement stmt = conn .prepareStatement (options .query + " format " + format .name ())) { // NOSONAR
367
367
stmt .setObject (1 , new File (options .file ));
368
368
rows = stmt .executeLargeUpdate ();
369
369
}
@@ -393,7 +393,7 @@ final long read(Options options) throws ClickHouseException, SQLException {
393
393
try (ResultSet rs = stmt .executeQuery (options .query )) {
394
394
try {
395
395
rs .unwrap (ClickHouseResponse .class ).getInputStream ()
396
- .setCopyToTarget (new FileOutputStream (options .file , false ));
396
+ .setCopyToTarget (new FileOutputStream (options .file , false )); // NOSONAR
397
397
} catch (IOException e ) {
398
398
throw SqlExceptionUtils .clientError (e );
399
399
}
@@ -409,7 +409,7 @@ final long read(Options options) throws ClickHouseException, SQLException {
409
409
}
410
410
try (ClickHouseResponse response = request .executeAndWait ()) {
411
411
try {
412
- response .getInputStream ().setCopyToTarget (new FileOutputStream (options .file , false ));
412
+ response .getInputStream ().setCopyToTarget (new FileOutputStream (options .file , false )); // NOSONAR
413
413
} catch (IOException e ) {
414
414
throw ClickHouseException .of (e , server );
415
415
}
0 commit comments