File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
spark/v4.0/spark/src/main/java/org/apache/iceberg/spark Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 92
92
import org .apache .spark .sql .types .LongType ;
93
93
import org .apache .spark .sql .types .StructType ;
94
94
import org .apache .spark .sql .util .CaseInsensitiveStringMap ;
95
+ import org .slf4j .Logger ;
96
+ import org .slf4j .LoggerFactory ;
95
97
import scala .Option ;
96
98
import scala .collection .JavaConverters ;
97
99
import scala .collection .immutable .Seq ;
98
100
99
101
public class Spark3Util {
100
102
103
+ private static final Logger LOG = LoggerFactory .getLogger (Spark3Util .class );
104
+
101
105
private static final Set <String > RESERVED_PROPERTIES =
102
106
ImmutableSet .of (TableCatalog .PROP_LOCATION , TableCatalog .PROP_PROVIDER );
103
107
private static final Joiner DOT = Joiner .on ("." );
@@ -810,6 +814,7 @@ public static CatalogAndIdentifier catalogAndIdentifier(
810
814
try {
811
815
return catalogManager .catalog (catalogName );
812
816
} catch (Exception e ) {
817
+ LOG .info ("Failed to load catalog" , e );
813
818
return null ;
814
819
}
815
820
},
You can’t perform that action at this time.
0 commit comments