Skip to main content

datafusion_proto_models/generated/
prost.rs

1// This file is @generated by prost-build.
2/// logical plan
3/// LogicalPlan is a nested type
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct LogicalPlanNode {
6    #[prost(
7        oneof = "logical_plan_node::LogicalPlanType",
8        tags = "1, 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"
9    )]
10    pub logical_plan_type: ::core::option::Option<logical_plan_node::LogicalPlanType>,
11}
12/// Nested message and enum types in `LogicalPlanNode`.
13pub mod logical_plan_node {
14    #[derive(Clone, PartialEq, ::prost::Oneof)]
15    pub enum LogicalPlanType {
16        #[prost(message, tag = "1")]
17        ListingScan(super::ListingTableScanNode),
18        #[prost(message, tag = "3")]
19        Projection(::prost::alloc::boxed::Box<super::ProjectionNode>),
20        #[prost(message, tag = "4")]
21        Selection(::prost::alloc::boxed::Box<super::SelectionNode>),
22        #[prost(message, tag = "5")]
23        Limit(::prost::alloc::boxed::Box<super::LimitNode>),
24        #[prost(message, tag = "6")]
25        Aggregate(::prost::alloc::boxed::Box<super::AggregateNode>),
26        #[prost(message, tag = "7")]
27        Join(::prost::alloc::boxed::Box<super::JoinNode>),
28        #[prost(message, tag = "8")]
29        Sort(::prost::alloc::boxed::Box<super::SortNode>),
30        #[prost(message, tag = "9")]
31        Repartition(::prost::alloc::boxed::Box<super::RepartitionNode>),
32        #[prost(message, tag = "10")]
33        EmptyRelation(super::EmptyRelationNode),
34        #[prost(message, tag = "11")]
35        CreateExternalTable(super::CreateExternalTableNode),
36        #[prost(message, tag = "12")]
37        Explain(::prost::alloc::boxed::Box<super::ExplainNode>),
38        #[prost(message, tag = "13")]
39        Window(::prost::alloc::boxed::Box<super::WindowNode>),
40        #[prost(message, tag = "14")]
41        Analyze(::prost::alloc::boxed::Box<super::AnalyzeNode>),
42        #[prost(message, tag = "15")]
43        CrossJoin(::prost::alloc::boxed::Box<super::CrossJoinNode>),
44        #[prost(message, tag = "16")]
45        Values(super::ValuesNode),
46        #[prost(message, tag = "17")]
47        Extension(super::LogicalExtensionNode),
48        #[prost(message, tag = "18")]
49        CreateCatalogSchema(super::CreateCatalogSchemaNode),
50        #[prost(message, tag = "19")]
51        Union(super::UnionNode),
52        #[prost(message, tag = "20")]
53        CreateCatalog(super::CreateCatalogNode),
54        #[prost(message, tag = "21")]
55        SubqueryAlias(::prost::alloc::boxed::Box<super::SubqueryAliasNode>),
56        #[prost(message, tag = "22")]
57        CreateView(::prost::alloc::boxed::Box<super::CreateViewNode>),
58        #[prost(message, tag = "23")]
59        Distinct(::prost::alloc::boxed::Box<super::DistinctNode>),
60        #[prost(message, tag = "24")]
61        ViewScan(::prost::alloc::boxed::Box<super::ViewTableScanNode>),
62        #[prost(message, tag = "25")]
63        CustomScan(super::CustomTableScanNode),
64        #[prost(message, tag = "26")]
65        Prepare(::prost::alloc::boxed::Box<super::PrepareNode>),
66        #[prost(message, tag = "27")]
67        DropView(super::DropViewNode),
68        #[prost(message, tag = "28")]
69        DistinctOn(::prost::alloc::boxed::Box<super::DistinctOnNode>),
70        #[prost(message, tag = "29")]
71        CopyTo(::prost::alloc::boxed::Box<super::CopyToNode>),
72        #[prost(message, tag = "30")]
73        Unnest(::prost::alloc::boxed::Box<super::UnnestNode>),
74        #[prost(message, tag = "31")]
75        RecursiveQuery(::prost::alloc::boxed::Box<super::RecursiveQueryNode>),
76        #[prost(message, tag = "32")]
77        CteWorkTableScan(super::CteWorkTableScanNode),
78        #[prost(message, tag = "33")]
79        Dml(::prost::alloc::boxed::Box<super::DmlNode>),
80        #[prost(message, tag = "34")]
81        EmptyTableScan(super::EmptyTableScanNode),
82        #[prost(message, tag = "35")]
83        AsOfJoin(::prost::alloc::boxed::Box<super::AsOfJoinNode>),
84    }
85}
86#[derive(Clone, PartialEq, ::prost::Message)]
87pub struct LogicalExtensionNode {
88    #[prost(bytes = "vec", tag = "1")]
89    pub node: ::prost::alloc::vec::Vec<u8>,
90    #[prost(message, repeated, tag = "2")]
91    pub inputs: ::prost::alloc::vec::Vec<LogicalPlanNode>,
92}
93#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
94pub struct ProjectionColumns {
95    #[prost(string, repeated, tag = "1")]
96    pub columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
97}
98#[derive(Clone, PartialEq, ::prost::Message)]
99pub struct LogicalExprNodeCollection {
100    #[prost(message, repeated, tag = "1")]
101    pub logical_expr_nodes: ::prost::alloc::vec::Vec<LogicalExprNode>,
102}
103#[derive(Clone, PartialEq, ::prost::Message)]
104pub struct SortExprNodeCollection {
105    #[prost(message, repeated, tag = "1")]
106    pub sort_expr_nodes: ::prost::alloc::vec::Vec<SortExprNode>,
107}
108#[derive(Clone, PartialEq, ::prost::Message)]
109pub struct ListingTableScanNode {
110    #[prost(message, optional, tag = "14")]
111    pub table_name: ::core::option::Option<TableReference>,
112    #[prost(string, repeated, tag = "2")]
113    pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
114    #[prost(string, tag = "3")]
115    pub file_extension: ::prost::alloc::string::String,
116    #[prost(message, optional, tag = "4")]
117    pub projection: ::core::option::Option<ProjectionColumns>,
118    #[prost(message, optional, tag = "5")]
119    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
120    #[prost(message, repeated, tag = "6")]
121    pub filters: ::prost::alloc::vec::Vec<LogicalExprNode>,
122    #[prost(message, repeated, tag = "7")]
123    pub table_partition_cols: ::prost::alloc::vec::Vec<PartitionColumn>,
124    #[prost(message, repeated, tag = "13")]
125    pub file_sort_order: ::prost::alloc::vec::Vec<SortExprNodeCollection>,
126    /// Optional number of rows to read.
127    #[prost(uint64, optional, tag = "17")]
128    pub fetch: ::core::option::Option<u64>,
129    /// Optional number of rows to skip.
130    #[prost(uint64, optional, tag = "18")]
131    pub skip: ::core::option::Option<u64>,
132    #[prost(
133        oneof = "listing_table_scan_node::FileFormatType",
134        tags = "10, 11, 12, 15, 16"
135    )]
136    pub file_format_type: ::core::option::Option<
137        listing_table_scan_node::FileFormatType,
138    >,
139}
140/// Nested message and enum types in `ListingTableScanNode`.
141pub mod listing_table_scan_node {
142    #[derive(Clone, PartialEq, ::prost::Oneof)]
143    pub enum FileFormatType {
144        #[prost(message, tag = "10")]
145        Csv(super::super::datafusion_common::CsvFormat),
146        #[prost(message, tag = "11")]
147        Parquet(super::super::datafusion_common::ParquetFormat),
148        #[prost(message, tag = "12")]
149        Avro(super::super::datafusion_common::AvroFormat),
150        #[prost(message, tag = "15")]
151        Json(super::super::datafusion_common::NdJsonFormat),
152        #[prost(message, tag = "16")]
153        Arrow(super::super::datafusion_common::ArrowFormat),
154    }
155}
156#[derive(Clone, PartialEq, ::prost::Message)]
157pub struct ViewTableScanNode {
158    #[prost(message, optional, tag = "6")]
159    pub table_name: ::core::option::Option<TableReference>,
160    #[prost(message, optional, boxed, tag = "2")]
161    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
162    #[prost(message, optional, tag = "3")]
163    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
164    #[prost(message, optional, tag = "4")]
165    pub projection: ::core::option::Option<ProjectionColumns>,
166    #[prost(string, tag = "5")]
167    pub definition: ::prost::alloc::string::String,
168    /// Optional number of rows to read.
169    #[prost(uint64, optional, tag = "7")]
170    pub fetch: ::core::option::Option<u64>,
171    /// Optional number of rows to skip.
172    #[prost(uint64, optional, tag = "8")]
173    pub skip: ::core::option::Option<u64>,
174}
175/// Logical Plan to Scan a CustomTableProvider registered at runtime
176#[derive(Clone, PartialEq, ::prost::Message)]
177pub struct CustomTableScanNode {
178    #[prost(message, optional, tag = "6")]
179    pub table_name: ::core::option::Option<TableReference>,
180    #[prost(message, optional, tag = "2")]
181    pub projection: ::core::option::Option<ProjectionColumns>,
182    #[prost(message, optional, tag = "3")]
183    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
184    #[prost(message, repeated, tag = "4")]
185    pub filters: ::prost::alloc::vec::Vec<LogicalExprNode>,
186    #[prost(bytes = "vec", tag = "5")]
187    pub custom_table_data: ::prost::alloc::vec::Vec<u8>,
188    /// Optional number of rows to read.
189    #[prost(uint64, optional, tag = "7")]
190    pub fetch: ::core::option::Option<u64>,
191    /// Optional number of rows to skip.
192    #[prost(uint64, optional, tag = "8")]
193    pub skip: ::core::option::Option<u64>,
194}
195#[derive(Clone, PartialEq, ::prost::Message)]
196pub struct ProjectionNode {
197    #[prost(message, optional, boxed, tag = "1")]
198    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
199    #[prost(message, repeated, tag = "2")]
200    pub expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
201    #[prost(oneof = "projection_node::OptionalAlias", tags = "3")]
202    pub optional_alias: ::core::option::Option<projection_node::OptionalAlias>,
203}
204/// Nested message and enum types in `ProjectionNode`.
205pub mod projection_node {
206    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
207    pub enum OptionalAlias {
208        #[prost(string, tag = "3")]
209        Alias(::prost::alloc::string::String),
210    }
211}
212#[derive(Clone, PartialEq, ::prost::Message)]
213pub struct SelectionNode {
214    #[prost(message, optional, boxed, tag = "1")]
215    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
216    #[prost(message, optional, boxed, tag = "2")]
217    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
218}
219#[derive(Clone, PartialEq, ::prost::Message)]
220pub struct SortNode {
221    #[prost(message, optional, boxed, tag = "1")]
222    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
223    #[prost(message, repeated, tag = "2")]
224    pub expr: ::prost::alloc::vec::Vec<SortExprNode>,
225    /// Maximum number of highest/lowest rows to fetch; negative means no limit
226    #[prost(int64, tag = "3")]
227    pub fetch: i64,
228}
229#[derive(Clone, PartialEq, ::prost::Message)]
230pub struct RepartitionNode {
231    #[prost(message, optional, boxed, tag = "1")]
232    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
233    #[prost(oneof = "repartition_node::PartitionMethod", tags = "2, 3, 4")]
234    pub partition_method: ::core::option::Option<repartition_node::PartitionMethod>,
235}
236/// Nested message and enum types in `RepartitionNode`.
237pub mod repartition_node {
238    #[derive(Clone, PartialEq, ::prost::Oneof)]
239    pub enum PartitionMethod {
240        #[prost(uint64, tag = "2")]
241        RoundRobin(u64),
242        #[prost(message, tag = "3")]
243        Hash(super::HashRepartition),
244        #[prost(message, tag = "4")]
245        Range(super::RangeRepartition),
246    }
247}
248#[derive(Clone, PartialEq, ::prost::Message)]
249pub struct RangeSplitPoint {
250    #[prost(message, repeated, tag = "1")]
251    pub value: ::prost::alloc::vec::Vec<super::datafusion_common::ScalarValue>,
252}
253#[derive(Clone, PartialEq, ::prost::Message)]
254pub struct RangeRepartition {
255    #[prost(message, repeated, tag = "1")]
256    pub sort_expr: ::prost::alloc::vec::Vec<SortExprNode>,
257    #[prost(message, repeated, tag = "2")]
258    pub split_point: ::prost::alloc::vec::Vec<RangeSplitPoint>,
259}
260#[derive(Clone, PartialEq, ::prost::Message)]
261pub struct HashRepartition {
262    #[prost(message, repeated, tag = "1")]
263    pub hash_expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
264    #[prost(uint64, tag = "2")]
265    pub partition_count: u64,
266}
267#[derive(Clone, PartialEq, ::prost::Message)]
268pub struct EmptyRelationNode {
269    #[prost(bool, tag = "1")]
270    pub produce_one_row: bool,
271    #[prost(message, optional, tag = "2")]
272    pub schema: ::core::option::Option<super::datafusion_common::DfSchema>,
273}
274#[derive(Clone, PartialEq, ::prost::Message)]
275pub struct CreateExternalTableNode {
276    #[prost(message, optional, tag = "9")]
277    pub name: ::core::option::Option<TableReference>,
278    /// deprecated; use repeated locations
279    #[prost(string, tag = "2")]
280    pub location: ::prost::alloc::string::String,
281    #[prost(string, repeated, tag = "16")]
282    pub locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
283    #[prost(string, tag = "3")]
284    pub file_type: ::prost::alloc::string::String,
285    #[prost(message, optional, tag = "4")]
286    pub schema: ::core::option::Option<super::datafusion_common::DfSchema>,
287    #[prost(string, repeated, tag = "5")]
288    pub table_partition_cols: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
289    #[prost(bool, tag = "6")]
290    pub if_not_exists: bool,
291    #[prost(bool, tag = "15")]
292    pub or_replace: bool,
293    #[prost(bool, tag = "14")]
294    pub temporary: bool,
295    #[prost(string, tag = "7")]
296    pub definition: ::prost::alloc::string::String,
297    #[prost(message, repeated, tag = "10")]
298    pub order_exprs: ::prost::alloc::vec::Vec<SortExprNodeCollection>,
299    #[prost(bool, tag = "11")]
300    pub unbounded: bool,
301    #[prost(map = "string, string", tag = "8")]
302    pub options: ::std::collections::HashMap<
303        ::prost::alloc::string::String,
304        ::prost::alloc::string::String,
305    >,
306    #[prost(message, optional, tag = "12")]
307    pub constraints: ::core::option::Option<super::datafusion_common::Constraints>,
308    #[prost(map = "string, message", tag = "13")]
309    pub column_defaults: ::std::collections::HashMap<
310        ::prost::alloc::string::String,
311        LogicalExprNode,
312    >,
313}
314#[derive(Clone, PartialEq, ::prost::Message)]
315pub struct PrepareNode {
316    #[prost(string, tag = "1")]
317    pub name: ::prost::alloc::string::String,
318    /// We serialize both the data types and the fields for compatibility with
319    /// older versions (newer versions populate both).
320    #[prost(message, repeated, tag = "2")]
321    pub data_types: ::prost::alloc::vec::Vec<super::datafusion_common::ArrowType>,
322    #[prost(message, optional, boxed, tag = "3")]
323    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
324    #[prost(message, repeated, tag = "4")]
325    pub fields: ::prost::alloc::vec::Vec<super::datafusion_common::Field>,
326}
327#[derive(Clone, PartialEq, ::prost::Message)]
328pub struct CreateCatalogSchemaNode {
329    #[prost(string, tag = "1")]
330    pub schema_name: ::prost::alloc::string::String,
331    #[prost(bool, tag = "2")]
332    pub if_not_exists: bool,
333    #[prost(message, optional, tag = "3")]
334    pub schema: ::core::option::Option<super::datafusion_common::DfSchema>,
335}
336#[derive(Clone, PartialEq, ::prost::Message)]
337pub struct CreateCatalogNode {
338    #[prost(string, tag = "1")]
339    pub catalog_name: ::prost::alloc::string::String,
340    #[prost(bool, tag = "2")]
341    pub if_not_exists: bool,
342    #[prost(message, optional, tag = "3")]
343    pub schema: ::core::option::Option<super::datafusion_common::DfSchema>,
344}
345#[derive(Clone, PartialEq, ::prost::Message)]
346pub struct DropViewNode {
347    #[prost(message, optional, tag = "1")]
348    pub name: ::core::option::Option<TableReference>,
349    #[prost(bool, tag = "2")]
350    pub if_exists: bool,
351    #[prost(message, optional, tag = "3")]
352    pub schema: ::core::option::Option<super::datafusion_common::DfSchema>,
353}
354#[derive(Clone, PartialEq, ::prost::Message)]
355pub struct CreateViewNode {
356    #[prost(message, optional, tag = "5")]
357    pub name: ::core::option::Option<TableReference>,
358    #[prost(message, optional, boxed, tag = "2")]
359    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
360    #[prost(bool, tag = "3")]
361    pub or_replace: bool,
362    #[prost(bool, tag = "6")]
363    pub temporary: bool,
364    #[prost(string, tag = "4")]
365    pub definition: ::prost::alloc::string::String,
366}
367/// a node containing data for defining values list. unlike in SQL where it's two dimensional, here
368/// the list is flattened, and with the field n_cols it can be parsed and partitioned into rows
369#[derive(Clone, PartialEq, ::prost::Message)]
370pub struct ValuesNode {
371    #[prost(uint64, tag = "1")]
372    pub n_cols: u64,
373    #[prost(message, repeated, tag = "2")]
374    pub values_list: ::prost::alloc::vec::Vec<LogicalExprNode>,
375}
376#[derive(Clone, PartialEq, ::prost::Message)]
377pub struct AnalyzeNode {
378    #[prost(message, optional, boxed, tag = "1")]
379    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
380    #[prost(bool, tag = "2")]
381    pub verbose: bool,
382    /// Statement-level override for `datafusion.explain.analyze_level`.
383    /// Absent means "fall back to session config".
384    #[prost(enumeration = "super::datafusion_common::MetricType", optional, tag = "3")]
385    pub analyze_level: ::core::option::Option<i32>,
386    /// Statement-level override for `datafusion.explain.analyze_categories`.
387    /// Absent means "fall back to session config".
388    #[prost(message, optional, tag = "4")]
389    pub analyze_categories: ::core::option::Option<
390        super::datafusion_common::ExplainAnalyzeCategoriesNode,
391    >,
392    #[prost(enumeration = "super::datafusion_common::ExplainFormat", tag = "5")]
393    pub format: i32,
394}
395#[derive(Clone, PartialEq, ::prost::Message)]
396pub struct ExplainNode {
397    #[prost(message, optional, boxed, tag = "1")]
398    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
399    #[prost(bool, tag = "2")]
400    pub verbose: bool,
401    #[prost(enumeration = "super::datafusion_common::ExplainFormat", tag = "3")]
402    pub format: i32,
403    /// Statement-level override for `datafusion.explain.show_statistics`.
404    /// Absent means "fall back to session config".
405    #[prost(bool, optional, tag = "4")]
406    pub show_statistics: ::core::option::Option<bool>,
407}
408#[derive(Clone, PartialEq, ::prost::Message)]
409pub struct AggregateNode {
410    #[prost(message, optional, boxed, tag = "1")]
411    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
412    #[prost(message, repeated, tag = "2")]
413    pub group_expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
414    #[prost(message, repeated, tag = "3")]
415    pub aggr_expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
416}
417#[derive(Clone, PartialEq, ::prost::Message)]
418pub struct WindowNode {
419    #[prost(message, optional, boxed, tag = "1")]
420    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
421    #[prost(message, repeated, tag = "2")]
422    pub window_expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
423}
424#[derive(Clone, PartialEq, ::prost::Message)]
425pub struct JoinNode {
426    #[prost(message, optional, boxed, tag = "1")]
427    pub left: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
428    #[prost(message, optional, boxed, tag = "2")]
429    pub right: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
430    #[prost(enumeration = "super::datafusion_common::JoinType", tag = "3")]
431    pub join_type: i32,
432    #[prost(enumeration = "super::datafusion_common::JoinConstraint", tag = "4")]
433    pub join_constraint: i32,
434    #[prost(message, repeated, tag = "5")]
435    pub left_join_key: ::prost::alloc::vec::Vec<LogicalExprNode>,
436    #[prost(message, repeated, tag = "6")]
437    pub right_join_key: ::prost::alloc::vec::Vec<LogicalExprNode>,
438    #[prost(enumeration = "super::datafusion_common::NullEquality", tag = "7")]
439    pub null_equality: i32,
440    #[prost(message, optional, boxed, tag = "8")]
441    pub filter: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
442    #[prost(bool, tag = "9")]
443    pub null_aware: bool,
444    /// Number of `NOT IN` value keys of a null-aware join (see
445    /// `Join::null_aware_value_keys`). 0 is an unset count, accepted only for a
446    /// single key. Messages predating this field decode it as 0: they can only
447    /// hold scalar `NOT IN` joins.
448    #[prost(uint32, tag = "10")]
449    pub null_aware_value_keys: u32,
450}
451#[derive(Clone, PartialEq, ::prost::Message)]
452pub struct AsOfJoinNode {
453    #[prost(message, optional, boxed, tag = "1")]
454    pub left: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
455    #[prost(message, optional, boxed, tag = "2")]
456    pub right: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
457    #[prost(message, repeated, tag = "3")]
458    pub left_join_key: ::prost::alloc::vec::Vec<LogicalExprNode>,
459    #[prost(message, repeated, tag = "4")]
460    pub right_join_key: ::prost::alloc::vec::Vec<LogicalExprNode>,
461    #[prost(message, optional, boxed, tag = "5")]
462    pub left_match_expr: ::core::option::Option<
463        ::prost::alloc::boxed::Box<LogicalExprNode>,
464    >,
465    #[prost(message, optional, boxed, tag = "6")]
466    pub right_match_expr: ::core::option::Option<
467        ::prost::alloc::boxed::Box<LogicalExprNode>,
468    >,
469    #[prost(enumeration = "AsOfMatchOperator", tag = "7")]
470    pub match_operator: i32,
471    #[prost(enumeration = "super::datafusion_common::JoinConstraint", tag = "8")]
472    pub join_constraint: i32,
473}
474#[derive(Clone, PartialEq, ::prost::Message)]
475pub struct DistinctNode {
476    #[prost(message, optional, boxed, tag = "1")]
477    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
478}
479#[derive(Clone, PartialEq, ::prost::Message)]
480pub struct DistinctOnNode {
481    #[prost(message, repeated, tag = "1")]
482    pub on_expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
483    #[prost(message, repeated, tag = "2")]
484    pub select_expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
485    #[prost(message, repeated, tag = "3")]
486    pub sort_expr: ::prost::alloc::vec::Vec<SortExprNode>,
487    #[prost(message, optional, boxed, tag = "4")]
488    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
489}
490#[derive(Clone, PartialEq, ::prost::Message)]
491pub struct CopyToNode {
492    #[prost(message, optional, boxed, tag = "1")]
493    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
494    #[prost(string, tag = "2")]
495    pub output_url: ::prost::alloc::string::String,
496    #[prost(bytes = "vec", tag = "3")]
497    pub file_type: ::prost::alloc::vec::Vec<u8>,
498    #[prost(string, repeated, tag = "7")]
499    pub partition_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
500}
501/// Wraps a serialized FileFormatFactory with its format kind tag,
502/// so the decoder can dispatch to the correct format-specific codec.
503#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
504pub struct FileFormatProto {
505    #[prost(enumeration = "FileFormatKind", tag = "1")]
506    pub kind: i32,
507    #[prost(bytes = "vec", tag = "2")]
508    pub encoded_file_format: ::prost::alloc::vec::Vec<u8>,
509}
510#[derive(Clone, PartialEq, ::prost::Message)]
511pub struct DmlNode {
512    #[prost(enumeration = "dml_node::Type", tag = "1")]
513    pub dml_type: i32,
514    #[prost(message, optional, boxed, tag = "2")]
515    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
516    #[prost(message, optional, tag = "3")]
517    pub table_name: ::core::option::Option<TableReference>,
518    #[prost(message, optional, boxed, tag = "5")]
519    pub target: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
520    /// Populated only when dml_type == MERGE_INTO.
521    #[prost(message, optional, boxed, tag = "6")]
522    pub merge_into: ::core::option::Option<::prost::alloc::boxed::Box<MergeIntoOpNode>>,
523}
524/// Nested message and enum types in `DmlNode`.
525pub mod dml_node {
526    #[derive(
527        Clone,
528        Copy,
529        Debug,
530        PartialEq,
531        Eq,
532        Hash,
533        PartialOrd,
534        Ord,
535        ::prost::Enumeration
536    )]
537    #[repr(i32)]
538    pub enum Type {
539        Update = 0,
540        Delete = 1,
541        Ctas = 2,
542        InsertAppend = 3,
543        InsertOverwrite = 4,
544        InsertReplace = 5,
545        Truncate = 6,
546        MergeInto = 7,
547    }
548    impl Type {
549        /// String value of the enum field names used in the ProtoBuf definition.
550        ///
551        /// The values are not transformed in any way and thus are considered stable
552        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
553        pub fn as_str_name(&self) -> &'static str {
554            match self {
555                Self::Update => "UPDATE",
556                Self::Delete => "DELETE",
557                Self::Ctas => "CTAS",
558                Self::InsertAppend => "INSERT_APPEND",
559                Self::InsertOverwrite => "INSERT_OVERWRITE",
560                Self::InsertReplace => "INSERT_REPLACE",
561                Self::Truncate => "TRUNCATE",
562                Self::MergeInto => "MERGE_INTO",
563            }
564        }
565        /// Creates an enum from field names used in the ProtoBuf definition.
566        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
567            match value {
568                "UPDATE" => Some(Self::Update),
569                "DELETE" => Some(Self::Delete),
570                "CTAS" => Some(Self::Ctas),
571                "INSERT_APPEND" => Some(Self::InsertAppend),
572                "INSERT_OVERWRITE" => Some(Self::InsertOverwrite),
573                "INSERT_REPLACE" => Some(Self::InsertReplace),
574                "TRUNCATE" => Some(Self::Truncate),
575                "MERGE_INTO" => Some(Self::MergeInto),
576                _ => None,
577            }
578        }
579    }
580}
581/// Carries the target qualifier, ON condition, and WHEN clauses of a MERGE INTO operation.
582#[derive(Clone, PartialEq, ::prost::Message)]
583pub struct MergeIntoOpNode {
584    #[prost(message, optional, boxed, tag = "1")]
585    pub on: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
586    #[prost(message, repeated, tag = "2")]
587    pub clauses: ::prost::alloc::vec::Vec<MergeIntoClauseNode>,
588    /// SQL-visible target qualifier. Absent in payloads written before this field
589    /// was introduced; readers then fall back to DmlNode.table_name.
590    #[prost(message, optional, tag = "3")]
591    pub target_qualifier: ::core::option::Option<TableReference>,
592}
593/// A single WHEN clause within a MERGE INTO statement.
594#[derive(Clone, PartialEq, ::prost::Message)]
595pub struct MergeIntoClauseNode {
596    #[prost(enumeration = "merge_into_clause_node::Kind", tag = "1")]
597    pub kind: i32,
598    /// Optional `AND <expr>` predicate. Absent when the clause has no predicate.
599    #[prost(message, optional, tag = "2")]
600    pub predicate: ::core::option::Option<LogicalExprNode>,
601    #[prost(message, optional, tag = "3")]
602    pub action: ::core::option::Option<MergeIntoActionNode>,
603}
604/// Nested message and enum types in `MergeIntoClauseNode`.
605pub mod merge_into_clause_node {
606    #[derive(
607        Clone,
608        Copy,
609        Debug,
610        PartialEq,
611        Eq,
612        Hash,
613        PartialOrd,
614        Ord,
615        ::prost::Enumeration
616    )]
617    #[repr(i32)]
618    pub enum Kind {
619        Matched = 0,
620        NotMatched = 1,
621        NotMatchedByTarget = 2,
622        NotMatchedBySource = 3,
623    }
624    impl Kind {
625        /// String value of the enum field names used in the ProtoBuf definition.
626        ///
627        /// The values are not transformed in any way and thus are considered stable
628        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
629        pub fn as_str_name(&self) -> &'static str {
630            match self {
631                Self::Matched => "MATCHED",
632                Self::NotMatched => "NOT_MATCHED",
633                Self::NotMatchedByTarget => "NOT_MATCHED_BY_TARGET",
634                Self::NotMatchedBySource => "NOT_MATCHED_BY_SOURCE",
635            }
636        }
637        /// Creates an enum from field names used in the ProtoBuf definition.
638        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
639            match value {
640                "MATCHED" => Some(Self::Matched),
641                "NOT_MATCHED" => Some(Self::NotMatched),
642                "NOT_MATCHED_BY_TARGET" => Some(Self::NotMatchedByTarget),
643                "NOT_MATCHED_BY_SOURCE" => Some(Self::NotMatchedBySource),
644                _ => None,
645            }
646        }
647    }
648}
649/// The action for a single WHEN clause.
650#[derive(Clone, PartialEq, ::prost::Message)]
651pub struct MergeIntoActionNode {
652    #[prost(oneof = "merge_into_action_node::Action", tags = "1, 2, 3")]
653    pub action: ::core::option::Option<merge_into_action_node::Action>,
654}
655/// Nested message and enum types in `MergeIntoActionNode`.
656pub mod merge_into_action_node {
657    #[derive(Clone, PartialEq, ::prost::Oneof)]
658    pub enum Action {
659        #[prost(message, tag = "1")]
660        Update(super::MergeUpdateAction),
661        #[prost(message, tag = "2")]
662        Insert(super::MergeInsertAction),
663        #[prost(message, tag = "3")]
664        Delete(super::MergeDeleteAction),
665    }
666}
667#[derive(Clone, PartialEq, ::prost::Message)]
668pub struct MergeUpdateAction {
669    #[prost(message, repeated, tag = "1")]
670    pub assignments: ::prost::alloc::vec::Vec<MergeAssignment>,
671}
672#[derive(Clone, PartialEq, ::prost::Message)]
673pub struct MergeAssignment {
674    #[prost(string, tag = "1")]
675    pub column: ::prost::alloc::string::String,
676    #[prost(message, optional, tag = "2")]
677    pub value: ::core::option::Option<LogicalExprNode>,
678}
679#[derive(Clone, PartialEq, ::prost::Message)]
680pub struct MergeInsertAction {
681    /// May be empty (meaning all columns).
682    #[prost(string, repeated, tag = "1")]
683    pub columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
684    /// One expression per inserted column.
685    #[prost(message, repeated, tag = "2")]
686    pub values: ::prost::alloc::vec::Vec<LogicalExprNode>,
687}
688#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
689pub struct MergeDeleteAction {}
690#[derive(Clone, PartialEq, ::prost::Message)]
691pub struct UnnestNode {
692    #[prost(message, optional, boxed, tag = "1")]
693    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
694    #[prost(message, repeated, tag = "2")]
695    pub exec_columns: ::prost::alloc::vec::Vec<super::datafusion_common::Column>,
696    #[prost(message, repeated, tag = "3")]
697    pub list_type_columns: ::prost::alloc::vec::Vec<ColumnUnnestListItem>,
698    #[prost(uint64, repeated, tag = "4")]
699    pub struct_type_columns: ::prost::alloc::vec::Vec<u64>,
700    #[prost(uint64, repeated, tag = "5")]
701    pub dependency_indices: ::prost::alloc::vec::Vec<u64>,
702    #[prost(message, optional, tag = "6")]
703    pub schema: ::core::option::Option<super::datafusion_common::DfSchema>,
704    #[prost(message, optional, tag = "7")]
705    pub options: ::core::option::Option<UnnestOptions>,
706}
707#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
708pub struct ColumnUnnestListItem {
709    #[prost(uint32, tag = "1")]
710    pub input_index: u32,
711    #[prost(message, optional, tag = "2")]
712    pub recursion: ::core::option::Option<ColumnUnnestListRecursion>,
713}
714#[derive(Clone, PartialEq, ::prost::Message)]
715pub struct ColumnUnnestListRecursions {
716    #[prost(message, repeated, tag = "2")]
717    pub recursions: ::prost::alloc::vec::Vec<ColumnUnnestListRecursion>,
718}
719#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
720pub struct ColumnUnnestListRecursion {
721    #[prost(message, optional, tag = "1")]
722    pub output_column: ::core::option::Option<super::datafusion_common::Column>,
723    #[prost(uint32, tag = "2")]
724    pub depth: u32,
725}
726#[derive(Clone, PartialEq, ::prost::Message)]
727pub struct UnnestOptions {
728    #[prost(enumeration = "unnest_options::NullHandling", tag = "3")]
729    pub null_handling: i32,
730    #[prost(message, repeated, tag = "2")]
731    pub recursions: ::prost::alloc::vec::Vec<RecursionUnnestOption>,
732}
733/// Nested message and enum types in `UnnestOptions`.
734pub mod unnest_options {
735    #[derive(
736        Clone,
737        Copy,
738        Debug,
739        PartialEq,
740        Eq,
741        Hash,
742        PartialOrd,
743        Ord,
744        ::prost::Enumeration
745    )]
746    #[repr(i32)]
747    pub enum NullHandling {
748        /// Preserve nulls; empty lists produce no rows. The historical default.
749        Preserve = 0,
750        /// Drop both null and empty lists from the output.
751        Drop = 1,
752        /// Preserve nulls, and additionally expand empty lists into a single
753        /// NULL output row (outer-unnest semantics).
754        PreserveAndExpandEmpty = 2,
755    }
756    impl NullHandling {
757        /// String value of the enum field names used in the ProtoBuf definition.
758        ///
759        /// The values are not transformed in any way and thus are considered stable
760        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
761        pub fn as_str_name(&self) -> &'static str {
762            match self {
763                Self::Preserve => "PRESERVE",
764                Self::Drop => "DROP",
765                Self::PreserveAndExpandEmpty => "PRESERVE_AND_EXPAND_EMPTY",
766            }
767        }
768        /// Creates an enum from field names used in the ProtoBuf definition.
769        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
770            match value {
771                "PRESERVE" => Some(Self::Preserve),
772                "DROP" => Some(Self::Drop),
773                "PRESERVE_AND_EXPAND_EMPTY" => Some(Self::PreserveAndExpandEmpty),
774                _ => None,
775            }
776        }
777    }
778}
779#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
780pub struct RecursionUnnestOption {
781    #[prost(message, optional, tag = "1")]
782    pub output_column: ::core::option::Option<super::datafusion_common::Column>,
783    #[prost(message, optional, tag = "2")]
784    pub input_column: ::core::option::Option<super::datafusion_common::Column>,
785    #[prost(uint32, tag = "3")]
786    pub depth: u32,
787}
788#[derive(Clone, PartialEq, ::prost::Message)]
789pub struct UnionNode {
790    #[prost(message, repeated, tag = "1")]
791    pub inputs: ::prost::alloc::vec::Vec<LogicalPlanNode>,
792}
793#[derive(Clone, PartialEq, ::prost::Message)]
794pub struct CrossJoinNode {
795    #[prost(message, optional, boxed, tag = "1")]
796    pub left: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
797    #[prost(message, optional, boxed, tag = "2")]
798    pub right: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
799}
800#[derive(Clone, PartialEq, ::prost::Message)]
801pub struct LimitNode {
802    #[prost(message, optional, boxed, tag = "1")]
803    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
804    /// The number of rows to skip before fetch; non-positive means don't skip any
805    #[prost(int64, tag = "2")]
806    pub skip: i64,
807    /// Maximum number of rows to fetch; negative means no limit
808    #[prost(int64, tag = "3")]
809    pub fetch: i64,
810}
811#[derive(Clone, PartialEq, ::prost::Message)]
812pub struct SelectionExecNode {
813    #[prost(message, optional, tag = "1")]
814    pub expr: ::core::option::Option<LogicalExprNode>,
815}
816#[derive(Clone, PartialEq, ::prost::Message)]
817pub struct SubqueryAliasNode {
818    #[prost(message, optional, boxed, tag = "1")]
819    pub input: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
820    #[prost(message, optional, tag = "3")]
821    pub alias: ::core::option::Option<TableReference>,
822}
823/// logical expressions
824#[derive(Clone, PartialEq, ::prost::Message)]
825pub struct LogicalExprNode {
826    #[prost(
827        oneof = "logical_expr_node::ExprType",
828        tags = "1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 13, 14, 15, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39"
829    )]
830    pub expr_type: ::core::option::Option<logical_expr_node::ExprType>,
831}
832/// Nested message and enum types in `LogicalExprNode`.
833pub mod logical_expr_node {
834    #[derive(Clone, PartialEq, ::prost::Oneof)]
835    pub enum ExprType {
836        /// column references
837        #[prost(message, tag = "1")]
838        Column(super::super::datafusion_common::Column),
839        /// alias
840        #[prost(message, tag = "2")]
841        Alias(::prost::alloc::boxed::Box<super::AliasNode>),
842        #[prost(message, tag = "3")]
843        Literal(super::super::datafusion_common::ScalarValue),
844        /// binary expressions
845        #[prost(message, tag = "4")]
846        BinaryExpr(super::BinaryExprNode),
847        /// null checks
848        #[prost(message, tag = "6")]
849        IsNullExpr(::prost::alloc::boxed::Box<super::IsNull>),
850        #[prost(message, tag = "7")]
851        IsNotNullExpr(::prost::alloc::boxed::Box<super::IsNotNull>),
852        #[prost(message, tag = "8")]
853        NotExpr(::prost::alloc::boxed::Box<super::Not>),
854        #[prost(message, tag = "9")]
855        Between(::prost::alloc::boxed::Box<super::BetweenNode>),
856        #[prost(message, tag = "10")]
857        Case(::prost::alloc::boxed::Box<super::CaseNode>),
858        #[prost(message, tag = "11")]
859        Cast(::prost::alloc::boxed::Box<super::CastNode>),
860        #[prost(message, tag = "13")]
861        Negative(::prost::alloc::boxed::Box<super::NegativeNode>),
862        #[prost(message, tag = "14")]
863        InList(::prost::alloc::boxed::Box<super::InListNode>),
864        #[prost(message, tag = "15")]
865        Wildcard(super::Wildcard),
866        /// was  ScalarFunctionNode scalar_function = 16;
867        #[prost(message, tag = "17")]
868        TryCast(::prost::alloc::boxed::Box<super::TryCastNode>),
869        /// window expressions
870        #[prost(message, tag = "18")]
871        WindowExpr(::prost::alloc::boxed::Box<super::WindowExprNode>),
872        /// AggregateUDF expressions
873        #[prost(message, tag = "19")]
874        AggregateUdfExpr(::prost::alloc::boxed::Box<super::AggregateUdfExprNode>),
875        /// Scalar UDF expressions
876        #[prost(message, tag = "20")]
877        ScalarUdfExpr(super::ScalarUdfExprNode),
878        #[prost(message, tag = "22")]
879        GroupingSet(super::GroupingSetNode),
880        #[prost(message, tag = "23")]
881        Cube(super::CubeNode),
882        #[prost(message, tag = "24")]
883        Rollup(super::RollupNode),
884        #[prost(message, tag = "25")]
885        IsTrue(::prost::alloc::boxed::Box<super::IsTrue>),
886        #[prost(message, tag = "26")]
887        IsFalse(::prost::alloc::boxed::Box<super::IsFalse>),
888        #[prost(message, tag = "27")]
889        IsUnknown(::prost::alloc::boxed::Box<super::IsUnknown>),
890        #[prost(message, tag = "28")]
891        IsNotTrue(::prost::alloc::boxed::Box<super::IsNotTrue>),
892        #[prost(message, tag = "29")]
893        IsNotFalse(::prost::alloc::boxed::Box<super::IsNotFalse>),
894        #[prost(message, tag = "30")]
895        IsNotUnknown(::prost::alloc::boxed::Box<super::IsNotUnknown>),
896        #[prost(message, tag = "31")]
897        Like(::prost::alloc::boxed::Box<super::LikeNode>),
898        #[prost(message, tag = "32")]
899        Ilike(::prost::alloc::boxed::Box<super::ILikeNode>),
900        #[prost(message, tag = "33")]
901        SimilarTo(::prost::alloc::boxed::Box<super::SimilarToNode>),
902        #[prost(message, tag = "34")]
903        Placeholder(super::PlaceholderNode),
904        #[prost(message, tag = "35")]
905        Unnest(super::Unnest),
906        /// Subquery expressions
907        #[prost(message, tag = "36")]
908        ScalarSubqueryExpr(::prost::alloc::boxed::Box<super::ScalarSubqueryExprNode>),
909        #[prost(message, tag = "37")]
910        HigherOrderUdfExpr(super::HigherOrderUdfExprNode),
911        #[prost(message, tag = "38")]
912        Lambda(::prost::alloc::boxed::Box<super::Lambda>),
913        #[prost(message, tag = "39")]
914        LambdaVariable(super::LambdaVariable),
915    }
916}
917#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
918pub struct Wildcard {
919    #[prost(message, optional, tag = "1")]
920    pub qualifier: ::core::option::Option<TableReference>,
921}
922#[derive(Clone, PartialEq, ::prost::Message)]
923pub struct SubqueryNode {
924    #[prost(message, optional, boxed, tag = "1")]
925    pub subquery: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
926    #[prost(message, repeated, tag = "2")]
927    pub outer_ref_columns: ::prost::alloc::vec::Vec<LogicalExprNode>,
928}
929#[derive(Clone, PartialEq, ::prost::Message)]
930pub struct ScalarSubqueryExprNode {
931    #[prost(message, optional, boxed, tag = "1")]
932    pub subquery: ::core::option::Option<::prost::alloc::boxed::Box<SubqueryNode>>,
933}
934#[derive(Clone, PartialEq, ::prost::Message)]
935pub struct PlaceholderNode {
936    #[prost(string, tag = "1")]
937    pub id: ::prost::alloc::string::String,
938    /// We serialize the data type, metadata, and nullability separately to maintain
939    /// compatibility with older versions
940    #[prost(message, optional, tag = "2")]
941    pub data_type: ::core::option::Option<super::datafusion_common::ArrowType>,
942    #[prost(bool, optional, tag = "3")]
943    pub nullable: ::core::option::Option<bool>,
944    #[prost(map = "string, string", tag = "4")]
945    pub metadata: ::std::collections::HashMap<
946        ::prost::alloc::string::String,
947        ::prost::alloc::string::String,
948    >,
949}
950#[derive(Clone, PartialEq, ::prost::Message)]
951pub struct LogicalExprList {
952    #[prost(message, repeated, tag = "1")]
953    pub expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
954}
955#[derive(Clone, PartialEq, ::prost::Message)]
956pub struct GroupingSetNode {
957    #[prost(message, repeated, tag = "1")]
958    pub expr: ::prost::alloc::vec::Vec<LogicalExprList>,
959}
960#[derive(Clone, PartialEq, ::prost::Message)]
961pub struct CubeNode {
962    #[prost(message, repeated, tag = "1")]
963    pub expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
964}
965#[derive(Clone, PartialEq, ::prost::Message)]
966pub struct RollupNode {
967    #[prost(message, repeated, tag = "1")]
968    pub expr: ::prost::alloc::vec::Vec<LogicalExprNode>,
969}
970#[derive(Clone, PartialEq, ::prost::Message)]
971pub struct NamedStructField {
972    #[prost(message, optional, tag = "1")]
973    pub name: ::core::option::Option<super::datafusion_common::ScalarValue>,
974}
975#[derive(Clone, PartialEq, ::prost::Message)]
976pub struct ListIndex {
977    #[prost(message, optional, tag = "1")]
978    pub key: ::core::option::Option<LogicalExprNode>,
979}
980#[derive(Clone, PartialEq, ::prost::Message)]
981pub struct ListRange {
982    #[prost(message, optional, tag = "1")]
983    pub start: ::core::option::Option<LogicalExprNode>,
984    #[prost(message, optional, tag = "2")]
985    pub stop: ::core::option::Option<LogicalExprNode>,
986    #[prost(message, optional, tag = "3")]
987    pub stride: ::core::option::Option<LogicalExprNode>,
988}
989#[derive(Clone, PartialEq, ::prost::Message)]
990pub struct IsNull {
991    #[prost(message, optional, boxed, tag = "1")]
992    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
993}
994#[derive(Clone, PartialEq, ::prost::Message)]
995pub struct IsNotNull {
996    #[prost(message, optional, boxed, tag = "1")]
997    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
998}
999#[derive(Clone, PartialEq, ::prost::Message)]
1000pub struct IsTrue {
1001    #[prost(message, optional, boxed, tag = "1")]
1002    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1003}
1004#[derive(Clone, PartialEq, ::prost::Message)]
1005pub struct IsFalse {
1006    #[prost(message, optional, boxed, tag = "1")]
1007    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1008}
1009#[derive(Clone, PartialEq, ::prost::Message)]
1010pub struct IsUnknown {
1011    #[prost(message, optional, boxed, tag = "1")]
1012    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1013}
1014#[derive(Clone, PartialEq, ::prost::Message)]
1015pub struct IsNotTrue {
1016    #[prost(message, optional, boxed, tag = "1")]
1017    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1018}
1019#[derive(Clone, PartialEq, ::prost::Message)]
1020pub struct IsNotFalse {
1021    #[prost(message, optional, boxed, tag = "1")]
1022    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1023}
1024#[derive(Clone, PartialEq, ::prost::Message)]
1025pub struct IsNotUnknown {
1026    #[prost(message, optional, boxed, tag = "1")]
1027    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1028}
1029#[derive(Clone, PartialEq, ::prost::Message)]
1030pub struct Not {
1031    #[prost(message, optional, boxed, tag = "1")]
1032    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1033}
1034#[derive(Clone, PartialEq, ::prost::Message)]
1035pub struct AliasNode {
1036    #[prost(message, optional, boxed, tag = "1")]
1037    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1038    #[prost(string, tag = "2")]
1039    pub alias: ::prost::alloc::string::String,
1040    #[prost(message, repeated, tag = "3")]
1041    pub relation: ::prost::alloc::vec::Vec<TableReference>,
1042    #[prost(map = "string, string", tag = "4")]
1043    pub metadata: ::std::collections::HashMap<
1044        ::prost::alloc::string::String,
1045        ::prost::alloc::string::String,
1046    >,
1047}
1048#[derive(Clone, PartialEq, ::prost::Message)]
1049pub struct BinaryExprNode {
1050    /// Represents the operands from the left inner most expression
1051    /// to the right outer most expression where each of them are chained
1052    /// with the operator 'op'.
1053    #[prost(message, repeated, tag = "1")]
1054    pub operands: ::prost::alloc::vec::Vec<LogicalExprNode>,
1055    #[prost(string, tag = "3")]
1056    pub op: ::prost::alloc::string::String,
1057}
1058#[derive(Clone, PartialEq, ::prost::Message)]
1059pub struct NegativeNode {
1060    #[prost(message, optional, boxed, tag = "1")]
1061    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1062}
1063#[derive(Clone, PartialEq, ::prost::Message)]
1064pub struct Unnest {
1065    #[prost(message, repeated, tag = "1")]
1066    pub exprs: ::prost::alloc::vec::Vec<LogicalExprNode>,
1067    /// When true, this Unnest expression has outer-unnest semantics: NULL and
1068    /// empty input lists both produce a single NULL output row.
1069    #[prost(bool, tag = "2")]
1070    pub outer: bool,
1071}
1072#[derive(Clone, PartialEq, ::prost::Message)]
1073pub struct InListNode {
1074    #[prost(message, optional, boxed, tag = "1")]
1075    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1076    #[prost(message, repeated, tag = "2")]
1077    pub list: ::prost::alloc::vec::Vec<LogicalExprNode>,
1078    #[prost(bool, tag = "3")]
1079    pub negated: bool,
1080}
1081#[derive(Clone, PartialEq, ::prost::Message)]
1082pub struct AggregateUdfExprNode {
1083    #[prost(string, tag = "1")]
1084    pub fun_name: ::prost::alloc::string::String,
1085    #[prost(message, repeated, tag = "2")]
1086    pub args: ::prost::alloc::vec::Vec<LogicalExprNode>,
1087    #[prost(bool, tag = "5")]
1088    pub distinct: bool,
1089    #[prost(message, optional, boxed, tag = "3")]
1090    pub filter: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1091    #[prost(message, repeated, tag = "4")]
1092    pub order_by: ::prost::alloc::vec::Vec<SortExprNode>,
1093    #[prost(bytes = "vec", optional, tag = "6")]
1094    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1095    #[prost(enumeration = "NullTreatment", optional, tag = "7")]
1096    pub null_treatment: ::core::option::Option<i32>,
1097}
1098#[derive(Clone, PartialEq, ::prost::Message)]
1099pub struct ScalarUdfExprNode {
1100    #[prost(string, tag = "1")]
1101    pub fun_name: ::prost::alloc::string::String,
1102    #[prost(message, repeated, tag = "2")]
1103    pub args: ::prost::alloc::vec::Vec<LogicalExprNode>,
1104    #[prost(bytes = "vec", optional, tag = "3")]
1105    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1106}
1107#[derive(Clone, PartialEq, ::prost::Message)]
1108pub struct HigherOrderUdfExprNode {
1109    #[prost(string, tag = "1")]
1110    pub fun_name: ::prost::alloc::string::String,
1111    #[prost(message, repeated, tag = "2")]
1112    pub args: ::prost::alloc::vec::Vec<LogicalExprNode>,
1113    #[prost(bytes = "vec", optional, tag = "3")]
1114    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1115}
1116#[derive(Clone, PartialEq, ::prost::Message)]
1117pub struct Lambda {
1118    #[prost(string, repeated, tag = "1")]
1119    pub params: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1120    #[prost(message, optional, boxed, tag = "2")]
1121    pub body: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1122}
1123#[derive(Clone, PartialEq, ::prost::Message)]
1124pub struct LambdaVariable {
1125    #[prost(string, tag = "1")]
1126    pub name: ::prost::alloc::string::String,
1127    #[prost(message, optional, tag = "2")]
1128    pub field: ::core::option::Option<super::datafusion_common::Field>,
1129}
1130#[derive(Clone, PartialEq, ::prost::Message)]
1131pub struct WindowExprNode {
1132    #[prost(message, repeated, tag = "4")]
1133    pub exprs: ::prost::alloc::vec::Vec<LogicalExprNode>,
1134    #[prost(message, repeated, tag = "5")]
1135    pub partition_by: ::prost::alloc::vec::Vec<LogicalExprNode>,
1136    #[prost(message, repeated, tag = "6")]
1137    pub order_by: ::prost::alloc::vec::Vec<SortExprNode>,
1138    /// repeated LogicalExprNode filter = 7;
1139    #[prost(message, optional, tag = "8")]
1140    pub window_frame: ::core::option::Option<WindowFrame>,
1141    #[prost(bytes = "vec", optional, tag = "10")]
1142    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1143    #[prost(enumeration = "NullTreatment", optional, tag = "11")]
1144    pub null_treatment: ::core::option::Option<i32>,
1145    #[prost(bool, tag = "12")]
1146    pub distinct: bool,
1147    #[prost(message, optional, boxed, tag = "13")]
1148    pub filter: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1149    #[prost(oneof = "window_expr_node::WindowFunction", tags = "3, 9")]
1150    pub window_function: ::core::option::Option<window_expr_node::WindowFunction>,
1151}
1152/// Nested message and enum types in `WindowExprNode`.
1153pub mod window_expr_node {
1154    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1155    pub enum WindowFunction {
1156        /// BuiltInWindowFunction built_in_function = 2;
1157        #[prost(string, tag = "3")]
1158        Udaf(::prost::alloc::string::String),
1159        #[prost(string, tag = "9")]
1160        Udwf(::prost::alloc::string::String),
1161    }
1162}
1163#[derive(Clone, PartialEq, ::prost::Message)]
1164pub struct BetweenNode {
1165    #[prost(message, optional, boxed, tag = "1")]
1166    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1167    #[prost(bool, tag = "2")]
1168    pub negated: bool,
1169    #[prost(message, optional, boxed, tag = "3")]
1170    pub low: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1171    #[prost(message, optional, boxed, tag = "4")]
1172    pub high: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1173}
1174#[derive(Clone, PartialEq, ::prost::Message)]
1175pub struct LikeNode {
1176    #[prost(bool, tag = "1")]
1177    pub negated: bool,
1178    #[prost(message, optional, boxed, tag = "2")]
1179    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1180    #[prost(message, optional, boxed, tag = "3")]
1181    pub pattern: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1182    #[prost(string, tag = "4")]
1183    pub escape_char: ::prost::alloc::string::String,
1184}
1185#[derive(Clone, PartialEq, ::prost::Message)]
1186pub struct ILikeNode {
1187    #[prost(bool, tag = "1")]
1188    pub negated: bool,
1189    #[prost(message, optional, boxed, tag = "2")]
1190    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1191    #[prost(message, optional, boxed, tag = "3")]
1192    pub pattern: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1193    #[prost(string, tag = "4")]
1194    pub escape_char: ::prost::alloc::string::String,
1195}
1196#[derive(Clone, PartialEq, ::prost::Message)]
1197pub struct SimilarToNode {
1198    #[prost(bool, tag = "1")]
1199    pub negated: bool,
1200    #[prost(message, optional, boxed, tag = "2")]
1201    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1202    #[prost(message, optional, boxed, tag = "3")]
1203    pub pattern: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1204    #[prost(string, tag = "4")]
1205    pub escape_char: ::prost::alloc::string::String,
1206}
1207#[derive(Clone, PartialEq, ::prost::Message)]
1208pub struct CaseNode {
1209    #[prost(message, optional, boxed, tag = "1")]
1210    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1211    #[prost(message, repeated, tag = "2")]
1212    pub when_then_expr: ::prost::alloc::vec::Vec<WhenThen>,
1213    #[prost(message, optional, boxed, tag = "3")]
1214    pub else_expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1215}
1216#[derive(Clone, PartialEq, ::prost::Message)]
1217pub struct WhenThen {
1218    #[prost(message, optional, tag = "1")]
1219    pub when_expr: ::core::option::Option<LogicalExprNode>,
1220    #[prost(message, optional, tag = "2")]
1221    pub then_expr: ::core::option::Option<LogicalExprNode>,
1222}
1223#[derive(Clone, PartialEq, ::prost::Message)]
1224pub struct CastNode {
1225    #[prost(message, optional, boxed, tag = "1")]
1226    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1227    #[prost(message, optional, tag = "2")]
1228    pub arrow_type: ::core::option::Option<super::datafusion_common::ArrowType>,
1229    #[prost(map = "string, string", tag = "3")]
1230    pub metadata: ::std::collections::HashMap<
1231        ::prost::alloc::string::String,
1232        ::prost::alloc::string::String,
1233    >,
1234    #[prost(bool, optional, tag = "4")]
1235    pub nullable: ::core::option::Option<bool>,
1236}
1237#[derive(Clone, PartialEq, ::prost::Message)]
1238pub struct TryCastNode {
1239    #[prost(message, optional, boxed, tag = "1")]
1240    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<LogicalExprNode>>,
1241    #[prost(message, optional, tag = "2")]
1242    pub arrow_type: ::core::option::Option<super::datafusion_common::ArrowType>,
1243    #[prost(map = "string, string", tag = "3")]
1244    pub metadata: ::std::collections::HashMap<
1245        ::prost::alloc::string::String,
1246        ::prost::alloc::string::String,
1247    >,
1248    #[prost(bool, optional, tag = "4")]
1249    pub nullable: ::core::option::Option<bool>,
1250}
1251#[derive(Clone, PartialEq, ::prost::Message)]
1252pub struct SortExprNode {
1253    #[prost(message, optional, tag = "1")]
1254    pub expr: ::core::option::Option<LogicalExprNode>,
1255    #[prost(bool, tag = "2")]
1256    pub asc: bool,
1257    #[prost(bool, tag = "3")]
1258    pub nulls_first: bool,
1259}
1260#[derive(Clone, PartialEq, ::prost::Message)]
1261pub struct WindowFrame {
1262    #[prost(enumeration = "WindowFrameUnits", tag = "1")]
1263    pub window_frame_units: i32,
1264    #[prost(message, optional, tag = "2")]
1265    pub start_bound: ::core::option::Option<WindowFrameBound>,
1266    /// "optional" keyword is stable in protoc 3.15 but prost is still on 3.14 (see <https://github.com/tokio-rs/prost/issues/430> and <https://github.com/tokio-rs/prost/pull/455>)
1267    /// this syntax is ugly but is binary compatible with the "optional" keyword (see <https://stackoverflow.com/questions/42622015/how-to-define-an-optional-field-in-protobuf-3>)
1268    #[prost(oneof = "window_frame::EndBound", tags = "3")]
1269    pub end_bound: ::core::option::Option<window_frame::EndBound>,
1270}
1271/// Nested message and enum types in `WindowFrame`.
1272pub mod window_frame {
1273    /// "optional" keyword is stable in protoc 3.15 but prost is still on 3.14 (see <https://github.com/tokio-rs/prost/issues/430> and <https://github.com/tokio-rs/prost/pull/455>)
1274    /// this syntax is ugly but is binary compatible with the "optional" keyword (see <https://stackoverflow.com/questions/42622015/how-to-define-an-optional-field-in-protobuf-3>)
1275    #[derive(Clone, PartialEq, ::prost::Oneof)]
1276    pub enum EndBound {
1277        #[prost(message, tag = "3")]
1278        Bound(super::WindowFrameBound),
1279    }
1280}
1281#[derive(Clone, PartialEq, ::prost::Message)]
1282pub struct WindowFrameBound {
1283    #[prost(enumeration = "WindowFrameBoundType", tag = "1")]
1284    pub window_frame_bound_type: i32,
1285    #[prost(message, optional, tag = "2")]
1286    pub bound_value: ::core::option::Option<super::datafusion_common::ScalarValue>,
1287}
1288#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1289pub struct FixedSizeBinary {
1290    #[prost(int32, tag = "1")]
1291    pub length: i32,
1292}
1293#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1294pub struct AnalyzedLogicalPlanType {
1295    #[prost(string, tag = "1")]
1296    pub analyzer_name: ::prost::alloc::string::String,
1297}
1298#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1299pub struct OptimizedLogicalPlanType {
1300    #[prost(string, tag = "1")]
1301    pub optimizer_name: ::prost::alloc::string::String,
1302}
1303#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1304pub struct OptimizedPhysicalPlanType {
1305    #[prost(string, tag = "1")]
1306    pub optimizer_name: ::prost::alloc::string::String,
1307}
1308#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1309pub struct PlanType {
1310    #[prost(
1311        oneof = "plan_type::PlanTypeEnum",
1312        tags = "1, 7, 8, 2, 3, 4, 9, 11, 5, 6, 10, 12, 13"
1313    )]
1314    pub plan_type_enum: ::core::option::Option<plan_type::PlanTypeEnum>,
1315}
1316/// Nested message and enum types in `PlanType`.
1317pub mod plan_type {
1318    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1319    pub enum PlanTypeEnum {
1320        #[prost(message, tag = "1")]
1321        InitialLogicalPlan(super::super::datafusion_common::EmptyMessage),
1322        #[prost(message, tag = "7")]
1323        AnalyzedLogicalPlan(super::AnalyzedLogicalPlanType),
1324        #[prost(message, tag = "8")]
1325        FinalAnalyzedLogicalPlan(super::super::datafusion_common::EmptyMessage),
1326        #[prost(message, tag = "2")]
1327        OptimizedLogicalPlan(super::OptimizedLogicalPlanType),
1328        #[prost(message, tag = "3")]
1329        FinalLogicalPlan(super::super::datafusion_common::EmptyMessage),
1330        #[prost(message, tag = "4")]
1331        InitialPhysicalPlan(super::super::datafusion_common::EmptyMessage),
1332        #[prost(message, tag = "9")]
1333        InitialPhysicalPlanWithStats(super::super::datafusion_common::EmptyMessage),
1334        #[prost(message, tag = "11")]
1335        InitialPhysicalPlanWithSchema(super::super::datafusion_common::EmptyMessage),
1336        #[prost(message, tag = "5")]
1337        OptimizedPhysicalPlan(super::OptimizedPhysicalPlanType),
1338        #[prost(message, tag = "6")]
1339        FinalPhysicalPlan(super::super::datafusion_common::EmptyMessage),
1340        #[prost(message, tag = "10")]
1341        FinalPhysicalPlanWithStats(super::super::datafusion_common::EmptyMessage),
1342        #[prost(message, tag = "12")]
1343        FinalPhysicalPlanWithSchema(super::super::datafusion_common::EmptyMessage),
1344        #[prost(message, tag = "13")]
1345        PhysicalPlanError(super::super::datafusion_common::EmptyMessage),
1346    }
1347}
1348#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1349pub struct StringifiedPlan {
1350    #[prost(message, optional, tag = "1")]
1351    pub plan_type: ::core::option::Option<PlanType>,
1352    #[prost(string, tag = "2")]
1353    pub plan: ::prost::alloc::string::String,
1354}
1355#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1356pub struct BareTableReference {
1357    #[prost(string, tag = "1")]
1358    pub table: ::prost::alloc::string::String,
1359}
1360#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1361pub struct PartialTableReference {
1362    #[prost(string, tag = "1")]
1363    pub schema: ::prost::alloc::string::String,
1364    #[prost(string, tag = "2")]
1365    pub table: ::prost::alloc::string::String,
1366}
1367#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1368pub struct FullTableReference {
1369    #[prost(string, tag = "1")]
1370    pub catalog: ::prost::alloc::string::String,
1371    #[prost(string, tag = "2")]
1372    pub schema: ::prost::alloc::string::String,
1373    #[prost(string, tag = "3")]
1374    pub table: ::prost::alloc::string::String,
1375}
1376#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1377pub struct TableReference {
1378    #[prost(oneof = "table_reference::TableReferenceEnum", tags = "1, 2, 3")]
1379    pub table_reference_enum: ::core::option::Option<
1380        table_reference::TableReferenceEnum,
1381    >,
1382}
1383/// Nested message and enum types in `TableReference`.
1384pub mod table_reference {
1385    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1386    pub enum TableReferenceEnum {
1387        #[prost(message, tag = "1")]
1388        Bare(super::BareTableReference),
1389        #[prost(message, tag = "2")]
1390        Partial(super::PartialTableReference),
1391        #[prost(message, tag = "3")]
1392        Full(super::FullTableReference),
1393    }
1394}
1395/// PhysicalPlanNode is a nested type
1396#[derive(Clone, PartialEq, ::prost::Message)]
1397pub struct PhysicalPlanNode {
1398    #[prost(
1399        oneof = "physical_plan_node::PhysicalPlanType",
1400        tags = "1, 2, 3, 4, 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"
1401    )]
1402    pub physical_plan_type: ::core::option::Option<physical_plan_node::PhysicalPlanType>,
1403}
1404/// Nested message and enum types in `PhysicalPlanNode`.
1405pub mod physical_plan_node {
1406    #[derive(Clone, PartialEq, ::prost::Oneof)]
1407    pub enum PhysicalPlanType {
1408        #[prost(message, tag = "1")]
1409        ParquetScan(super::ParquetScanExecNode),
1410        #[prost(message, tag = "2")]
1411        CsvScan(super::CsvScanExecNode),
1412        #[prost(message, tag = "3")]
1413        Empty(super::EmptyExecNode),
1414        #[prost(message, tag = "4")]
1415        Projection(::prost::alloc::boxed::Box<super::ProjectionExecNode>),
1416        #[prost(message, tag = "6")]
1417        GlobalLimit(::prost::alloc::boxed::Box<super::GlobalLimitExecNode>),
1418        #[prost(message, tag = "7")]
1419        LocalLimit(::prost::alloc::boxed::Box<super::LocalLimitExecNode>),
1420        #[prost(message, tag = "8")]
1421        Aggregate(::prost::alloc::boxed::Box<super::AggregateExecNode>),
1422        #[prost(message, tag = "9")]
1423        HashJoin(::prost::alloc::boxed::Box<super::HashJoinExecNode>),
1424        #[prost(message, tag = "10")]
1425        Sort(::prost::alloc::boxed::Box<super::SortExecNode>),
1426        #[prost(message, tag = "11")]
1427        CoalesceBatches(::prost::alloc::boxed::Box<super::CoalesceBatchesExecNode>),
1428        #[prost(message, tag = "12")]
1429        Filter(::prost::alloc::boxed::Box<super::FilterExecNode>),
1430        #[prost(message, tag = "13")]
1431        Merge(::prost::alloc::boxed::Box<super::CoalescePartitionsExecNode>),
1432        #[prost(message, tag = "14")]
1433        Repartition(::prost::alloc::boxed::Box<super::RepartitionExecNode>),
1434        #[prost(message, tag = "15")]
1435        Window(::prost::alloc::boxed::Box<super::WindowAggExecNode>),
1436        #[prost(message, tag = "16")]
1437        CrossJoin(::prost::alloc::boxed::Box<super::CrossJoinExecNode>),
1438        #[prost(message, tag = "17")]
1439        AvroScan(super::AvroScanExecNode),
1440        #[prost(message, tag = "18")]
1441        Extension(super::PhysicalExtensionNode),
1442        #[prost(message, tag = "19")]
1443        Union(super::UnionExecNode),
1444        #[prost(message, tag = "20")]
1445        Explain(super::ExplainExecNode),
1446        #[prost(message, tag = "21")]
1447        SortPreservingMerge(
1448            ::prost::alloc::boxed::Box<super::SortPreservingMergeExecNode>,
1449        ),
1450        #[prost(message, tag = "22")]
1451        NestedLoopJoin(::prost::alloc::boxed::Box<super::NestedLoopJoinExecNode>),
1452        #[prost(message, tag = "23")]
1453        Analyze(::prost::alloc::boxed::Box<super::AnalyzeExecNode>),
1454        #[prost(message, tag = "24")]
1455        JsonSink(::prost::alloc::boxed::Box<super::JsonSinkExecNode>),
1456        #[prost(message, tag = "25")]
1457        SymmetricHashJoin(::prost::alloc::boxed::Box<super::SymmetricHashJoinExecNode>),
1458        #[prost(message, tag = "26")]
1459        Interleave(super::InterleaveExecNode),
1460        #[prost(message, tag = "27")]
1461        PlaceholderRow(super::PlaceholderRowExecNode),
1462        #[prost(message, tag = "28")]
1463        CsvSink(::prost::alloc::boxed::Box<super::CsvSinkExecNode>),
1464        #[prost(message, tag = "29")]
1465        ParquetSink(::prost::alloc::boxed::Box<super::ParquetSinkExecNode>),
1466        #[prost(message, tag = "30")]
1467        Unnest(::prost::alloc::boxed::Box<super::UnnestExecNode>),
1468        #[prost(message, tag = "31")]
1469        JsonScan(super::JsonScanExecNode),
1470        #[prost(message, tag = "32")]
1471        Cooperative(::prost::alloc::boxed::Box<super::CooperativeExecNode>),
1472        #[prost(message, tag = "33")]
1473        GenerateSeries(super::GenerateSeriesNode),
1474        #[prost(message, tag = "34")]
1475        SortMergeJoin(::prost::alloc::boxed::Box<super::SortMergeJoinExecNode>),
1476        #[prost(message, tag = "35")]
1477        MemoryScan(super::MemoryScanExecNode),
1478        #[prost(message, tag = "36")]
1479        AsyncFunc(::prost::alloc::boxed::Box<super::AsyncFuncExecNode>),
1480        #[prost(message, tag = "37")]
1481        Buffer(::prost::alloc::boxed::Box<super::BufferExecNode>),
1482        #[prost(message, tag = "38")]
1483        ArrowScan(super::ArrowScanExecNode),
1484        #[prost(message, tag = "39")]
1485        ScalarSubquery(::prost::alloc::boxed::Box<super::ScalarSubqueryExecNode>),
1486        #[prost(message, tag = "40")]
1487        PiecewiseMergeJoin(
1488            ::prost::alloc::boxed::Box<super::PiecewiseMergeJoinExecNode>,
1489        ),
1490        #[prost(message, tag = "41")]
1491        AsOfJoin(::prost::alloc::boxed::Box<super::AsOfJoinExecNode>),
1492    }
1493}
1494#[derive(Clone, PartialEq, ::prost::Message)]
1495pub struct PartitionColumn {
1496    #[prost(string, tag = "1")]
1497    pub name: ::prost::alloc::string::String,
1498    #[prost(message, optional, tag = "2")]
1499    pub arrow_type: ::core::option::Option<super::datafusion_common::ArrowType>,
1500}
1501#[derive(Clone, PartialEq, ::prost::Message)]
1502pub struct FileSinkConfig {
1503    #[prost(string, tag = "1")]
1504    pub object_store_url: ::prost::alloc::string::String,
1505    #[prost(message, repeated, tag = "2")]
1506    pub file_groups: ::prost::alloc::vec::Vec<PartitionedFile>,
1507    #[prost(string, repeated, tag = "3")]
1508    pub table_paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1509    #[prost(message, optional, tag = "4")]
1510    pub output_schema: ::core::option::Option<super::datafusion_common::Schema>,
1511    #[prost(message, repeated, tag = "5")]
1512    pub table_partition_cols: ::prost::alloc::vec::Vec<PartitionColumn>,
1513    #[prost(bool, tag = "9")]
1514    pub keep_partition_by_columns: bool,
1515    #[prost(enumeration = "InsertOp", tag = "10")]
1516    pub insert_op: i32,
1517    #[prost(string, tag = "11")]
1518    pub file_extension: ::prost::alloc::string::String,
1519    /// Determines how the output path is interpreted.
1520    #[prost(enumeration = "FileOutputMode", tag = "12")]
1521    pub file_output_mode: i32,
1522}
1523#[derive(Clone, PartialEq, ::prost::Message)]
1524pub struct JsonSink {
1525    #[prost(message, optional, tag = "1")]
1526    pub config: ::core::option::Option<FileSinkConfig>,
1527    #[prost(message, optional, tag = "2")]
1528    pub writer_options: ::core::option::Option<
1529        super::datafusion_common::JsonWriterOptions,
1530    >,
1531}
1532#[derive(Clone, PartialEq, ::prost::Message)]
1533pub struct JsonSinkExecNode {
1534    #[prost(message, optional, boxed, tag = "1")]
1535    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
1536    #[prost(message, optional, tag = "2")]
1537    pub sink: ::core::option::Option<JsonSink>,
1538    #[prost(message, optional, tag = "3")]
1539    pub sink_schema: ::core::option::Option<super::datafusion_common::Schema>,
1540    #[prost(message, optional, tag = "4")]
1541    pub sort_order: ::core::option::Option<PhysicalSortExprNodeCollection>,
1542}
1543#[derive(Clone, PartialEq, ::prost::Message)]
1544pub struct CsvSink {
1545    #[prost(message, optional, tag = "1")]
1546    pub config: ::core::option::Option<FileSinkConfig>,
1547    #[prost(message, optional, tag = "2")]
1548    pub writer_options: ::core::option::Option<
1549        super::datafusion_common::CsvWriterOptions,
1550    >,
1551}
1552#[derive(Clone, PartialEq, ::prost::Message)]
1553pub struct CsvSinkExecNode {
1554    #[prost(message, optional, boxed, tag = "1")]
1555    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
1556    #[prost(message, optional, tag = "2")]
1557    pub sink: ::core::option::Option<CsvSink>,
1558    #[prost(message, optional, tag = "3")]
1559    pub sink_schema: ::core::option::Option<super::datafusion_common::Schema>,
1560    #[prost(message, optional, tag = "4")]
1561    pub sort_order: ::core::option::Option<PhysicalSortExprNodeCollection>,
1562}
1563#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1564pub struct ParquetSortingColumn {
1565    /// Zero-based ordinal of the leaf column in the Parquet schema.
1566    #[prost(int32, tag = "1")]
1567    pub column_idx: i32,
1568    /// Whether the column is sorted in descending order.
1569    #[prost(bool, tag = "2")]
1570    pub descending: bool,
1571    /// Whether nulls sort before non-null values.
1572    #[prost(bool, tag = "3")]
1573    pub nulls_first: bool,
1574}
1575#[derive(Clone, PartialEq, ::prost::Message)]
1576pub struct ParquetSortingColumns {
1577    /// The wrapper preserves the distinction between no sorting metadata and an empty list.
1578    #[prost(message, repeated, tag = "1")]
1579    pub columns: ::prost::alloc::vec::Vec<ParquetSortingColumn>,
1580}
1581#[derive(Clone, PartialEq, ::prost::Message)]
1582pub struct ParquetSink {
1583    #[prost(message, optional, tag = "1")]
1584    pub config: ::core::option::Option<FileSinkConfig>,
1585    #[prost(message, optional, tag = "2")]
1586    pub parquet_options: ::core::option::Option<
1587        super::datafusion_common::TableParquetOptions,
1588    >,
1589    /// Sorting-column metadata to write to each Parquet row group.
1590    #[prost(message, optional, tag = "3")]
1591    pub sorting_columns: ::core::option::Option<ParquetSortingColumns>,
1592}
1593#[derive(Clone, PartialEq, ::prost::Message)]
1594pub struct ParquetSinkExecNode {
1595    #[prost(message, optional, boxed, tag = "1")]
1596    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
1597    #[prost(message, optional, tag = "2")]
1598    pub sink: ::core::option::Option<ParquetSink>,
1599    #[prost(message, optional, tag = "3")]
1600    pub sink_schema: ::core::option::Option<super::datafusion_common::Schema>,
1601    #[prost(message, optional, tag = "4")]
1602    pub sort_order: ::core::option::Option<PhysicalSortExprNodeCollection>,
1603}
1604#[derive(Clone, PartialEq, ::prost::Message)]
1605pub struct UnnestExecNode {
1606    #[prost(message, optional, boxed, tag = "1")]
1607    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
1608    #[prost(message, optional, tag = "2")]
1609    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
1610    #[prost(message, repeated, tag = "3")]
1611    pub list_type_columns: ::prost::alloc::vec::Vec<ListUnnest>,
1612    #[prost(uint64, repeated, tag = "4")]
1613    pub struct_type_columns: ::prost::alloc::vec::Vec<u64>,
1614    #[prost(message, optional, tag = "5")]
1615    pub options: ::core::option::Option<UnnestOptions>,
1616}
1617#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1618pub struct ListUnnest {
1619    #[prost(uint32, tag = "1")]
1620    pub index_in_input_schema: u32,
1621    #[prost(uint32, tag = "2")]
1622    pub depth: u32,
1623}
1624#[derive(Clone, PartialEq, ::prost::Message)]
1625pub struct PhysicalExtensionNode {
1626    #[prost(bytes = "vec", tag = "1")]
1627    pub node: ::prost::alloc::vec::Vec<u8>,
1628    #[prost(message, repeated, tag = "2")]
1629    pub inputs: ::prost::alloc::vec::Vec<PhysicalPlanNode>,
1630    /// Globally unique, namespaced name of the extension plan type (e.g.
1631    /// `my-crate.MyExec`), written by plans that serialize themselves through
1632    /// `ExecutionPlan::try_to_proto`. When present and registered on the decoding
1633    /// session, it selects the decoder directly; otherwise decoding falls back to
1634    /// the `PhysicalExtensionCodec` chain. Absent for codec-encoded plans.
1635    #[prost(string, optional, tag = "3")]
1636    pub plan_name: ::core::option::Option<::prost::alloc::string::String>,
1637}
1638/// physical expressions
1639#[derive(Clone, PartialEq, ::prost::Message)]
1640pub struct PhysicalExprNode {
1641    /// Unique identifier for this expression to do deduplication during deserialization.
1642    /// When serializing, this is set via `PhysicalExpr::expression_id`. When deserializing,
1643    /// this id is used by the `DeduplicatingProtoConverter` to preserve referential
1644    /// integrity across serde roundtrips for different expressions with the same id.
1645    #[prost(uint64, optional, tag = "30")]
1646    pub expr_id: ::core::option::Option<u64>,
1647    #[prost(
1648        oneof = "physical_expr_node::ExprType",
1649        tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29"
1650    )]
1651    pub expr_type: ::core::option::Option<physical_expr_node::ExprType>,
1652}
1653/// Nested message and enum types in `PhysicalExprNode`.
1654pub mod physical_expr_node {
1655    #[derive(Clone, PartialEq, ::prost::Oneof)]
1656    pub enum ExprType {
1657        /// column references
1658        #[prost(message, tag = "1")]
1659        Column(super::PhysicalColumn),
1660        #[prost(message, tag = "2")]
1661        Literal(super::super::datafusion_common::ScalarValue),
1662        /// binary expressions
1663        #[prost(message, tag = "3")]
1664        BinaryExpr(::prost::alloc::boxed::Box<super::PhysicalBinaryExprNode>),
1665        /// aggregate expressions
1666        #[prost(message, tag = "4")]
1667        AggregateExpr(super::PhysicalAggregateExprNode),
1668        /// null checks
1669        #[prost(message, tag = "5")]
1670        IsNullExpr(::prost::alloc::boxed::Box<super::PhysicalIsNull>),
1671        #[prost(message, tag = "6")]
1672        IsNotNullExpr(::prost::alloc::boxed::Box<super::PhysicalIsNotNull>),
1673        #[prost(message, tag = "7")]
1674        NotExpr(::prost::alloc::boxed::Box<super::PhysicalNot>),
1675        #[prost(message, tag = "8")]
1676        Case(::prost::alloc::boxed::Box<super::PhysicalCaseNode>),
1677        #[prost(message, tag = "9")]
1678        Cast(::prost::alloc::boxed::Box<super::PhysicalCastNode>),
1679        #[prost(message, tag = "10")]
1680        Sort(::prost::alloc::boxed::Box<super::PhysicalSortExprNode>),
1681        #[prost(message, tag = "11")]
1682        Negative(::prost::alloc::boxed::Box<super::PhysicalNegativeNode>),
1683        #[prost(message, tag = "12")]
1684        InList(::prost::alloc::boxed::Box<super::PhysicalInListNode>),
1685        ///   was PhysicalScalarFunctionNode scalar_function = 13;
1686        #[prost(message, tag = "14")]
1687        TryCast(::prost::alloc::boxed::Box<super::PhysicalTryCastNode>),
1688        /// window expressions
1689        #[prost(message, tag = "15")]
1690        WindowExpr(super::PhysicalWindowExprNode),
1691        /// was PhysicalDateTimeIntervalExprNode date_time_interval_expr = 17;
1692        #[prost(message, tag = "16")]
1693        ScalarUdf(super::PhysicalScalarUdfNode),
1694        #[prost(message, tag = "18")]
1695        LikeExpr(::prost::alloc::boxed::Box<super::PhysicalLikeExprNode>),
1696        #[prost(message, tag = "19")]
1697        Extension(super::PhysicalExtensionExprNode),
1698        #[prost(message, tag = "20")]
1699        UnknownColumn(super::UnknownColumn),
1700        #[prost(message, tag = "21")]
1701        HashExpr(super::PhysicalHashExprNode),
1702        #[prost(message, tag = "22")]
1703        ScalarSubquery(super::PhysicalScalarSubqueryExprNode),
1704        #[prost(message, tag = "23")]
1705        DynamicFilter(::prost::alloc::boxed::Box<super::PhysicalDynamicFilterNode>),
1706        #[prost(message, tag = "24")]
1707        HigherOrderUdf(super::PhysicalHigherOrderUdfNode),
1708        #[prost(message, tag = "25")]
1709        Lambda(::prost::alloc::boxed::Box<super::PhysicalLambdaExprNode>),
1710        #[prost(message, tag = "26")]
1711        LambdaVariable(super::PhysicalLambdaVariableExprNode),
1712        #[prost(message, tag = "27")]
1713        RangeExpr(super::PhysicalRangeExprNode),
1714        #[prost(message, tag = "28")]
1715        SqlSimilarToPattern(
1716            ::prost::alloc::boxed::Box<super::PhysicalSqlSimilarToPatternNode>,
1717        ),
1718        #[prost(message, tag = "29")]
1719        LiteralWithMetadata(super::PhysicalLiteralNode),
1720    }
1721}
1722#[derive(Clone, PartialEq, ::prost::Message)]
1723pub struct PhysicalLiteralNode {
1724    #[prost(message, optional, tag = "1")]
1725    pub value: ::core::option::Option<super::datafusion_common::ScalarValue>,
1726    #[prost(map = "string, string", tag = "2")]
1727    pub metadata: ::std::collections::HashMap<
1728        ::prost::alloc::string::String,
1729        ::prost::alloc::string::String,
1730    >,
1731}
1732#[derive(Clone, PartialEq, ::prost::Message)]
1733pub struct PhysicalDynamicFilterNode {
1734    #[prost(message, repeated, tag = "1")]
1735    pub children: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1736    #[prost(message, repeated, tag = "2")]
1737    pub remapped_children: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1738    #[prost(uint64, tag = "3")]
1739    pub generation: u64,
1740    #[prost(message, optional, boxed, tag = "4")]
1741    pub inner_expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1742    #[prost(bool, tag = "5")]
1743    pub is_complete: bool,
1744}
1745#[derive(Clone, PartialEq, ::prost::Message)]
1746pub struct PhysicalSqlSimilarToPatternNode {
1747    #[prost(message, optional, boxed, tag = "1")]
1748    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1749}
1750#[derive(Clone, PartialEq, ::prost::Message)]
1751pub struct PhysicalScalarUdfNode {
1752    #[prost(string, tag = "1")]
1753    pub name: ::prost::alloc::string::String,
1754    #[prost(message, repeated, tag = "2")]
1755    pub args: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1756    #[prost(bytes = "vec", optional, tag = "3")]
1757    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1758    #[prost(message, optional, tag = "4")]
1759    pub return_type: ::core::option::Option<super::datafusion_common::ArrowType>,
1760    #[prost(bool, tag = "5")]
1761    pub nullable: bool,
1762    #[prost(string, tag = "6")]
1763    pub return_field_name: ::prost::alloc::string::String,
1764}
1765#[derive(Clone, PartialEq, ::prost::Message)]
1766pub struct PhysicalHigherOrderUdfNode {
1767    #[prost(string, tag = "1")]
1768    pub name: ::prost::alloc::string::String,
1769    #[prost(message, repeated, tag = "2")]
1770    pub args: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1771    #[prost(bytes = "vec", optional, tag = "3")]
1772    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1773}
1774#[derive(Clone, PartialEq, ::prost::Message)]
1775pub struct PhysicalLambdaExprNode {
1776    #[prost(string, repeated, tag = "1")]
1777    pub params: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1778    #[prost(message, optional, boxed, tag = "2")]
1779    pub body: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1780}
1781#[derive(Clone, PartialEq, ::prost::Message)]
1782pub struct PhysicalLambdaVariableExprNode {
1783    #[prost(uint32, tag = "1")]
1784    pub index: u32,
1785    #[prost(message, optional, tag = "2")]
1786    pub field: ::core::option::Option<super::datafusion_common::Field>,
1787}
1788#[derive(Clone, PartialEq, ::prost::Message)]
1789pub struct PhysicalAggregateExprNode {
1790    #[prost(message, repeated, tag = "2")]
1791    pub expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1792    #[prost(message, repeated, tag = "5")]
1793    pub ordering_req: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
1794    #[prost(bool, tag = "3")]
1795    pub distinct: bool,
1796    #[prost(bool, tag = "6")]
1797    pub ignore_nulls: bool,
1798    #[prost(bytes = "vec", optional, tag = "7")]
1799    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1800    #[prost(string, tag = "8")]
1801    pub human_display: ::prost::alloc::string::String,
1802    #[prost(bool, tag = "9")]
1803    pub is_reversed: bool,
1804    #[prost(oneof = "physical_aggregate_expr_node::AggregateFunction", tags = "4")]
1805    pub aggregate_function: ::core::option::Option<
1806        physical_aggregate_expr_node::AggregateFunction,
1807    >,
1808}
1809/// Nested message and enum types in `PhysicalAggregateExprNode`.
1810pub mod physical_aggregate_expr_node {
1811    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1812    pub enum AggregateFunction {
1813        #[prost(string, tag = "4")]
1814        UserDefinedAggrFunction(::prost::alloc::string::String),
1815    }
1816}
1817#[derive(Clone, PartialEq, ::prost::Message)]
1818pub struct PhysicalWindowExprNode {
1819    #[prost(message, repeated, tag = "4")]
1820    pub args: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1821    #[prost(message, repeated, tag = "5")]
1822    pub partition_by: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1823    #[prost(message, repeated, tag = "6")]
1824    pub order_by: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
1825    #[prost(message, optional, tag = "7")]
1826    pub window_frame: ::core::option::Option<WindowFrame>,
1827    #[prost(string, tag = "8")]
1828    pub name: ::prost::alloc::string::String,
1829    #[prost(bytes = "vec", optional, tag = "9")]
1830    pub fun_definition: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
1831    #[prost(bool, tag = "11")]
1832    pub ignore_nulls: bool,
1833    #[prost(bool, tag = "12")]
1834    pub distinct: bool,
1835    #[prost(oneof = "physical_window_expr_node::WindowFunction", tags = "3, 10")]
1836    pub window_function: ::core::option::Option<
1837        physical_window_expr_node::WindowFunction,
1838    >,
1839}
1840/// Nested message and enum types in `PhysicalWindowExprNode`.
1841pub mod physical_window_expr_node {
1842    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1843    pub enum WindowFunction {
1844        /// BuiltInWindowFunction built_in_function = 2;
1845        #[prost(string, tag = "3")]
1846        UserDefinedAggrFunction(::prost::alloc::string::String),
1847        #[prost(string, tag = "10")]
1848        UserDefinedWindowFunction(::prost::alloc::string::String),
1849    }
1850}
1851#[derive(Clone, PartialEq, ::prost::Message)]
1852pub struct PhysicalIsNull {
1853    #[prost(message, optional, boxed, tag = "1")]
1854    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1855}
1856#[derive(Clone, PartialEq, ::prost::Message)]
1857pub struct PhysicalIsNotNull {
1858    #[prost(message, optional, boxed, tag = "1")]
1859    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1860}
1861#[derive(Clone, PartialEq, ::prost::Message)]
1862pub struct PhysicalNot {
1863    #[prost(message, optional, boxed, tag = "1")]
1864    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1865}
1866#[derive(Clone, PartialEq, ::prost::Message)]
1867pub struct PhysicalAliasNode {
1868    #[prost(message, optional, tag = "1")]
1869    pub expr: ::core::option::Option<PhysicalExprNode>,
1870    #[prost(string, tag = "2")]
1871    pub alias: ::prost::alloc::string::String,
1872}
1873#[derive(Clone, PartialEq, ::prost::Message)]
1874pub struct PhysicalBinaryExprNode {
1875    #[prost(message, optional, boxed, tag = "1")]
1876    pub l: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1877    #[prost(message, optional, boxed, tag = "2")]
1878    pub r: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1879    #[prost(string, tag = "3")]
1880    pub op: ::prost::alloc::string::String,
1881    /// Linearized operands for chains of the same operator and overflow policy.
1882    /// When present, `l` and `r` are ignored and `operands` holds the flattened list.
1883    #[prost(message, repeated, tag = "4")]
1884    pub operands: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1885    #[prost(bool, tag = "5")]
1886    pub fail_on_overflow: bool,
1887}
1888#[derive(Clone, PartialEq, ::prost::Message)]
1889pub struct PhysicalDateTimeIntervalExprNode {
1890    #[prost(message, optional, tag = "1")]
1891    pub l: ::core::option::Option<PhysicalExprNode>,
1892    #[prost(message, optional, tag = "2")]
1893    pub r: ::core::option::Option<PhysicalExprNode>,
1894    #[prost(string, tag = "3")]
1895    pub op: ::prost::alloc::string::String,
1896}
1897#[derive(Clone, PartialEq, ::prost::Message)]
1898pub struct PhysicalLikeExprNode {
1899    #[prost(bool, tag = "1")]
1900    pub negated: bool,
1901    #[prost(bool, tag = "2")]
1902    pub case_insensitive: bool,
1903    #[prost(message, optional, boxed, tag = "3")]
1904    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1905    #[prost(message, optional, boxed, tag = "4")]
1906    pub pattern: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1907}
1908#[derive(Clone, PartialEq, ::prost::Message)]
1909pub struct PhysicalSortExprNode {
1910    #[prost(message, optional, boxed, tag = "1")]
1911    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1912    #[prost(bool, tag = "2")]
1913    pub asc: bool,
1914    #[prost(bool, tag = "3")]
1915    pub nulls_first: bool,
1916}
1917#[derive(Clone, PartialEq, ::prost::Message)]
1918pub struct PhysicalWhenThen {
1919    #[prost(message, optional, tag = "1")]
1920    pub when_expr: ::core::option::Option<PhysicalExprNode>,
1921    #[prost(message, optional, tag = "2")]
1922    pub then_expr: ::core::option::Option<PhysicalExprNode>,
1923}
1924#[derive(Clone, PartialEq, ::prost::Message)]
1925pub struct PhysicalInListNode {
1926    #[prost(message, optional, boxed, tag = "1")]
1927    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1928    #[prost(message, repeated, tag = "2")]
1929    pub list: ::prost::alloc::vec::Vec<PhysicalExprNode>,
1930    #[prost(bool, tag = "3")]
1931    pub negated: bool,
1932}
1933#[derive(Clone, PartialEq, ::prost::Message)]
1934pub struct PhysicalCaseNode {
1935    #[prost(message, optional, boxed, tag = "1")]
1936    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1937    #[prost(message, repeated, tag = "2")]
1938    pub when_then_expr: ::prost::alloc::vec::Vec<PhysicalWhenThen>,
1939    #[prost(message, optional, boxed, tag = "3")]
1940    pub else_expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1941}
1942#[derive(Clone, PartialEq, ::prost::Message)]
1943pub struct PhysicalTryCastNode {
1944    #[prost(message, optional, boxed, tag = "1")]
1945    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1946    #[prost(message, optional, tag = "2")]
1947    pub arrow_type: ::core::option::Option<super::datafusion_common::ArrowType>,
1948    /// Present only for an explicit target. Absent nodes retain the legacy
1949    /// type-only behavior, inheriting metadata from the input expression.
1950    #[prost(message, optional, tag = "3")]
1951    pub target_field: ::core::option::Option<super::datafusion_common::Field>,
1952}
1953#[derive(Clone, PartialEq, ::prost::Message)]
1954pub struct PhysicalCastNode {
1955    #[prost(message, optional, boxed, tag = "1")]
1956    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
1957    #[prost(message, optional, tag = "2")]
1958    pub arrow_type: ::core::option::Option<super::datafusion_common::ArrowType>,
1959    /// Present only for an explicit target. Absent nodes retain the legacy
1960    /// type-only behavior, inheriting metadata and nullability from the input.
1961    #[prost(message, optional, tag = "3")]
1962    pub target_field: ::core::option::Option<super::datafusion_common::Field>,
1963    /// Absent means DataFusion's default cast options.
1964    #[prost(message, optional, tag = "4")]
1965    pub cast_options: ::core::option::Option<PhysicalCastOptions>,
1966}
1967#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1968pub struct PhysicalCastOptions {
1969    #[prost(bool, tag = "1")]
1970    pub safe: bool,
1971    #[prost(message, optional, tag = "2")]
1972    pub format_options: ::core::option::Option<PhysicalFormatOptions>,
1973}
1974#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1975pub struct PhysicalFormatOptions {
1976    #[prost(bool, tag = "1")]
1977    pub safe: bool,
1978    #[prost(string, tag = "2")]
1979    pub null: ::prost::alloc::string::String,
1980    #[prost(string, optional, tag = "3")]
1981    pub date_format: ::core::option::Option<::prost::alloc::string::String>,
1982    #[prost(string, optional, tag = "4")]
1983    pub datetime_format: ::core::option::Option<::prost::alloc::string::String>,
1984    #[prost(string, optional, tag = "5")]
1985    pub timestamp_format: ::core::option::Option<::prost::alloc::string::String>,
1986    #[prost(string, optional, tag = "6")]
1987    pub timestamp_tz_format: ::core::option::Option<::prost::alloc::string::String>,
1988    #[prost(string, optional, tag = "7")]
1989    pub time_format: ::core::option::Option<::prost::alloc::string::String>,
1990    #[prost(enumeration = "PhysicalDurationFormat", tag = "8")]
1991    pub duration_format: i32,
1992    #[prost(bool, tag = "9")]
1993    pub types_info: bool,
1994    #[prost(bool, tag = "10")]
1995    pub quoted_strings: bool,
1996}
1997#[derive(Clone, PartialEq, ::prost::Message)]
1998pub struct PhysicalNegativeNode {
1999    #[prost(message, optional, boxed, tag = "1")]
2000    pub expr: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalExprNode>>,
2001}
2002#[derive(Clone, PartialEq, ::prost::Message)]
2003pub struct PhysicalExtensionExprNode {
2004    #[prost(bytes = "vec", tag = "1")]
2005    pub expr: ::prost::alloc::vec::Vec<u8>,
2006    #[prost(message, repeated, tag = "2")]
2007    pub inputs: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2008    /// Optional type discriminator naming the extension expression, e.g.
2009    /// "my_crate.MyExpr". When present and registered in the session's
2010    /// ProtoDecoderRegistry, decoding is routed to that registered
2011    /// decoder; otherwise it falls back to PhysicalExtensionCodec::try_decode_expr.
2012    #[prost(string, optional, tag = "3")]
2013    pub expr_name: ::core::option::Option<::prost::alloc::string::String>,
2014}
2015#[derive(Clone, PartialEq, ::prost::Message)]
2016pub struct PhysicalHashExprNode {
2017    #[prost(message, repeated, tag = "1")]
2018    pub on_columns: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2019    #[prost(uint64, tag = "2")]
2020    pub seed0: u64,
2021    #[prost(string, tag = "6")]
2022    pub description: ::prost::alloc::string::String,
2023}
2024#[derive(Clone, PartialEq, ::prost::Message)]
2025pub struct PhysicalRangeExprNode {
2026    #[prost(message, repeated, tag = "1")]
2027    pub sort_expr: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2028    #[prost(message, repeated, tag = "2")]
2029    pub split_point: ::prost::alloc::vec::Vec<PhysicalRangeSplitPoint>,
2030}
2031#[derive(Clone, PartialEq, ::prost::Message)]
2032pub struct FilterExecNode {
2033    #[prost(message, optional, boxed, tag = "1")]
2034    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2035    #[prost(message, optional, tag = "2")]
2036    pub expr: ::core::option::Option<PhysicalExprNode>,
2037    #[prost(uint32, tag = "3")]
2038    pub default_filter_selectivity: u32,
2039    #[prost(uint32, repeated, tag = "9")]
2040    pub projection: ::prost::alloc::vec::Vec<u32>,
2041    #[prost(uint32, tag = "10")]
2042    pub batch_size: u32,
2043    #[prost(uint32, optional, tag = "11")]
2044    pub fetch: ::core::option::Option<u32>,
2045}
2046#[derive(Clone, PartialEq, ::prost::Message)]
2047pub struct FileGroup {
2048    #[prost(message, repeated, tag = "1")]
2049    pub files: ::prost::alloc::vec::Vec<PartitionedFile>,
2050}
2051#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2052pub struct ScanLimit {
2053    /// wrap into a message to make it optional
2054    #[prost(uint32, tag = "1")]
2055    pub limit: u32,
2056}
2057#[derive(Clone, PartialEq, ::prost::Message)]
2058pub struct PhysicalSortExprNodeCollection {
2059    #[prost(message, repeated, tag = "1")]
2060    pub physical_sort_expr_nodes: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2061}
2062#[derive(Clone, PartialEq, ::prost::Message)]
2063pub struct ProjectionExpr {
2064    #[prost(string, tag = "1")]
2065    pub alias: ::prost::alloc::string::String,
2066    #[prost(message, optional, tag = "2")]
2067    pub expr: ::core::option::Option<PhysicalExprNode>,
2068}
2069#[derive(Clone, PartialEq, ::prost::Message)]
2070pub struct ProjectionExprs {
2071    #[prost(message, repeated, tag = "1")]
2072    pub projections: ::prost::alloc::vec::Vec<ProjectionExpr>,
2073}
2074#[derive(Clone, PartialEq, ::prost::Message)]
2075pub struct FileScanExecConf {
2076    #[prost(message, repeated, tag = "1")]
2077    pub file_groups: ::prost::alloc::vec::Vec<FileGroup>,
2078    #[prost(message, optional, tag = "2")]
2079    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2080    #[prost(uint32, repeated, tag = "4")]
2081    pub projection: ::prost::alloc::vec::Vec<u32>,
2082    #[prost(message, optional, tag = "5")]
2083    pub limit: ::core::option::Option<ScanLimit>,
2084    #[prost(message, optional, tag = "6")]
2085    pub statistics: ::core::option::Option<super::datafusion_common::Statistics>,
2086    #[prost(string, repeated, tag = "7")]
2087    pub table_partition_cols: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2088    #[prost(string, tag = "8")]
2089    pub object_store_url: ::prost::alloc::string::String,
2090    #[prost(message, repeated, tag = "9")]
2091    pub output_ordering: ::prost::alloc::vec::Vec<PhysicalSortExprNodeCollection>,
2092    #[prost(message, optional, tag = "11")]
2093    pub constraints: ::core::option::Option<super::datafusion_common::Constraints>,
2094    #[prost(uint64, optional, tag = "12")]
2095    pub batch_size: ::core::option::Option<u64>,
2096    #[prost(message, optional, tag = "13")]
2097    pub projection_exprs: ::core::option::Option<ProjectionExprs>,
2098    #[prost(message, optional, tag = "15")]
2099    pub output_partitioning: ::core::option::Option<Partitioning>,
2100    /// Compression used by formats such as CSV and JSON. Absent means uncompressed
2101    /// for compatibility with payloads written before this field existed.
2102    #[prost(
2103        enumeration = "super::datafusion_common::CompressionTypeVariant",
2104        optional,
2105        tag = "16"
2106    )]
2107    pub file_compression_type: ::core::option::Option<i32>,
2108    /// Whether file processing order must be preserved. Absent payloads retain the
2109    /// legacy behavior of deriving this from output_ordering.
2110    #[prost(bool, optional, tag = "17")]
2111    pub preserve_order: ::core::option::Option<bool>,
2112}
2113#[derive(Clone, PartialEq, ::prost::Message)]
2114pub struct ParquetScanExecNode {
2115    #[prost(message, optional, tag = "1")]
2116    pub base_conf: ::core::option::Option<FileScanExecConf>,
2117    #[prost(message, optional, tag = "3")]
2118    pub predicate: ::core::option::Option<PhysicalExprNode>,
2119    #[prost(message, optional, tag = "4")]
2120    pub parquet_options: ::core::option::Option<
2121        super::datafusion_common::TableParquetOptions,
2122    >,
2123    #[prost(message, optional, tag = "5")]
2124    pub sort_order_for_reorder: ::core::option::Option<PhysicalSortExprNodeCollection>,
2125    #[prost(bool, tag = "6")]
2126    pub reverse_row_groups: bool,
2127    /// Source-specific footer prefetch size. Absent means no hint.
2128    #[prost(uint64, optional, tag = "7")]
2129    pub metadata_size_hint: ::core::option::Option<u64>,
2130}
2131#[derive(Clone, PartialEq, ::prost::Message)]
2132pub struct CsvScanExecNode {
2133    #[prost(message, optional, tag = "1")]
2134    pub base_conf: ::core::option::Option<FileScanExecConf>,
2135    #[prost(bool, tag = "2")]
2136    pub has_header: bool,
2137    #[prost(string, tag = "3")]
2138    pub delimiter: ::prost::alloc::string::String,
2139    #[prost(string, tag = "4")]
2140    pub quote: ::prost::alloc::string::String,
2141    #[prost(bool, tag = "7")]
2142    pub newlines_in_values: bool,
2143    #[prost(bool, tag = "8")]
2144    pub truncate_rows: bool,
2145    /// Custom one-byte line terminator. Absent means the default newline terminator.
2146    #[prost(bytes = "vec", optional, tag = "9")]
2147    pub terminator: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
2148    #[prost(oneof = "csv_scan_exec_node::OptionalEscape", tags = "5")]
2149    pub optional_escape: ::core::option::Option<csv_scan_exec_node::OptionalEscape>,
2150    #[prost(oneof = "csv_scan_exec_node::OptionalComment", tags = "6")]
2151    pub optional_comment: ::core::option::Option<csv_scan_exec_node::OptionalComment>,
2152}
2153/// Nested message and enum types in `CsvScanExecNode`.
2154pub mod csv_scan_exec_node {
2155    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
2156    pub enum OptionalEscape {
2157        #[prost(string, tag = "5")]
2158        Escape(::prost::alloc::string::String),
2159    }
2160    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
2161    pub enum OptionalComment {
2162        #[prost(string, tag = "6")]
2163        Comment(::prost::alloc::string::String),
2164    }
2165}
2166#[derive(Clone, PartialEq, ::prost::Message)]
2167pub struct JsonScanExecNode {
2168    #[prost(message, optional, tag = "1")]
2169    pub base_conf: ::core::option::Option<FileScanExecConf>,
2170    /// Absent means newline-delimited JSON for compatibility with older payloads.
2171    #[prost(bool, optional, tag = "2")]
2172    pub newline_delimited: ::core::option::Option<bool>,
2173}
2174#[derive(Clone, PartialEq, ::prost::Message)]
2175pub struct AvroScanExecNode {
2176    #[prost(message, optional, tag = "1")]
2177    pub base_conf: ::core::option::Option<FileScanExecConf>,
2178}
2179#[derive(Clone, PartialEq, ::prost::Message)]
2180pub struct ArrowScanExecNode {
2181    #[prost(message, optional, tag = "1")]
2182    pub base_conf: ::core::option::Option<FileScanExecConf>,
2183    #[prost(enumeration = "ArrowIpcFormat", tag = "2")]
2184    pub format: i32,
2185}
2186#[derive(Clone, PartialEq, ::prost::Message)]
2187pub struct MemoryScanExecNode {
2188    #[prost(bytes = "vec", repeated, tag = "1")]
2189    pub partitions: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
2190    #[prost(message, optional, tag = "2")]
2191    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2192    #[prost(uint32, repeated, tag = "3")]
2193    pub projection: ::prost::alloc::vec::Vec<u32>,
2194    #[prost(message, repeated, tag = "4")]
2195    pub sort_information: ::prost::alloc::vec::Vec<PhysicalSortExprNodeCollection>,
2196    #[prost(bool, tag = "5")]
2197    pub show_sizes: bool,
2198    #[prost(uint32, optional, tag = "6")]
2199    pub fetch: ::core::option::Option<u32>,
2200}
2201#[derive(Clone, PartialEq, ::prost::Message)]
2202pub struct CooperativeExecNode {
2203    #[prost(message, optional, boxed, tag = "1")]
2204    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2205}
2206#[derive(Clone, PartialEq, ::prost::Message)]
2207pub struct HashJoinExecNode {
2208    #[prost(message, optional, boxed, tag = "1")]
2209    pub left: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2210    #[prost(message, optional, boxed, tag = "2")]
2211    pub right: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2212    #[prost(message, repeated, tag = "3")]
2213    pub on: ::prost::alloc::vec::Vec<JoinOn>,
2214    #[prost(enumeration = "super::datafusion_common::JoinType", tag = "4")]
2215    pub join_type: i32,
2216    #[prost(enumeration = "PartitionMode", tag = "6")]
2217    pub partition_mode: i32,
2218    #[prost(enumeration = "super::datafusion_common::NullEquality", tag = "7")]
2219    pub null_equality: i32,
2220    #[prost(message, optional, tag = "8")]
2221    pub filter: ::core::option::Option<JoinFilter>,
2222    #[prost(uint32, repeated, tag = "9")]
2223    pub projection: ::prost::alloc::vec::Vec<u32>,
2224    #[prost(bool, tag = "10")]
2225    pub null_aware: bool,
2226    /// Optional dynamic filter expression for pushing down to the probe side.
2227    #[prost(message, optional, tag = "11")]
2228    pub dynamic_filter: ::core::option::Option<PhysicalExprNode>,
2229    /// Optional row limit pushed into the join by the `limit_pushdown` rule.
2230    ///
2231    /// This is presence-tracked (`optional`) on purpose: messages produced by
2232    /// versions predating this field carry no `fetch` at all, and a plain proto3
2233    /// scalar would decode that absence as `0`, i.e. "fetch 0 rows", silently
2234    /// turning old plans into empty results. With `optional`, absent decodes to
2235    /// `None`, which is the correct reading of an older message.
2236    #[prost(uint64, optional, tag = "12")]
2237    pub fetch: ::core::option::Option<u64>,
2238    /// Number of `NOT IN` value keys of a null-aware join (see
2239    /// `HashJoinExec::null_aware_value_keys`). 0 is an unset count, accepted
2240    /// only for a single key. Messages predating this field decode it as 0:
2241    /// they can only hold scalar `NOT IN` joins.
2242    #[prost(uint32, tag = "13")]
2243    pub null_aware_value_keys: u32,
2244}
2245#[derive(Clone, PartialEq, ::prost::Message)]
2246pub struct SymmetricHashJoinExecNode {
2247    #[prost(message, optional, boxed, tag = "1")]
2248    pub left: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2249    #[prost(message, optional, boxed, tag = "2")]
2250    pub right: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2251    #[prost(message, repeated, tag = "3")]
2252    pub on: ::prost::alloc::vec::Vec<JoinOn>,
2253    #[prost(enumeration = "super::datafusion_common::JoinType", tag = "4")]
2254    pub join_type: i32,
2255    #[prost(enumeration = "StreamPartitionMode", tag = "6")]
2256    pub partition_mode: i32,
2257    #[prost(enumeration = "super::datafusion_common::NullEquality", tag = "7")]
2258    pub null_equality: i32,
2259    #[prost(message, optional, tag = "8")]
2260    pub filter: ::core::option::Option<JoinFilter>,
2261    #[prost(message, repeated, tag = "9")]
2262    pub left_sort_exprs: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2263    #[prost(message, repeated, tag = "10")]
2264    pub right_sort_exprs: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2265}
2266#[derive(Clone, PartialEq, ::prost::Message)]
2267pub struct InterleaveExecNode {
2268    #[prost(message, repeated, tag = "1")]
2269    pub inputs: ::prost::alloc::vec::Vec<PhysicalPlanNode>,
2270}
2271#[derive(Clone, PartialEq, ::prost::Message)]
2272pub struct UnionExecNode {
2273    #[prost(message, repeated, tag = "1")]
2274    pub inputs: ::prost::alloc::vec::Vec<PhysicalPlanNode>,
2275}
2276#[derive(Clone, PartialEq, ::prost::Message)]
2277pub struct ExplainExecNode {
2278    #[prost(message, optional, tag = "1")]
2279    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2280    #[prost(message, repeated, tag = "2")]
2281    pub stringified_plans: ::prost::alloc::vec::Vec<StringifiedPlan>,
2282    #[prost(bool, tag = "3")]
2283    pub verbose: bool,
2284}
2285#[derive(Clone, PartialEq, ::prost::Message)]
2286pub struct AnalyzeExecNode {
2287    #[prost(bool, tag = "1")]
2288    pub verbose: bool,
2289    #[prost(bool, tag = "2")]
2290    pub show_statistics: bool,
2291    #[prost(message, optional, boxed, tag = "3")]
2292    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2293    #[prost(message, optional, tag = "4")]
2294    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2295    /// Optional metric category filter.
2296    /// Empty means "plan only". Absent (has_metric_categories=false) means "all".
2297    #[prost(bool, tag = "5")]
2298    pub has_metric_categories: bool,
2299    #[prost(string, repeated, tag = "6")]
2300    pub metric_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2301    #[prost(enumeration = "super::datafusion_common::ExplainFormat", tag = "7")]
2302    pub format: i32,
2303    /// Whether metric_types is present. False means use SUMMARY and DEV.
2304    #[prost(bool, tag = "8")]
2305    pub has_metric_types: bool,
2306    /// Types of metrics to display.
2307    #[prost(enumeration = "super::datafusion_common::MetricType", repeated, tag = "9")]
2308    pub metric_types: ::prost::alloc::vec::Vec<i32>,
2309}
2310#[derive(Clone, PartialEq, ::prost::Message)]
2311pub struct CrossJoinExecNode {
2312    #[prost(message, optional, boxed, tag = "1")]
2313    pub left: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2314    #[prost(message, optional, boxed, tag = "2")]
2315    pub right: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2316}
2317#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2318pub struct PhysicalColumn {
2319    #[prost(string, tag = "1")]
2320    pub name: ::prost::alloc::string::String,
2321    #[prost(uint32, tag = "2")]
2322    pub index: u32,
2323}
2324#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2325pub struct UnknownColumn {
2326    #[prost(string, tag = "1")]
2327    pub name: ::prost::alloc::string::String,
2328}
2329#[derive(Clone, PartialEq, ::prost::Message)]
2330pub struct JoinOn {
2331    #[prost(message, optional, tag = "1")]
2332    pub left: ::core::option::Option<PhysicalExprNode>,
2333    #[prost(message, optional, tag = "2")]
2334    pub right: ::core::option::Option<PhysicalExprNode>,
2335}
2336#[derive(Clone, PartialEq, ::prost::Message)]
2337pub struct EmptyExecNode {
2338    #[prost(message, optional, tag = "1")]
2339    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2340    /// Number of output partitions. Absent (0) means a single partition, so that
2341    /// plans encoded before this field existed decode to the previous default.
2342    #[prost(uint32, tag = "2")]
2343    pub partitions: u32,
2344}
2345#[derive(Clone, PartialEq, ::prost::Message)]
2346pub struct PlaceholderRowExecNode {
2347    #[prost(message, optional, tag = "1")]
2348    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2349    /// Number of output partitions. Absent (0) means a single partition, so that
2350    /// plans encoded before this field existed decode to the previous default.
2351    #[prost(uint32, tag = "2")]
2352    pub partitions: u32,
2353}
2354#[derive(Clone, PartialEq, ::prost::Message)]
2355pub struct ProjectionExecNode {
2356    #[prost(message, optional, boxed, tag = "1")]
2357    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2358    #[prost(message, repeated, tag = "2")]
2359    pub expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2360    #[prost(string, repeated, tag = "3")]
2361    pub expr_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2362    /// Only field and schema metadata are used; output types are derived from expr.
2363    /// Present when the projection output has metadata or explicitly overrides
2364    /// inherited metadata, including an explicit clear. Absent for older plans
2365    /// and metadata-free projections.
2366    #[prost(message, optional, tag = "4")]
2367    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2368}
2369#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2370pub struct PartiallySortedInputOrderMode {
2371    #[prost(uint64, repeated, tag = "6")]
2372    pub columns: ::prost::alloc::vec::Vec<u64>,
2373}
2374#[derive(Clone, PartialEq, ::prost::Message)]
2375pub struct WindowAggExecNode {
2376    #[prost(message, optional, boxed, tag = "1")]
2377    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2378    #[prost(message, repeated, tag = "2")]
2379    pub window_expr: ::prost::alloc::vec::Vec<PhysicalWindowExprNode>,
2380    #[prost(message, repeated, tag = "5")]
2381    pub partition_keys: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2382    /// Set optional to `None` for `BoundedWindowAggExec`.
2383    #[prost(oneof = "window_agg_exec_node::InputOrderMode", tags = "7, 8, 9")]
2384    pub input_order_mode: ::core::option::Option<window_agg_exec_node::InputOrderMode>,
2385}
2386/// Nested message and enum types in `WindowAggExecNode`.
2387pub mod window_agg_exec_node {
2388    /// Set optional to `None` for `BoundedWindowAggExec`.
2389    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
2390    pub enum InputOrderMode {
2391        #[prost(message, tag = "7")]
2392        Linear(super::super::datafusion_common::EmptyMessage),
2393        #[prost(message, tag = "8")]
2394        PartiallySorted(super::PartiallySortedInputOrderMode),
2395        #[prost(message, tag = "9")]
2396        Sorted(super::super::datafusion_common::EmptyMessage),
2397    }
2398}
2399#[derive(Clone, PartialEq, ::prost::Message)]
2400pub struct MaybeFilter {
2401    #[prost(message, optional, tag = "1")]
2402    pub expr: ::core::option::Option<PhysicalExprNode>,
2403}
2404#[derive(Clone, PartialEq, ::prost::Message)]
2405pub struct MaybePhysicalSortExprs {
2406    #[prost(message, repeated, tag = "1")]
2407    pub sort_expr: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2408}
2409#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2410pub struct AggLimit {
2411    /// wrap into a message to make it optional
2412    #[prost(uint64, tag = "1")]
2413    pub limit: u64,
2414    /// Optional ordering direction for TopK aggregation (true = descending, false = ascending)
2415    #[prost(bool, optional, tag = "2")]
2416    pub descending: ::core::option::Option<bool>,
2417}
2418#[derive(Clone, PartialEq, ::prost::Message)]
2419pub struct AggregateExecNode {
2420    #[prost(message, repeated, tag = "1")]
2421    pub group_expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2422    #[prost(message, repeated, tag = "2")]
2423    pub aggr_expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2424    #[prost(enumeration = "AggregateMode", tag = "3")]
2425    pub mode: i32,
2426    #[prost(message, optional, boxed, tag = "4")]
2427    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2428    #[prost(string, repeated, tag = "5")]
2429    pub group_expr_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2430    #[prost(string, repeated, tag = "6")]
2431    pub aggr_expr_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2432    /// we need the input schema to the partial aggregate to pass to the final aggregate
2433    #[prost(message, optional, tag = "7")]
2434    pub input_schema: ::core::option::Option<super::datafusion_common::Schema>,
2435    #[prost(message, repeated, tag = "8")]
2436    pub null_expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2437    #[prost(bool, repeated, tag = "9")]
2438    pub groups: ::prost::alloc::vec::Vec<bool>,
2439    #[prost(message, repeated, tag = "10")]
2440    pub filter_expr: ::prost::alloc::vec::Vec<MaybeFilter>,
2441    #[prost(message, optional, tag = "11")]
2442    pub limit: ::core::option::Option<AggLimit>,
2443    #[prost(bool, tag = "12")]
2444    pub has_grouping_set: bool,
2445    /// Optional dynamic filter expression for pushing down to the child.
2446    #[prost(message, optional, tag = "13")]
2447    pub dynamic_filter: ::core::option::Option<PhysicalExprNode>,
2448    /// Output schema preserved by physical optimizer rewrites.
2449    #[prost(message, optional, tag = "14")]
2450    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2451}
2452#[derive(Clone, PartialEq, ::prost::Message)]
2453pub struct GlobalLimitExecNode {
2454    #[prost(message, optional, boxed, tag = "1")]
2455    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2456    /// The number of rows to skip before fetch
2457    #[prost(uint32, tag = "2")]
2458    pub skip: u32,
2459    /// Maximum number of rows to fetch; negative means no limit
2460    #[prost(int64, tag = "3")]
2461    pub fetch: i64,
2462    /// Deprecated since 56.0.0: no longer written, ignored when read
2463    #[prost(message, repeated, tag = "4")]
2464    pub required_ordering: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2465}
2466#[derive(Clone, PartialEq, ::prost::Message)]
2467pub struct LocalLimitExecNode {
2468    #[prost(message, optional, boxed, tag = "1")]
2469    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2470    #[prost(uint32, tag = "2")]
2471    pub fetch: u32,
2472    /// Deprecated since 56.0.0: no longer written, ignored when read
2473    #[prost(message, repeated, tag = "3")]
2474    pub required_ordering: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2475}
2476#[derive(Clone, PartialEq, ::prost::Message)]
2477pub struct SortExecNode {
2478    #[prost(message, optional, boxed, tag = "1")]
2479    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2480    #[prost(message, repeated, tag = "2")]
2481    pub expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2482    /// Maximum number of highest/lowest rows to fetch; negative means no limit
2483    #[prost(int64, tag = "3")]
2484    pub fetch: i64,
2485    #[prost(bool, tag = "4")]
2486    pub preserve_partitioning: bool,
2487    /// Optional dynamic filter expression for TopK pushdown.
2488    #[prost(message, optional, tag = "5")]
2489    pub dynamic_filter: ::core::option::Option<PhysicalExprNode>,
2490}
2491#[derive(Clone, PartialEq, ::prost::Message)]
2492pub struct SortPreservingMergeExecNode {
2493    #[prost(message, optional, boxed, tag = "1")]
2494    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2495    #[prost(message, repeated, tag = "2")]
2496    pub expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2497    /// Maximum number of highest/lowest rows to fetch; negative means no limit
2498    #[prost(int64, tag = "3")]
2499    pub fetch: i64,
2500}
2501#[derive(Clone, PartialEq, ::prost::Message)]
2502pub struct NestedLoopJoinExecNode {
2503    #[prost(message, optional, boxed, tag = "1")]
2504    pub left: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2505    #[prost(message, optional, boxed, tag = "2")]
2506    pub right: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2507    #[prost(enumeration = "super::datafusion_common::JoinType", tag = "3")]
2508    pub join_type: i32,
2509    #[prost(message, optional, tag = "4")]
2510    pub filter: ::core::option::Option<JoinFilter>,
2511    #[prost(uint32, repeated, tag = "5")]
2512    pub projection: ::prost::alloc::vec::Vec<u32>,
2513}
2514#[derive(Clone, PartialEq, ::prost::Message)]
2515pub struct CoalesceBatchesExecNode {
2516    #[prost(message, optional, boxed, tag = "1")]
2517    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2518    #[prost(uint32, tag = "2")]
2519    pub target_batch_size: u32,
2520    #[prost(uint32, optional, tag = "3")]
2521    pub fetch: ::core::option::Option<u32>,
2522}
2523#[derive(Clone, PartialEq, ::prost::Message)]
2524pub struct CoalescePartitionsExecNode {
2525    #[prost(message, optional, boxed, tag = "1")]
2526    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2527    #[prost(uint32, optional, tag = "2")]
2528    pub fetch: ::core::option::Option<u32>,
2529}
2530#[derive(Clone, PartialEq, ::prost::Message)]
2531pub struct PhysicalHashRepartition {
2532    #[prost(message, repeated, tag = "1")]
2533    pub hash_expr: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2534    #[prost(uint64, tag = "2")]
2535    pub partition_count: u64,
2536}
2537#[derive(Clone, PartialEq, ::prost::Message)]
2538pub struct PhysicalRangePartitioning {
2539    #[prost(message, repeated, tag = "1")]
2540    pub sort_expr: ::prost::alloc::vec::Vec<PhysicalSortExprNode>,
2541    /// Effective split points. Kept for compatibility with older readers.
2542    #[prost(message, repeated, tag = "2")]
2543    pub split_point: ::prost::alloc::vec::Vec<PhysicalRangeSplitPoint>,
2544    /// Maximum-resolution sample points used to derive effective split points.
2545    #[prost(message, repeated, tag = "3")]
2546    pub sample_point: ::prost::alloc::vec::Vec<PhysicalRangeSplitPoint>,
2547    /// Zero in legacy payloads means split_point.len() + 1.
2548    #[prost(uint64, tag = "4")]
2549    pub partition_count: u64,
2550}
2551#[derive(Clone, PartialEq, ::prost::Message)]
2552pub struct PhysicalRangeSplitPoint {
2553    #[prost(message, repeated, tag = "1")]
2554    pub value: ::prost::alloc::vec::Vec<super::datafusion_common::ScalarValue>,
2555}
2556#[derive(Clone, PartialEq, ::prost::Message)]
2557pub struct RepartitionExecNode {
2558    #[prost(message, optional, boxed, tag = "1")]
2559    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2560    /// Legacy direct partitioning fields:
2561    ///    uint64 round_robin = 2;
2562    ///    PhysicalHashRepartition hash = 3;
2563    ///    uint64 unknown = 4;
2564    /// New partitioning variants are stored in `partitioning`.
2565    #[prost(message, optional, tag = "5")]
2566    pub partitioning: ::core::option::Option<Partitioning>,
2567    #[prost(bool, tag = "6")]
2568    pub preserve_order: bool,
2569}
2570#[derive(Clone, PartialEq, ::prost::Message)]
2571pub struct Partitioning {
2572    #[prost(oneof = "partitioning::PartitionMethod", tags = "1, 2, 3, 4")]
2573    pub partition_method: ::core::option::Option<partitioning::PartitionMethod>,
2574}
2575/// Nested message and enum types in `Partitioning`.
2576pub mod partitioning {
2577    #[derive(Clone, PartialEq, ::prost::Oneof)]
2578    pub enum PartitionMethod {
2579        #[prost(uint64, tag = "1")]
2580        RoundRobin(u64),
2581        #[prost(message, tag = "2")]
2582        Hash(super::PhysicalHashRepartition),
2583        #[prost(uint64, tag = "3")]
2584        Unknown(u64),
2585        #[prost(message, tag = "4")]
2586        Range(super::PhysicalRangePartitioning),
2587    }
2588}
2589#[derive(Clone, PartialEq, ::prost::Message)]
2590pub struct JoinFilter {
2591    #[prost(message, optional, tag = "1")]
2592    pub expression: ::core::option::Option<PhysicalExprNode>,
2593    #[prost(message, repeated, tag = "2")]
2594    pub column_indices: ::prost::alloc::vec::Vec<ColumnIndex>,
2595    #[prost(message, optional, tag = "3")]
2596    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2597}
2598#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2599pub struct ColumnIndex {
2600    #[prost(uint32, tag = "1")]
2601    pub index: u32,
2602    #[prost(enumeration = "super::datafusion_common::JoinSide", tag = "2")]
2603    pub side: i32,
2604}
2605#[derive(Clone, PartialEq, ::prost::Message)]
2606pub struct PartitionedFile {
2607    #[prost(string, tag = "1")]
2608    pub path: ::prost::alloc::string::String,
2609    #[prost(uint64, tag = "2")]
2610    pub size: u64,
2611    #[prost(uint64, tag = "3")]
2612    pub last_modified_ns: u64,
2613    #[prost(message, repeated, tag = "4")]
2614    pub partition_values: ::prost::alloc::vec::Vec<
2615        super::datafusion_common::ScalarValue,
2616    >,
2617    #[prost(message, optional, tag = "5")]
2618    pub range: ::core::option::Option<FileRange>,
2619    #[prost(message, optional, tag = "6")]
2620    pub statistics: ::core::option::Option<super::datafusion_common::Statistics>,
2621    #[prost(message, optional, tag = "7")]
2622    pub arrow_schema: ::core::option::Option<super::datafusion_common::Schema>,
2623}
2624#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2625pub struct FileRange {
2626    #[prost(int64, tag = "1")]
2627    pub start: i64,
2628    #[prost(int64, tag = "2")]
2629    pub end: i64,
2630}
2631#[derive(Clone, PartialEq, ::prost::Message)]
2632pub struct PartitionStats {
2633    #[prost(int64, tag = "1")]
2634    pub num_rows: i64,
2635    #[prost(int64, tag = "2")]
2636    pub num_batches: i64,
2637    #[prost(int64, tag = "3")]
2638    pub num_bytes: i64,
2639    #[prost(message, repeated, tag = "4")]
2640    pub column_stats: ::prost::alloc::vec::Vec<super::datafusion_common::ColumnStats>,
2641}
2642#[derive(Clone, PartialEq, ::prost::Message)]
2643pub struct RecursiveQueryNode {
2644    #[prost(string, tag = "1")]
2645    pub name: ::prost::alloc::string::String,
2646    #[prost(message, optional, boxed, tag = "2")]
2647    pub static_term: ::core::option::Option<::prost::alloc::boxed::Box<LogicalPlanNode>>,
2648    #[prost(message, optional, boxed, tag = "3")]
2649    pub recursive_term: ::core::option::Option<
2650        ::prost::alloc::boxed::Box<LogicalPlanNode>,
2651    >,
2652    #[prost(bool, tag = "4")]
2653    pub is_distinct: bool,
2654}
2655#[derive(Clone, PartialEq, ::prost::Message)]
2656pub struct CteWorkTableScanNode {
2657    #[prost(string, tag = "1")]
2658    pub name: ::prost::alloc::string::String,
2659    #[prost(message, optional, tag = "2")]
2660    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2661}
2662#[derive(Clone, PartialEq, ::prost::Message)]
2663pub struct EmptyTableScanNode {
2664    #[prost(message, optional, tag = "1")]
2665    pub table_name: ::core::option::Option<TableReference>,
2666    #[prost(message, optional, tag = "2")]
2667    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2668    #[prost(message, optional, tag = "3")]
2669    pub projection: ::core::option::Option<ProjectionColumns>,
2670    #[prost(message, repeated, tag = "4")]
2671    pub filters: ::prost::alloc::vec::Vec<LogicalExprNode>,
2672}
2673#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2674pub struct GenerateSeriesArgsContainsNull {
2675    #[prost(enumeration = "GenerateSeriesName", tag = "1")]
2676    pub name: i32,
2677}
2678#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2679pub struct GenerateSeriesArgsInt64 {
2680    #[prost(int64, tag = "1")]
2681    pub start: i64,
2682    #[prost(int64, tag = "2")]
2683    pub end: i64,
2684    #[prost(int64, tag = "3")]
2685    pub step: i64,
2686    #[prost(bool, tag = "4")]
2687    pub include_end: bool,
2688    #[prost(enumeration = "GenerateSeriesName", tag = "5")]
2689    pub name: i32,
2690}
2691#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2692pub struct GenerateSeriesArgsTimestamp {
2693    #[prost(int64, tag = "1")]
2694    pub start: i64,
2695    #[prost(int64, tag = "2")]
2696    pub end: i64,
2697    #[prost(message, optional, tag = "3")]
2698    pub step: ::core::option::Option<
2699        super::datafusion_common::IntervalMonthDayNanoValue,
2700    >,
2701    #[prost(string, optional, tag = "4")]
2702    pub tz: ::core::option::Option<::prost::alloc::string::String>,
2703    #[prost(bool, tag = "5")]
2704    pub include_end: bool,
2705    #[prost(enumeration = "GenerateSeriesName", tag = "6")]
2706    pub name: i32,
2707}
2708#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
2709pub struct GenerateSeriesArgsDate {
2710    #[prost(int64, tag = "1")]
2711    pub start: i64,
2712    #[prost(int64, tag = "2")]
2713    pub end: i64,
2714    #[prost(message, optional, tag = "3")]
2715    pub step: ::core::option::Option<
2716        super::datafusion_common::IntervalMonthDayNanoValue,
2717    >,
2718    #[prost(bool, tag = "4")]
2719    pub include_end: bool,
2720    #[prost(enumeration = "GenerateSeriesName", tag = "5")]
2721    pub name: i32,
2722}
2723#[derive(Clone, PartialEq, ::prost::Message)]
2724pub struct GenerateSeriesNode {
2725    #[prost(message, optional, tag = "1")]
2726    pub schema: ::core::option::Option<super::datafusion_common::Schema>,
2727    #[prost(uint32, tag = "2")]
2728    pub target_batch_size: u32,
2729    #[prost(oneof = "generate_series_node::Args", tags = "3, 4, 5, 6")]
2730    pub args: ::core::option::Option<generate_series_node::Args>,
2731}
2732/// Nested message and enum types in `GenerateSeriesNode`.
2733pub mod generate_series_node {
2734    #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
2735    pub enum Args {
2736        #[prost(message, tag = "3")]
2737        ContainsNull(super::GenerateSeriesArgsContainsNull),
2738        #[prost(message, tag = "4")]
2739        Int64Args(super::GenerateSeriesArgsInt64),
2740        #[prost(message, tag = "5")]
2741        TimestampArgs(super::GenerateSeriesArgsTimestamp),
2742        #[prost(message, tag = "6")]
2743        DateArgs(super::GenerateSeriesArgsDate),
2744    }
2745}
2746#[derive(Clone, PartialEq, ::prost::Message)]
2747pub struct SortMergeJoinExecNode {
2748    #[prost(message, optional, boxed, tag = "1")]
2749    pub left: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2750    #[prost(message, optional, boxed, tag = "2")]
2751    pub right: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2752    #[prost(message, repeated, tag = "3")]
2753    pub on: ::prost::alloc::vec::Vec<JoinOn>,
2754    #[prost(enumeration = "super::datafusion_common::JoinType", tag = "4")]
2755    pub join_type: i32,
2756    #[prost(message, optional, tag = "5")]
2757    pub filter: ::core::option::Option<JoinFilter>,
2758    #[prost(message, repeated, tag = "6")]
2759    pub sort_options: ::prost::alloc::vec::Vec<SortExprNode>,
2760    #[prost(enumeration = "super::datafusion_common::NullEquality", tag = "7")]
2761    pub null_equality: i32,
2762    #[prost(uint32, repeated, tag = "8")]
2763    pub projection: ::prost::alloc::vec::Vec<u32>,
2764}
2765#[derive(Clone, PartialEq, ::prost::Message)]
2766pub struct PiecewiseMergeJoinExecNode {
2767    #[prost(message, optional, boxed, tag = "1")]
2768    pub buffered: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2769    #[prost(message, optional, boxed, tag = "2")]
2770    pub streamed: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2771    /// The buffered-side and streamed-side halves of the single range predicate.
2772    #[prost(message, optional, tag = "3")]
2773    pub on_buffered: ::core::option::Option<PhysicalExprNode>,
2774    #[prost(message, optional, tag = "4")]
2775    pub on_streamed: ::core::option::Option<PhysicalExprNode>,
2776    /// `Operator` variant name, e.g. "Lt". Must be one of Lt/LtEq/Gt/GtEq.
2777    #[prost(string, tag = "5")]
2778    pub operator: ::prost::alloc::string::String,
2779    #[prost(enumeration = "super::datafusion_common::JoinType", tag = "6")]
2780    pub join_type: i32,
2781    #[prost(uint64, tag = "7")]
2782    pub num_partitions: u64,
2783}
2784#[derive(Clone, PartialEq, ::prost::Message)]
2785pub struct AsOfJoinExecNode {
2786    #[prost(message, optional, boxed, tag = "1")]
2787    pub left: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2788    #[prost(message, optional, boxed, tag = "2")]
2789    pub right: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2790    #[prost(message, repeated, tag = "3")]
2791    pub on: ::prost::alloc::vec::Vec<JoinOn>,
2792    #[prost(message, optional, tag = "4")]
2793    pub left_match_expr: ::core::option::Option<PhysicalExprNode>,
2794    #[prost(message, optional, tag = "5")]
2795    pub right_match_expr: ::core::option::Option<PhysicalExprNode>,
2796    #[prost(enumeration = "AsOfMatchOperator", tag = "6")]
2797    pub match_operator: i32,
2798    #[prost(uint32, repeated, tag = "7")]
2799    pub projection: ::prost::alloc::vec::Vec<u32>,
2800}
2801#[derive(Clone, PartialEq, ::prost::Message)]
2802pub struct AsyncFuncExecNode {
2803    #[prost(message, optional, boxed, tag = "1")]
2804    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2805    #[prost(message, repeated, tag = "2")]
2806    pub async_exprs: ::prost::alloc::vec::Vec<PhysicalExprNode>,
2807    #[prost(string, repeated, tag = "3")]
2808    pub async_expr_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2809}
2810#[derive(Clone, PartialEq, ::prost::Message)]
2811pub struct BufferExecNode {
2812    #[prost(message, optional, boxed, tag = "1")]
2813    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2814    #[prost(uint64, tag = "2")]
2815    pub capacity: u64,
2816}
2817#[derive(Clone, PartialEq, ::prost::Message)]
2818pub struct ScalarSubqueryExecNode {
2819    #[prost(message, optional, boxed, tag = "1")]
2820    pub input: ::core::option::Option<::prost::alloc::boxed::Box<PhysicalPlanNode>>,
2821    #[prost(message, repeated, tag = "2")]
2822    pub subqueries: ::prost::alloc::vec::Vec<PhysicalPlanNode>,
2823}
2824#[derive(Clone, PartialEq, ::prost::Message)]
2825pub struct PhysicalScalarSubqueryExprNode {
2826    #[prost(message, optional, tag = "1")]
2827    pub data_type: ::core::option::Option<super::datafusion_common::ArrowType>,
2828    #[prost(bool, tag = "2")]
2829    pub nullable: bool,
2830    #[prost(uint32, tag = "3")]
2831    pub index: u32,
2832    /// Serialized separately from data_type to keep older wire formats valid.
2833    #[prost(map = "string, string", tag = "4")]
2834    pub metadata: ::std::collections::HashMap<
2835        ::prost::alloc::string::String,
2836        ::prost::alloc::string::String,
2837    >,
2838}
2839#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2840#[repr(i32)]
2841pub enum AsOfMatchOperator {
2842    Unspecified = 0,
2843    Lt = 1,
2844    LtEq = 2,
2845    Gt = 3,
2846    GtEq = 4,
2847}
2848impl AsOfMatchOperator {
2849    /// String value of the enum field names used in the ProtoBuf definition.
2850    ///
2851    /// The values are not transformed in any way and thus are considered stable
2852    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2853    pub fn as_str_name(&self) -> &'static str {
2854        match self {
2855            Self::Unspecified => "AS_OF_MATCH_OPERATOR_UNSPECIFIED",
2856            Self::Lt => "AS_OF_MATCH_OPERATOR_LT",
2857            Self::LtEq => "AS_OF_MATCH_OPERATOR_LT_EQ",
2858            Self::Gt => "AS_OF_MATCH_OPERATOR_GT",
2859            Self::GtEq => "AS_OF_MATCH_OPERATOR_GT_EQ",
2860        }
2861    }
2862    /// Creates an enum from field names used in the ProtoBuf definition.
2863    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2864        match value {
2865            "AS_OF_MATCH_OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
2866            "AS_OF_MATCH_OPERATOR_LT" => Some(Self::Lt),
2867            "AS_OF_MATCH_OPERATOR_LT_EQ" => Some(Self::LtEq),
2868            "AS_OF_MATCH_OPERATOR_GT" => Some(Self::Gt),
2869            "AS_OF_MATCH_OPERATOR_GT_EQ" => Some(Self::GtEq),
2870            _ => None,
2871        }
2872    }
2873}
2874/// Identifies a built-in file format supported by DataFusion.
2875/// Used by DefaultLogicalExtensionCodec to serialize/deserialize
2876/// FileFormatFactory instances (e.g. in CopyTo plans).
2877#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2878#[repr(i32)]
2879pub enum FileFormatKind {
2880    Unspecified = 0,
2881    Csv = 1,
2882    Json = 2,
2883    Parquet = 3,
2884    Arrow = 4,
2885    Avro = 5,
2886}
2887impl FileFormatKind {
2888    /// String value of the enum field names used in the ProtoBuf definition.
2889    ///
2890    /// The values are not transformed in any way and thus are considered stable
2891    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2892    pub fn as_str_name(&self) -> &'static str {
2893        match self {
2894            Self::Unspecified => "FILE_FORMAT_KIND_UNSPECIFIED",
2895            Self::Csv => "FILE_FORMAT_KIND_CSV",
2896            Self::Json => "FILE_FORMAT_KIND_JSON",
2897            Self::Parquet => "FILE_FORMAT_KIND_PARQUET",
2898            Self::Arrow => "FILE_FORMAT_KIND_ARROW",
2899            Self::Avro => "FILE_FORMAT_KIND_AVRO",
2900        }
2901    }
2902    /// Creates an enum from field names used in the ProtoBuf definition.
2903    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2904        match value {
2905            "FILE_FORMAT_KIND_UNSPECIFIED" => Some(Self::Unspecified),
2906            "FILE_FORMAT_KIND_CSV" => Some(Self::Csv),
2907            "FILE_FORMAT_KIND_JSON" => Some(Self::Json),
2908            "FILE_FORMAT_KIND_PARQUET" => Some(Self::Parquet),
2909            "FILE_FORMAT_KIND_ARROW" => Some(Self::Arrow),
2910            "FILE_FORMAT_KIND_AVRO" => Some(Self::Avro),
2911            _ => None,
2912        }
2913    }
2914}
2915#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2916#[repr(i32)]
2917pub enum WindowFrameUnits {
2918    Rows = 0,
2919    Range = 1,
2920    Groups = 2,
2921}
2922impl WindowFrameUnits {
2923    /// String value of the enum field names used in the ProtoBuf definition.
2924    ///
2925    /// The values are not transformed in any way and thus are considered stable
2926    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2927    pub fn as_str_name(&self) -> &'static str {
2928        match self {
2929            Self::Rows => "ROWS",
2930            Self::Range => "RANGE",
2931            Self::Groups => "GROUPS",
2932        }
2933    }
2934    /// Creates an enum from field names used in the ProtoBuf definition.
2935    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2936        match value {
2937            "ROWS" => Some(Self::Rows),
2938            "RANGE" => Some(Self::Range),
2939            "GROUPS" => Some(Self::Groups),
2940            _ => None,
2941        }
2942    }
2943}
2944#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2945#[repr(i32)]
2946pub enum WindowFrameBoundType {
2947    CurrentRow = 0,
2948    Preceding = 1,
2949    Following = 2,
2950}
2951impl WindowFrameBoundType {
2952    /// String value of the enum field names used in the ProtoBuf definition.
2953    ///
2954    /// The values are not transformed in any way and thus are considered stable
2955    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2956    pub fn as_str_name(&self) -> &'static str {
2957        match self {
2958            Self::CurrentRow => "CURRENT_ROW",
2959            Self::Preceding => "PRECEDING",
2960            Self::Following => "FOLLOWING",
2961        }
2962    }
2963    /// Creates an enum from field names used in the ProtoBuf definition.
2964    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2965        match value {
2966            "CURRENT_ROW" => Some(Self::CurrentRow),
2967            "PRECEDING" => Some(Self::Preceding),
2968            "FOLLOWING" => Some(Self::Following),
2969            _ => None,
2970        }
2971    }
2972}
2973#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2974#[repr(i32)]
2975pub enum NullTreatment {
2976    RespectNulls = 0,
2977    IgnoreNulls = 1,
2978}
2979impl NullTreatment {
2980    /// String value of the enum field names used in the ProtoBuf definition.
2981    ///
2982    /// The values are not transformed in any way and thus are considered stable
2983    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2984    pub fn as_str_name(&self) -> &'static str {
2985        match self {
2986            Self::RespectNulls => "RESPECT_NULLS",
2987            Self::IgnoreNulls => "IGNORE_NULLS",
2988        }
2989    }
2990    /// Creates an enum from field names used in the ProtoBuf definition.
2991    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
2992        match value {
2993            "RESPECT_NULLS" => Some(Self::RespectNulls),
2994            "IGNORE_NULLS" => Some(Self::IgnoreNulls),
2995            _ => None,
2996        }
2997    }
2998}
2999#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3000#[repr(i32)]
3001pub enum DateUnit {
3002    Day = 0,
3003    DateMillisecond = 1,
3004}
3005impl DateUnit {
3006    /// String value of the enum field names used in the ProtoBuf definition.
3007    ///
3008    /// The values are not transformed in any way and thus are considered stable
3009    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3010    pub fn as_str_name(&self) -> &'static str {
3011        match self {
3012            Self::Day => "Day",
3013            Self::DateMillisecond => "DateMillisecond",
3014        }
3015    }
3016    /// Creates an enum from field names used in the ProtoBuf definition.
3017    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3018        match value {
3019            "Day" => Some(Self::Day),
3020            "DateMillisecond" => Some(Self::DateMillisecond),
3021            _ => None,
3022        }
3023    }
3024}
3025/// Determines how file sink output paths are interpreted.
3026#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3027#[repr(i32)]
3028pub enum FileOutputMode {
3029    /// Infer output mode from the URL (extension/trailing `/` heuristic).
3030    Automatic = 0,
3031    /// Write to a single file at the exact output path.
3032    SingleFile = 1,
3033    /// Write to a directory with generated filenames.
3034    Directory = 2,
3035}
3036impl FileOutputMode {
3037    /// String value of the enum field names used in the ProtoBuf definition.
3038    ///
3039    /// The values are not transformed in any way and thus are considered stable
3040    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3041    pub fn as_str_name(&self) -> &'static str {
3042        match self {
3043            Self::Automatic => "FILE_OUTPUT_MODE_AUTOMATIC",
3044            Self::SingleFile => "FILE_OUTPUT_MODE_SINGLE_FILE",
3045            Self::Directory => "FILE_OUTPUT_MODE_DIRECTORY",
3046        }
3047    }
3048    /// Creates an enum from field names used in the ProtoBuf definition.
3049    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3050        match value {
3051            "FILE_OUTPUT_MODE_AUTOMATIC" => Some(Self::Automatic),
3052            "FILE_OUTPUT_MODE_SINGLE_FILE" => Some(Self::SingleFile),
3053            "FILE_OUTPUT_MODE_DIRECTORY" => Some(Self::Directory),
3054            _ => None,
3055        }
3056    }
3057}
3058#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3059#[repr(i32)]
3060pub enum InsertOp {
3061    Append = 0,
3062    Overwrite = 1,
3063    Replace = 2,
3064}
3065impl InsertOp {
3066    /// String value of the enum field names used in the ProtoBuf definition.
3067    ///
3068    /// The values are not transformed in any way and thus are considered stable
3069    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3070    pub fn as_str_name(&self) -> &'static str {
3071        match self {
3072            Self::Append => "Append",
3073            Self::Overwrite => "Overwrite",
3074            Self::Replace => "Replace",
3075        }
3076    }
3077    /// Creates an enum from field names used in the ProtoBuf definition.
3078    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3079        match value {
3080            "Append" => Some(Self::Append),
3081            "Overwrite" => Some(Self::Overwrite),
3082            "Replace" => Some(Self::Replace),
3083            _ => None,
3084        }
3085    }
3086}
3087#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3088#[repr(i32)]
3089pub enum PhysicalDurationFormat {
3090    Iso8601 = 0,
3091    Pretty = 1,
3092}
3093impl PhysicalDurationFormat {
3094    /// String value of the enum field names used in the ProtoBuf definition.
3095    ///
3096    /// The values are not transformed in any way and thus are considered stable
3097    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3098    pub fn as_str_name(&self) -> &'static str {
3099        match self {
3100            Self::Iso8601 => "PHYSICAL_DURATION_FORMAT_ISO8601",
3101            Self::Pretty => "PHYSICAL_DURATION_FORMAT_PRETTY",
3102        }
3103    }
3104    /// Creates an enum from field names used in the ProtoBuf definition.
3105    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3106        match value {
3107            "PHYSICAL_DURATION_FORMAT_ISO8601" => Some(Self::Iso8601),
3108            "PHYSICAL_DURATION_FORMAT_PRETTY" => Some(Self::Pretty),
3109            _ => None,
3110        }
3111    }
3112}
3113/// Identifies which Arrow IPC format an ArrowScanExecNode reads.
3114#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3115#[repr(i32)]
3116pub enum ArrowIpcFormat {
3117    /// Arrow IPC file format (with footer, supports range-based parallel reading).
3118    /// This is the default for payloads encoded before the format field existed.
3119    File = 0,
3120    /// Arrow IPC stream format (without footer, sequential reading only)
3121    Stream = 1,
3122}
3123impl ArrowIpcFormat {
3124    /// String value of the enum field names used in the ProtoBuf definition.
3125    ///
3126    /// The values are not transformed in any way and thus are considered stable
3127    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3128    pub fn as_str_name(&self) -> &'static str {
3129        match self {
3130            Self::File => "ARROW_IPC_FORMAT_FILE",
3131            Self::Stream => "ARROW_IPC_FORMAT_STREAM",
3132        }
3133    }
3134    /// Creates an enum from field names used in the ProtoBuf definition.
3135    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3136        match value {
3137            "ARROW_IPC_FORMAT_FILE" => Some(Self::File),
3138            "ARROW_IPC_FORMAT_STREAM" => Some(Self::Stream),
3139            _ => None,
3140        }
3141    }
3142}
3143#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3144#[repr(i32)]
3145pub enum PartitionMode {
3146    CollectLeft = 0,
3147    Partitioned = 1,
3148    Auto = 2,
3149}
3150impl PartitionMode {
3151    /// String value of the enum field names used in the ProtoBuf definition.
3152    ///
3153    /// The values are not transformed in any way and thus are considered stable
3154    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3155    pub fn as_str_name(&self) -> &'static str {
3156        match self {
3157            Self::CollectLeft => "COLLECT_LEFT",
3158            Self::Partitioned => "PARTITIONED",
3159            Self::Auto => "AUTO",
3160        }
3161    }
3162    /// Creates an enum from field names used in the ProtoBuf definition.
3163    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3164        match value {
3165            "COLLECT_LEFT" => Some(Self::CollectLeft),
3166            "PARTITIONED" => Some(Self::Partitioned),
3167            "AUTO" => Some(Self::Auto),
3168            _ => None,
3169        }
3170    }
3171}
3172#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3173#[repr(i32)]
3174pub enum StreamPartitionMode {
3175    SinglePartition = 0,
3176    PartitionedExec = 1,
3177}
3178impl StreamPartitionMode {
3179    /// String value of the enum field names used in the ProtoBuf definition.
3180    ///
3181    /// The values are not transformed in any way and thus are considered stable
3182    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3183    pub fn as_str_name(&self) -> &'static str {
3184        match self {
3185            Self::SinglePartition => "SINGLE_PARTITION",
3186            Self::PartitionedExec => "PARTITIONED_EXEC",
3187        }
3188    }
3189    /// Creates an enum from field names used in the ProtoBuf definition.
3190    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3191        match value {
3192            "SINGLE_PARTITION" => Some(Self::SinglePartition),
3193            "PARTITIONED_EXEC" => Some(Self::PartitionedExec),
3194            _ => None,
3195        }
3196    }
3197}
3198#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3199#[repr(i32)]
3200pub enum AggregateMode {
3201    Partial = 0,
3202    Final = 1,
3203    FinalPartitioned = 2,
3204    Single = 3,
3205    SinglePartitioned = 4,
3206    PartialReduce = 5,
3207}
3208impl AggregateMode {
3209    /// String value of the enum field names used in the ProtoBuf definition.
3210    ///
3211    /// The values are not transformed in any way and thus are considered stable
3212    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3213    pub fn as_str_name(&self) -> &'static str {
3214        match self {
3215            Self::Partial => "PARTIAL",
3216            Self::Final => "FINAL",
3217            Self::FinalPartitioned => "FINAL_PARTITIONED",
3218            Self::Single => "SINGLE",
3219            Self::SinglePartitioned => "SINGLE_PARTITIONED",
3220            Self::PartialReduce => "PARTIAL_REDUCE",
3221        }
3222    }
3223    /// Creates an enum from field names used in the ProtoBuf definition.
3224    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3225        match value {
3226            "PARTIAL" => Some(Self::Partial),
3227            "FINAL" => Some(Self::Final),
3228            "FINAL_PARTITIONED" => Some(Self::FinalPartitioned),
3229            "SINGLE" => Some(Self::Single),
3230            "SINGLE_PARTITIONED" => Some(Self::SinglePartitioned),
3231            "PARTIAL_REDUCE" => Some(Self::PartialReduce),
3232            _ => None,
3233        }
3234    }
3235}
3236#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3237#[repr(i32)]
3238pub enum GenerateSeriesName {
3239    GsGenerateSeries = 0,
3240    GsRange = 1,
3241}
3242impl GenerateSeriesName {
3243    /// String value of the enum field names used in the ProtoBuf definition.
3244    ///
3245    /// The values are not transformed in any way and thus are considered stable
3246    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3247    pub fn as_str_name(&self) -> &'static str {
3248        match self {
3249            Self::GsGenerateSeries => "GS_GENERATE_SERIES",
3250            Self::GsRange => "GS_RANGE",
3251        }
3252    }
3253    /// Creates an enum from field names used in the ProtoBuf definition.
3254    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
3255        match value {
3256            "GS_GENERATE_SERIES" => Some(Self::GsGenerateSeries),
3257            "GS_RANGE" => Some(Self::GsRange),
3258            _ => None,
3259        }
3260    }
3261}