File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
ice/src/main/java/com/altinity/ice/cli Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 2727import java .util .HashSet ;
2828import java .util .List ;
2929import java .util .Scanner ;
30+ import java .util .stream .Collectors ;
3031import org .apache .iceberg .catalog .TableIdentifier ;
3132import org .apache .iceberg .rest .RESTCatalog ;
3233import org .slf4j .Logger ;
@@ -370,7 +371,18 @@ void deleteTable(
370371 private RESTCatalog loadCatalog (String configFile ) throws IOException {
371372 Config config = Config .load (configFile );
372373 RESTCatalog catalog = new RESTCatalog ();
373- catalog .initialize ("default" , config .toIcebergConfig ());
374+ var icebergConfig = config .toIcebergConfig ();
375+ logger .debug (
376+ "Iceberg configuration: {}" ,
377+ icebergConfig .entrySet ().stream ()
378+ .map (
379+ e ->
380+ !e .getKey ().contains ("key" ) && !e .getKey ().contains ("authorization" )
381+ ? e .getKey () + "=" + e .getValue ()
382+ : e .getKey ())
383+ .sorted ()
384+ .collect (Collectors .joining (", " )));
385+ catalog .initialize ("default" , icebergConfig );
374386 return catalog ;
375387 }
376388
You can’t perform that action at this time.
0 commit comments