mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fixed some bugs
This commit is contained in:
parent
a54df54405
commit
886603d625
@ -30,16 +30,11 @@ public:
|
||||
|
||||
bool isDataLakeConfiguration() const override { return true; }
|
||||
|
||||
bool isStaticConfiguration() const override { return false; }
|
||||
|
||||
std::string getEngineName() const override { return DataLakeMetadata::name; }
|
||||
|
||||
void update(ObjectStoragePtr object_storage, ContextPtr local_context, bool update_base) override
|
||||
void update(ObjectStoragePtr object_storage, ContextPtr local_context) override
|
||||
{
|
||||
if (update_base)
|
||||
{
|
||||
BaseStorageConfiguratixon::update(object_storage, local_context);
|
||||
}
|
||||
BaseStorageConfiguration::update(object_storage, local_context);
|
||||
auto new_metadata = DataLakeMetadata::create(object_storage, weak_from_this(), local_context);
|
||||
if (current_metadata && *current_metadata == *new_metadata)
|
||||
return;
|
||||
|
@ -166,7 +166,7 @@ bool StorageObjectStorage::supportsSubsetOfColumns(const ContextPtr & context) c
|
||||
return FormatFactory::instance().checkIfFormatSupportsSubsetOfColumns(configuration->format, context, format_settings);
|
||||
}
|
||||
|
||||
void StorageObjectStorage::Configuration::update(ObjectStoragePtr object_storage_ptr, ContextPtr context, [[maybe_unused]] bool update_base)
|
||||
void StorageObjectStorage::Configuration::update(ObjectStoragePtr object_storage_ptr, ContextPtr context)
|
||||
{
|
||||
IObjectStorage::ApplyNewSettingsOptions options{.allow_client_change = !isStaticConfiguration()};
|
||||
object_storage_ptr->applyNewSettings(context->getConfigRef(), getTypeName() + ".", context, options);
|
||||
@ -309,7 +309,7 @@ void StorageObjectStorage::read(
|
||||
size_t max_block_size,
|
||||
size_t num_streams)
|
||||
{
|
||||
configuration->update(object_storage, local_context, true);
|
||||
configuration->update(object_storage, local_context);
|
||||
printConfiguration(local_context->getConfigRef(), "Select query");
|
||||
if (partition_by && configuration->withPartitionWildcard())
|
||||
{
|
||||
|
@ -862,9 +862,9 @@ def test_restart_broken_s3(started_cluster):
|
||||
|
||||
instance.restart_clickhouse()
|
||||
|
||||
# assert "NoSuchBucket" in instance.query_and_get_error(
|
||||
# f"SELECT count() FROM {TABLE_NAME}"
|
||||
# )
|
||||
assert "NoSuchBucket" in instance.query_and_get_error(
|
||||
f"SELECT count() FROM {TABLE_NAME}"
|
||||
)
|
||||
|
||||
time.sleep(10)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user