File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -863,7 +863,14 @@ NThreading::TFuture<TTableMetadataResult> TKqpTableMetadataLoader::LoadTableMeta
863
863
864
864
NExternalSource::IExternalSource::TPtr externalSource;
865
865
if (settings.ExternalSourceFactory ) {
866
- externalSource = settings.ExternalSourceFactory ->GetOrCreate (externalDataSourceMetadata.Metadata ->ExternalSource .Type );
866
+ try {
867
+ externalSource = settings.ExternalSourceFactory ->GetOrCreate (externalDataSourceMetadata.Metadata ->ExternalSource .Type );
868
+ } catch (const std::exception& exception) {
869
+ TTableMetadataResult wrapper;
870
+ wrapper.SetException (yexception () << " couldn't get external source with type " << externalDataSourceMetadata.Metadata ->ExternalSource .Type << " , " << exception.what ());
871
+ promise.SetValue (wrapper);
872
+ return ;
873
+ }
867
874
}
868
875
869
876
if (externalSource && externalSource->CanLoadDynamicMetadata ()) {
You can’t perform that action at this time.
0 commit comments