aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/providers/common/udf_resolve/yql_outproc_udf_resolver.h
blob: 35116a1af1f1b23b052a55662d1f11e321c97540 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include <yql/essentials/core/yql_udf_resolver.h>
#include <yql/essentials/core/file_storage/file_storage.h>
#include <yql/essentials/minikql/mkql_function_registry.h>
#include <yql/essentials/providers/common/proto/udf_resolver.pb.h>

#include <util/generic/map.h>
#include <util/generic/string.h>

namespace NYql {
namespace NCommon {

void LoadSystemModulePaths(
        const TString& resolverPath,
        const TString& dir,
        NKikimr::NMiniKQL::TUdfModulePathsMap* paths);

IUdfResolver::TPtr CreateOutProcUdfResolver(
    const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
    const TFileStoragePtr& fileStorage,
    const TString& resolverPath,
    const TString& user,
    const TString& group,
    bool filterSysCalls,
    const TString& udfDependencyStubPath,
    const TMap<TString, TString>& path2md5 = {});

} // namespace NCommon
} // namespace NYql