mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
fac1be9700
- This commit restores statements "SYSTEM RELOAD MODEL(S)" which provide a mechanism to update a model explicitly. It also saves potentially unnecessary reloads of a model from disk after it's initial load. To keep the complexity low, the semantics of "SYSTEM RELOAD MODEL(S) was changed from eager to lazy. This means that both statements previously immedately reloaded the specified/all models, whereas now the statements only trigger an unload and the first call to catboostEvaluate() does the actual load. - Monitoring view SYSTEM.MODELS is also restored but with some obsolete fields removed. The view was not documented in the past and for now it remains undocumented. The commit is thus not considered a breach of ClickHouse's public interface.
21 lines
484 B
C++
21 lines
484 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <base/types.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Details about external machine learning model, used by clickhouse-server and clickhouse-library-bridge
|
|
struct ExternalModelInfo
|
|
{
|
|
String model_path;
|
|
String model_type;
|
|
std::chrono::system_clock::time_point loading_start_time; /// serialized as std::time_t
|
|
std::chrono::milliseconds loading_duration; /// serialized as UInt64
|
|
};
|
|
|
|
using ExternalModelInfos = std::vector<ExternalModelInfo>;
|
|
|
|
}
|