Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen committed Dec 24, 2024
1 parent 1b3aab1 commit abc56fd
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ public S3TableValuedFunction(Map<String, String> properties) throws AnalysisExce
final boolean isAzureTvf = AzureProperties.checkAzureProviderPropertyExist(properties);
// Azure could run without region
if (isAzureTvf) {
// We have to copy properties because the map is immutable
properties = Maps.newHashMap(properties);
properties.put(S3Properties.REGION, "DUMMY-REGION");
try {
properties.put(S3Properties.REGION, "DUMMY-REGION");
} catch (UnsupportedOperationException e) {
// copy properties if the map is immutable
properties = Maps.newHashMap(properties);
properties.put(S3Properties.REGION, "DUMMY-REGION");
}
}
// 1. analyze common properties
Map<String, String> otherProps = super.parseCommonProperties(properties);
Expand Down

0 comments on commit abc56fd

Please sign in to comment.