mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
Correct merge
This commit is contained in:
parent
f8696aa010
commit
eb9d5705a9
@ -2,6 +2,7 @@
|
|||||||
#include <Databases/Iceberg/StorageCredentials.h>
|
#include <Databases/Iceberg/StorageCredentials.h>
|
||||||
|
|
||||||
#include <base/find_symbols.h>
|
#include <base/find_symbols.h>
|
||||||
|
#include <Core/Settings.h>
|
||||||
#include <Common/escapeForFileName.h>
|
#include <Common/escapeForFileName.h>
|
||||||
#include <Common/threadPoolCallbackRunner.h>
|
#include <Common/threadPoolCallbackRunner.h>
|
||||||
#include <Common/Base64.h>
|
#include <Common/Base64.h>
|
||||||
@ -27,6 +28,11 @@ namespace DB::ErrorCodes
|
|||||||
extern const int NOT_IMPLEMENTED;
|
extern const int NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace DB::Setting
|
||||||
|
{
|
||||||
|
extern const SettingsBool iceberg_engine_ignore_schema_evolution;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Iceberg
|
namespace Iceberg
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -571,8 +577,11 @@ bool RestCatalog::getTableMetadataImpl(
|
|||||||
|
|
||||||
if (result.requiresSchema())
|
if (result.requiresSchema())
|
||||||
{
|
{
|
||||||
|
const auto & settings = getContext()->getSettingsRef();
|
||||||
int format_version = metadata_object->getValue<int>("format-version");
|
int format_version = metadata_object->getValue<int>("format-version");
|
||||||
result.setSchema(DB::IcebergMetadata::parseTableSchema(metadata_object, format_version, true).first);
|
auto schema = DB::IcebergMetadata::parseTableSchema(
|
||||||
|
metadata_object, log, format_version, settings[DB::Setting::iceberg_engine_ignore_schema_evolution]).first;
|
||||||
|
result.setSchema(schema);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.requiresCredentials() && object->has("config"))
|
if (result.requiresCredentials() && object->has("config"))
|
||||||
|
@ -1077,8 +1077,6 @@ public:
|
|||||||
void clearMarkCache() const;
|
void clearMarkCache() const;
|
||||||
ThreadPool & getLoadMarksThreadpool() const;
|
ThreadPool & getLoadMarksThreadpool() const;
|
||||||
|
|
||||||
ThreadPool & getIcebergCatalogThreadpool() const;
|
|
||||||
|
|
||||||
void setPrimaryIndexCache(const String & cache_policy, size_t max_cache_size_in_bytes, double size_ratio);
|
void setPrimaryIndexCache(const String & cache_policy, size_t max_cache_size_in_bytes, double size_ratio);
|
||||||
void updatePrimaryIndexCacheConfiguration(const Poco::Util::AbstractConfiguration & config);
|
void updatePrimaryIndexCacheConfiguration(const Poco::Util::AbstractConfiguration & config);
|
||||||
std::shared_ptr<PrimaryIndexCache> getPrimaryIndexCache() const;
|
std::shared_ptr<PrimaryIndexCache> getPrimaryIndexCache() const;
|
||||||
@ -1125,6 +1123,7 @@ public:
|
|||||||
size_t getPrefetchThreadpoolSize() const;
|
size_t getPrefetchThreadpoolSize() const;
|
||||||
|
|
||||||
ThreadPool & getBuildVectorSimilarityIndexThreadPool() const;
|
ThreadPool & getBuildVectorSimilarityIndexThreadPool() const;
|
||||||
|
ThreadPool & getIcebergCatalogThreadpool() const;
|
||||||
|
|
||||||
/// Settings for MergeTree background tasks stored in config.xml
|
/// Settings for MergeTree background tasks stored in config.xml
|
||||||
BackgroundTaskSchedulingSettings getBackgroundProcessingTaskSchedulingSettings() const;
|
BackgroundTaskSchedulingSettings getBackgroundProcessingTaskSchedulingSettings() const;
|
||||||
|
@ -321,7 +321,7 @@ parseTableSchemaV1Method(const Poco::JSON::Object::Ptr & metadata_object, bool i
|
|||||||
return {schema, current_schema_id};
|
return {schema, current_schema_id};
|
||||||
}
|
}
|
||||||
|
|
||||||
std::pair<NamesAndTypesList, Int32> parseTableSchema(
|
std::pair<NamesAndTypesList, Int32> IcebergMetadata::parseTableSchema(
|
||||||
const Poco::JSON::Object::Ptr & metadata_object, LoggerPtr metadata_logger, int format_version, bool ignore_schema_evolution)
|
const Poco::JSON::Object::Ptr & metadata_object, LoggerPtr metadata_logger, int format_version, bool ignore_schema_evolution)
|
||||||
{
|
{
|
||||||
Poco::JSON::Object::Ptr schema;
|
Poco::JSON::Object::Ptr schema;
|
||||||
|
@ -98,6 +98,7 @@ public:
|
|||||||
|
|
||||||
static std::pair<NamesAndTypesList, Int32> parseTableSchema(
|
static std::pair<NamesAndTypesList, Int32> parseTableSchema(
|
||||||
const Poco::JSON::Object::Ptr & metadata_object,
|
const Poco::JSON::Object::Ptr & metadata_object,
|
||||||
|
LoggerPtr metadata_logger,
|
||||||
int format_version,
|
int format_version,
|
||||||
bool ignore_schema_evolution);
|
bool ignore_schema_evolution);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user