mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
fix
This commit is contained in:
parent
d2b8dd3ae9
commit
528fa9ae04
@ -109,10 +109,9 @@ StorageS3Queue::StorageS3Queue(
|
||||
, distributed_processing(distributed_processing_)
|
||||
, format_settings(format_settings_)
|
||||
, partition_by(partition_by_)
|
||||
, is_key_with_globs(s3_configuration.url.key.find_first_of("*?{") != std::string::npos)
|
||||
, log(&Poco::Logger::get("StorageS3Queue (" + table_id_.table_name + ")"))
|
||||
{
|
||||
if (!is_key_with_globs)
|
||||
if (!withGlobs())
|
||||
{
|
||||
throw Exception(ErrorCodes::QUERY_NOT_ALLOWED, "S3Queue engine can read only from url with globs");
|
||||
}
|
||||
|
@ -95,9 +95,9 @@ private:
|
||||
const bool distributed_processing;
|
||||
std::optional<FormatSettings> format_settings;
|
||||
ASTPtr partition_by;
|
||||
bool is_key_with_globs = false;
|
||||
|
||||
bool supportsSubcolumns() const override;
|
||||
bool withGlobs() const { return s3_configuration.url.key.find_first_of("*?{") != std::string::npos; }
|
||||
|
||||
void threadFunc();
|
||||
size_t getTableDependentCount() const;
|
||||
|
Loading…
Reference in New Issue
Block a user