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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoAvailableCollections {
    #[prost(bool, tag = "1")]
    pub raw: bool,
    #[prost(message, repeated, tag = "2")]
    pub arranged: ::prost::alloc::vec::Vec<threshold::ProtoArrangement>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoGetPlan {
    #[prost(oneof = "proto_get_plan::Kind", tags = "1, 2, 3")]
    pub kind: ::core::option::Option<proto_get_plan::Kind>,
}
/// Nested message and enum types in `ProtoGetPlan`.
pub mod proto_get_plan {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoGetPlanArrangement {
        #[prost(message, repeated, tag = "1")]
        pub key: ::prost::alloc::vec::Vec<::mz_expr::ProtoMirScalarExpr>,
        #[prost(message, optional, tag = "2")]
        pub seek: ::core::option::Option<::mz_repr::ProtoRow>,
        #[prost(message, optional, tag = "3")]
        pub mfp: ::core::option::Option<::mz_expr::ProtoMapFilterProject>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        PassArrangements(()),
        #[prost(message, tag = "2")]
        Arrangement(ProtoGetPlanArrangement),
        #[prost(message, tag = "3")]
        Collection(::mz_expr::ProtoMapFilterProject),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoPlan {
    #[prost(
        oneof = "proto_plan::Kind",
        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13"
    )]
    pub kind: ::core::option::Option<proto_plan::Kind>,
}
/// Nested message and enum types in `ProtoPlan`.
pub mod proto_plan {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoRowDiff {
        #[prost(message, optional, tag = "1")]
        pub row: ::core::option::Option<::mz_repr::ProtoRow>,
        #[prost(uint64, tag = "2")]
        pub timestamp: u64,
        #[prost(int64, tag = "3")]
        pub diff: i64,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoRowDiffVec {
        #[prost(message, repeated, tag = "1")]
        pub rows: ::prost::alloc::vec::Vec<ProtoRowDiff>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanConstant {
        #[prost(oneof = "proto_plan_constant::Result", tags = "1, 2")]
        pub result: ::core::option::Option<proto_plan_constant::Result>,
    }
    /// Nested message and enum types in `ProtoPlanConstant`.
    pub mod proto_plan_constant {
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Result {
            #[prost(message, tag = "1")]
            Rows(super::ProtoRowDiffVec),
            #[prost(message, tag = "2")]
            Err(::mz_expr::ProtoEvalError),
        }
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanGet {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_expr::ProtoId>,
        #[prost(message, optional, tag = "2")]
        pub keys: ::core::option::Option<super::ProtoAvailableCollections>,
        #[prost(message, optional, tag = "3")]
        pub plan: ::core::option::Option<super::ProtoGetPlan>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanLet {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_expr::ProtoLocalId>,
        #[prost(message, optional, boxed, tag = "2")]
        pub value: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
        #[prost(message, optional, boxed, tag = "3")]
        pub body: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanLetRec {
        #[prost(message, repeated, tag = "1")]
        pub ids: ::prost::alloc::vec::Vec<::mz_expr::ProtoLocalId>,
        #[prost(message, repeated, tag = "2")]
        pub values: ::prost::alloc::vec::Vec<super::ProtoPlan>,
        #[prost(message, optional, boxed, tag = "3")]
        pub body: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanInputKeyVal {
        #[prost(message, repeated, tag = "1")]
        pub key: ::prost::alloc::vec::Vec<::mz_expr::ProtoMirScalarExpr>,
        #[prost(message, optional, tag = "2")]
        pub val: ::core::option::Option<::mz_repr::ProtoRow>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanMfp {
        #[prost(message, optional, boxed, tag = "1")]
        pub input: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
        #[prost(message, optional, tag = "2")]
        pub mfp: ::core::option::Option<::mz_expr::ProtoMapFilterProject>,
        #[prost(message, optional, tag = "3")]
        pub input_key_val: ::core::option::Option<ProtoPlanInputKeyVal>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanInputKey {
        #[prost(message, repeated, tag = "1")]
        pub key: ::prost::alloc::vec::Vec<::mz_expr::ProtoMirScalarExpr>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanFlatMap {
        #[prost(message, optional, boxed, tag = "1")]
        pub input: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
        #[prost(message, optional, tag = "2")]
        pub func: ::core::option::Option<::mz_expr::ProtoTableFunc>,
        #[prost(message, repeated, tag = "3")]
        pub exprs: ::prost::alloc::vec::Vec<::mz_expr::ProtoMirScalarExpr>,
        #[prost(message, optional, tag = "4")]
        pub mfp: ::core::option::Option<::mz_expr::ProtoMapFilterProject>,
        #[prost(message, optional, tag = "5")]
        pub input_key: ::core::option::Option<ProtoPlanInputKey>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanJoin {
        #[prost(message, repeated, tag = "1")]
        pub inputs: ::prost::alloc::vec::Vec<super::ProtoPlan>,
        #[prost(message, optional, tag = "2")]
        pub plan: ::core::option::Option<super::join::ProtoJoinPlan>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanReduce {
        #[prost(message, optional, boxed, tag = "1")]
        pub input: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
        #[prost(message, optional, tag = "2")]
        pub key_val_plan: ::core::option::Option<super::reduce::ProtoKeyValPlan>,
        #[prost(message, optional, tag = "3")]
        pub plan: ::core::option::Option<super::reduce::ProtoReducePlan>,
        #[prost(message, optional, tag = "4")]
        pub input_key: ::core::option::Option<ProtoPlanInputKey>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanTopK {
        #[prost(message, optional, boxed, tag = "1")]
        pub input: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
        #[prost(message, optional, tag = "2")]
        pub top_k_plan: ::core::option::Option<super::top_k::ProtoTopKPlan>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanThreshold {
        #[prost(message, optional, boxed, tag = "1")]
        pub input: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
        #[prost(message, optional, tag = "2")]
        pub threshold_plan: ::core::option::Option<super::threshold::ProtoThresholdPlan>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanUnion {
        #[prost(message, repeated, tag = "1")]
        pub inputs: ::prost::alloc::vec::Vec<super::ProtoPlan>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPlanArrangeBy {
        #[prost(message, optional, boxed, tag = "1")]
        pub input: ::core::option::Option<::prost::alloc::boxed::Box<super::ProtoPlan>>,
        #[prost(message, optional, tag = "2")]
        pub forms: ::core::option::Option<super::ProtoAvailableCollections>,
        #[prost(message, optional, tag = "3")]
        pub input_key: ::core::option::Option<ProtoPlanInputKey>,
        #[prost(message, optional, tag = "4")]
        pub input_mfp: ::core::option::Option<::mz_expr::ProtoMapFilterProject>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Constant(ProtoPlanConstant),
        #[prost(message, tag = "2")]
        Get(ProtoPlanGet),
        #[prost(message, tag = "3")]
        Let(::prost::alloc::boxed::Box<ProtoPlanLet>),
        #[prost(message, tag = "4")]
        Mfp(::prost::alloc::boxed::Box<ProtoPlanMfp>),
        #[prost(message, tag = "5")]
        FlatMap(::prost::alloc::boxed::Box<ProtoPlanFlatMap>),
        #[prost(message, tag = "6")]
        Join(ProtoPlanJoin),
        #[prost(message, tag = "7")]
        Reduce(::prost::alloc::boxed::Box<ProtoPlanReduce>),
        #[prost(message, tag = "8")]
        TopK(::prost::alloc::boxed::Box<ProtoPlanTopK>),
        #[prost(message, tag = "9")]
        Negate(::prost::alloc::boxed::Box<super::ProtoPlan>),
        #[prost(message, tag = "10")]
        Threshold(::prost::alloc::boxed::Box<ProtoPlanThreshold>),
        #[prost(message, tag = "11")]
        Union(ProtoPlanUnion),
        #[prost(message, tag = "12")]
        ArrangeBy(::prost::alloc::boxed::Box<ProtoPlanArrangeBy>),
        #[prost(message, tag = "13")]
        LetRec(::prost::alloc::boxed::Box<ProtoPlanLetRec>),
    }
}