Skip to content

Commit

Permalink
[fix](tvf) fix azure tvf: can not build s3()
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen committed Dec 24, 2024
1 parent 8e09e1b commit 364e0a1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ public class S3TableValuedFunction extends ExternalFileTableValuedFunction {

public S3TableValuedFunction(Map<String, String> properties) throws AnalysisException {
final boolean isAzureTvf = AzureProperties.checkAzureProviderPropertyExist(properties);
// Azure could run without region
if (isAzureTvf) {
properties.put(S3Properties.REGION, "DUMMY-REGION");
}
// For Azure, the REGION in S3 properties is ignored
// However, we can't modify properties because the map is immutable

// 1. analyze common properties
Map<String, String> otherProps = super.parseCommonProperties(properties);

Expand Down

0 comments on commit 364e0a1

Please sign in to comment.