-
Notifications
You must be signed in to change notification settings - Fork 985
Expand file tree
/
Copy pathlogical_group.json
More file actions
91 lines (91 loc) · 1.63 KB
/
logical_group.json
File metadata and controls
91 lines (91 loc) · 1.63 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"head" : {
"type" : "APACHE_DRILL_LOGICAL",
"version" : 1,
"generator" : {
"type" : "optiq",
"info" : "na"
}
},
"storage" : {
"parquet-local" : {
"type" : "parquet",
"dfsName" : "file:///",
"enabled": true
}
},
"query" : [ {
"op" : "scan",
"@id" : 1,
"memo" : "initial_scan",
"storageengine" : "parquet-local",
"selection" : [ {
"path" : "/tmp/parquet"
} ],
"ref" : "_MAP"
}, {
"op" : "project",
"@id" : 2,
"input" : 1,
"projections" : [ {
"ref" : "$f0",
"expr" : "_MAP.b"
}, {
"ref" : "$f1",
"expr" : "_MAP.d"
}, {
"ref" : "$f2",
"expr" : "1"
}, {
"ref" : "$f3",
"expr" : "2"
} ]
}, {
"op" : "segment",
"@id" : 3,
"input" : 2,
"exprs" : [ "$f0", "$f1" ],
"name" : "segment"
}, {
"op" : "collapsingaggregate",
"@id" : 4,
"input" : 3,
"within" : "segment",
"target" : null,
"carryovers" : [ "$f0", "$f1" ],
"aggregations" : [ {
"ref" : "EXPR$0",
"expr" : "count($f2) "
}, {
"ref" : "EXPR$1",
"expr" : "count($f3) "
} ]
}, {
"op" : "project",
"@id" : 5,
"input" : 4,
"projections" : [ {
"ref" : "EXPR$0",
"expr" : "EXPR$0"
}, {
"ref" : "EXPR$1",
"expr" : "EXPR$1"
}, {
"ref" : "C",
"expr" : "$f0"
}, {
"ref" : "X",
"expr" : "$f1"
} ]
}, {
"op" : "store",
"@id" : 6,
"memo" : "output sink",
"input" : 5,
"target" : {
"number" : 0
},
"partition" : null,
"storageEngine" : "queue"
} ]
}