Merge pull request #58206 from ClickHouse/fix-error-in-archive-reader

Fix error in archive reader
This commit is contained in:
Alexey Milovidov 2023-12-24 12:32:49 +01:00 committed by GitHub
commit 6eaa17d5a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View File

@ -1935,7 +1935,7 @@ void StorageFile::parseFileSource(String source, String & filename, String & pat
}
std::string_view path_to_archive_view = std::string_view{source}.substr(0, pos);
while (path_to_archive_view.back() == ' ')
while (path_to_archive_view.ends_with(' '))
path_to_archive_view.remove_suffix(1);
if (path_to_archive_view.empty())

View File

@ -0,0 +1 @@
SELECT * FROM file('::a'); -- { serverError BAD_ARGUMENTS }