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
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include "as_json_node.h"
#include "compile_path.h"
#include "parse.h"
#include "serialize.h"
#include "sql_exists.h"
#include "sql_query.h"
#include "sql_value.h"
#include <yql/essentials/public/udf/udf_helpers.h>
namespace NJson2Udf {
SIMPLE_MODULE(TJson2Module,
TParse,
TSerialize<EDataSlot::Json>,
TSerialize<EDataSlot::JsonDocument>,
TCompilePath,
TSqlValue<EDataSlot::Json, TUtf8>,
TSqlValue<EDataSlot::Json, TUtf8, true>,
TSqlValue<EDataSlot::Json, i64>,
TSqlValue<EDataSlot::Json, double>,
TSqlValue<EDataSlot::Json, bool>,
TSqlValue<EDataSlot::JsonDocument, TUtf8>,
TSqlValue<EDataSlot::JsonDocument, TUtf8, true>,
TSqlValue<EDataSlot::JsonDocument, i64>,
TSqlValue<EDataSlot::JsonDocument, double>,
TSqlValue<EDataSlot::JsonDocument, bool>,
TSqlExists<EDataSlot::Json, false>,
TSqlExists<EDataSlot::Json, true>,
TSqlExists<EDataSlot::JsonDocument, false>,
TSqlExists<EDataSlot::JsonDocument, true>,
TSqlQuery<EDataSlot::Json, EJsonQueryWrap::NoWrap>,
TSqlQuery<EDataSlot::Json, EJsonQueryWrap::Wrap>,
TSqlQuery<EDataSlot::Json, EJsonQueryWrap::ConditionalWrap>,
TSqlQuery<EDataSlot::JsonDocument, EJsonQueryWrap::NoWrap>,
TSqlQuery<EDataSlot::JsonDocument, EJsonQueryWrap::Wrap>,
TSqlQuery<EDataSlot::JsonDocument, EJsonQueryWrap::ConditionalWrap>,
TAsJsonNode<TUtf8>,
TAsJsonNode<double>,
TAsJsonNode<bool>,
TAsJsonNode<TJson>)
}
REGISTER_MODULES(NJson2Udf::TJson2Module)
|