Skip to content

Commit

Permalink
Fix S3 table function does not work for pre-signed URL
Browse files Browse the repository at this point in the history
  • Loading branch information
xiedeyantu committed Jul 26, 2023
1 parent 4bb9530 commit 89f2e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TableFunctions/TableFunctionS3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void TableFunctionS3::parseArgumentsImpl(ASTs & args, const ContextPtr & context
configuration.keys = {configuration.url.key};

if (configuration.format == "auto")
configuration.format = FormatFactory::instance().getFormatFromFileName(configuration.url.uri.getPath(), true);
configuration.format = FormatFactory::instance().getFormatFromFileName(Poco::URI(configuration.url.uri.getPath()).getPath(), true);
}

void TableFunctionS3::parseArguments(const ASTPtr & ast_function, ContextPtr context)
Expand Down

0 comments on commit 89f2e8c

Please sign in to comment.