forked from feathr-ai/feathr
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathattributesMapping.ts
More file actions
48 lines (44 loc) · 1.54 KB
/
Copy pathattributesMapping.ts
File metadata and controls
48 lines (44 loc) · 1.54 KB
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
import {
FeatureTransformation,
FeatureKey,
FeatureType,
DataSourceAttributes,
} from "@/models/model";
export const TransformationMap: Array<{
label: string;
key: keyof FeatureTransformation;
}> = [
{ label: "Expression", key: "transformExpr" },
{ label: "Filter", key: "filter" },
{ label: "Aggregation", key: "aggFunc" },
{ label: "Limit", key: "limit" },
{ label: "Group By", key: "groupBy" },
{ label: "Window", key: "window" },
{ label: "Expression", key: "defExpr" },
];
export const FeatureKeyMap: Array<{ label: string; key: keyof FeatureKey }> = [
{ label: "Full name", key: "fullName" },
{ label: "Description", key: "description" },
{ label: "Key column", key: "keyColumn" },
{ label: "Key column alias", key: "keyColumnAlias" },
{ label: "Key column type", key: "keyColumnType" },
];
export const TypeMap: Array<{ label: string; key: keyof FeatureType }> = [
{ label: "Dimension Type", key: "dimensionType" },
{ label: "Tensor Category", key: "tensorCategory" },
{ label: "Type", key: "type" },
{ label: "Value Type", key: "valType" },
];
export const SourceAttributesMap: Array<{
label: string;
key: keyof DataSourceAttributes;
}> = [
{ label: "Name", key: "name" },
{ label: "Type", key: "type" },
{ label: "Path", key: "path" },
{ label: "Preprocessing", key: "preprocessing" },
{ label: "Event Timestamp Column", key: "event_timestamp_column" },
{ label: "Timestamp Forma", key: "timestamp_format" },
{ label: "Qualified Name", key: "qualified_name" },
{ label: "Tags", key: "tags" },
];