File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
wrappers/src/fdw/iceberg_fdw Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -367,16 +367,7 @@ impl ForeignDataWrapper<IcebergFdwError> for IcebergFdw {
367
367
catalog : Option < pg_sys:: Oid > ,
368
368
) -> IcebergFdwResult < ( ) > {
369
369
if let Some ( oid) = catalog {
370
- if oid == FOREIGN_SERVER_RELATION_ID {
371
- // AWS credential pair must be specified together
372
- let a = check_options_contain ( & options, "aws_access_key_id" ) ;
373
- let b = check_options_contain ( & options, "aws_secret_access_key" ) ;
374
- match ( a, b) {
375
- ( a @ Err ( _) , Ok ( _) ) => a. map ( |_| ( ) ) ?,
376
- ( Ok ( _) , b @ Err ( _) ) => b. map ( |_| ( ) ) ?,
377
- _ => ( ) ,
378
- }
379
- } else if oid == FOREIGN_TABLE_RELATION_ID {
370
+ if oid == FOREIGN_TABLE_RELATION_ID {
380
371
// check required option
381
372
check_options_contain ( & options, "table" ) ?;
382
373
}
You can’t perform that action at this time.
0 commit comments