mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Merge pull request #58206 from ClickHouse/fix-error-in-archive-reader
Fix error in archive reader
This commit is contained in:
commit
6eaa17d5a4
@ -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())
|
||||
|
1
tests/queries/0_stateless/02952_archive_parsing.sql
Normal file
1
tests/queries/0_stateless/02952_archive_parsing.sql
Normal file
@ -0,0 +1 @@
|
||||
SELECT * FROM file('::a'); -- { serverError BAD_ARGUMENTS }
|
Loading…
Reference in New Issue
Block a user