aboutsummaryrefslogtreecommitdiffstats
path: root/yt/yql/providers/yt/common/yql_names.h
blob: e8ca0c82225f34757d51c3e43246d64d93c45811 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#pragma once

#include <util/generic/strbuf.h>
#include <util/generic/vector.h>

namespace NYql {

const TStringBuf YqlRowSpecAttribute = "_yql_row_spec";

const TStringBuf RowSpecAttrType = "Type";
const TStringBuf RowSpecAttrTypePatch = "TypePatch";
const TStringBuf RowSpecAttrStrictSchema = "StrictSchema";
const TStringBuf RowSpecAttrUniqueKeys = "UniqueKeys";
const TStringBuf RowSpecAttrSortDirections = "SortDirections";
const TStringBuf RowSpecAttrSortMembers = "SortMembers";
const TStringBuf RowSpecAttrSortedBy = "SortedBy";
const TStringBuf RowSpecAttrSortedByTypes = "SortedByTypes";
const TStringBuf RowSpecAttrDefaultValues = "DefaultValues";
const TStringBuf RowSpecAttrWeakFields = "WeakFields";
const TStringBuf RowSpecAttrUseTypeV2 = "UseTypeV2";
const TStringBuf RowSpecAttrUseNativeYtTypes = "UseNativeYtTypes";
const TStringBuf RowSpecAttrNativeYtTypeFlags = "NativeYtTypeFlags";
const TStringBuf RowSpecAttrExplicitYson = "ExplicitYson";
const TStringBuf RowSpecAttrConstraints = "Constraints";

const TStringBuf YqlReadUdfAttribute = "_yql_read_udf";
const TStringBuf YqlReadUdfTypeConfigAttribute = "_yql_read_udf_type_config";
const TStringBuf YqlReadUdfRunConfigAttribute = "_yql_read_udf_run_config";
const TStringBuf YqlViewPrefixAttribute = "_yql_view_";
const TStringBuf YqlProtoFieldPrefixAttribute = "_yql_proto_field_";
const TStringBuf YqlDynamicAttribute = "_yql_dynamic";

const TStringBuf YqlSysColumnPrefix = "_yql_sys_table";
const TStringBuf YqlSysColumnPath = "_yql_sys_tablepath";
const TStringBuf YqlSysColumnRecord = "_yql_sys_tablerecord";
const TStringBuf YqlSysColumnIndex = "_yql_sys_tableindex";
const TStringBuf YqlSysColumnNum = "_yql_sys_tablenum";
const TStringBuf YqlSysColumnKeySwitch = "_yql_sys_tablekeyswitch";

const TStringBuf YqlOthersColumnName = "_other";
const TStringBuf YqlFakeColumnName = "_yql_fake_column";
const TStringBuf YqlTypeAttribute = "_yql_type";
const TStringBuf YqlTypeView = "view";

const TStringBuf QB2Premapper = "_qb2_premapper";

// Generated by SQL parser
const TStringBuf MrTableRangeName = "MrTableRange";
const TStringBuf MrTableRangeStrictName = "MrTableRangeStrict";
const TStringBuf MrTableConcatName = "MrTableConcat";
const TStringBuf MrFolderName = "MrFolder";
const TStringBuf MrWalkFoldersName = "MrWalkFolders";
const TStringBuf MrWalkFoldersImplName = "MrWalkFoldersImpl";
const TStringBuf MrRangeInputListInternal = "MrRangeInputListInternal";

// YT related names
const TStringBuf READ_SCHEMA_ATTR_NAME = "_read_schema";
const TStringBuf INFER_SCHEMA_ATTR_NAME = "_infer_schema";
const TStringBuf SCHEMA_ATTR_NAME = "schema";
const TStringBuf SCHEMA_MODE_ATTR_NAME = "schema_mode";
const TStringBuf FORMAT_ATTR_NAME = "_format";

const TStringBuf KeyFilterName = "keyFilter";
const TStringBuf CurrentYtClusterShortcut = "current";

const TStringBuf YqlIOSpecTables = "tables";
const TStringBuf YqlIOSpecRegistry = "registry";

const TStringBuf SecurityTagsName = "security_tags";

extern const TVector<TStringBuf> YAMR_FIELDS;

}