2021-09-07 23:55:17 +00:00
|
|
|
#include "UserDefinedExecutableFunction.h"
|
|
|
|
|
|
|
|
#include <Functions/IFunction.h>
|
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionHelpers.h>
|
|
|
|
|
|
|
|
#include <DataStreams/ShellCommandSource.h>
|
|
|
|
#include <DataStreams/formatBlock.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
UserDefinedExecutableFunction::UserDefinedExecutableFunction(
|
|
|
|
const Config & config_,
|
2021-09-09 13:47:48 +00:00
|
|
|
std::shared_ptr<scope_guard> function_deregister_,
|
2021-09-07 23:55:17 +00:00
|
|
|
const ExternalLoadableLifetime & lifetime_)
|
|
|
|
: config(config_)
|
2021-09-09 13:47:48 +00:00
|
|
|
, function_deregister(std::move(function_deregister_))
|
2021-09-07 23:55:17 +00:00
|
|
|
, lifetime(lifetime_)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|