Update src/Storages/StorageURL.cpp

Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
This commit is contained in:
Frank Chen 2022-08-26 10:34:46 +08:00 committed by GitHub
parent ef49cacefe
commit 2e874b384d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ IStorageURLBase::IStorageURLBase(
ASTPtr partition_by_)
: IStorage(table_id_)
, uri(uri_)
, compression_method(chooseCompressionMethod(uri_, compression_method_))
, compression_method(chooseCompressionMethod(Poco::URI(uri_).getPath(), compression_method_))
, format_name(format_name_)
, format_settings(format_settings_)
, headers(headers_)