1#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3pub struct ColumnRelation {
4 #[prost(string, tag = "1")]
5 pub relation: ::prost::alloc::string::String,
6 #[prost(string, repeated, tag = "2")]
7 pub parts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
8}
9#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10pub struct Column {
11 #[prost(string, tag = "1")]
12 pub name: ::prost::alloc::string::String,
13 #[prost(message, optional, tag = "2")]
14 pub relation: ::core::option::Option<ColumnRelation>,
15}
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct DfField {
18 #[prost(message, optional, tag = "1")]
19 pub field: ::core::option::Option<Field>,
20 #[prost(message, optional, tag = "2")]
21 pub qualifier: ::core::option::Option<ColumnRelation>,
22}
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct DfSchema {
25 #[prost(message, repeated, tag = "1")]
26 pub columns: ::prost::alloc::vec::Vec<DfField>,
27 #[prost(map = "string, string", tag = "2")]
28 pub metadata: ::std::collections::HashMap<
29 ::prost::alloc::string::String,
30 ::prost::alloc::string::String,
31 >,
32}
33#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
34pub struct CsvFormat {
35 #[prost(message, optional, tag = "5")]
36 pub options: ::core::option::Option<CsvOptions>,
37}
38#[derive(Clone, PartialEq, ::prost::Message)]
39pub struct ParquetFormat {
40 #[prost(message, optional, tag = "2")]
41 pub options: ::core::option::Option<TableParquetOptions>,
42}
43#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
44pub struct AvroFormat {}
45#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
46pub struct NdJsonFormat {
47 #[prost(message, optional, tag = "1")]
48 pub options: ::core::option::Option<JsonOptions>,
49}
50#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
51pub struct ArrowFormat {}
52#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
53pub struct PrimaryKeyConstraint {
54 #[prost(uint64, repeated, tag = "1")]
55 pub indices: ::prost::alloc::vec::Vec<u64>,
56}
57#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
58pub struct UniqueConstraint {
59 #[prost(uint64, repeated, tag = "1")]
60 pub indices: ::prost::alloc::vec::Vec<u64>,
61}
62#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
63pub struct Constraint {
64 #[prost(oneof = "constraint::ConstraintMode", tags = "1, 2")]
65 pub constraint_mode: ::core::option::Option<constraint::ConstraintMode>,
66}
67pub mod constraint {
69 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
70 pub enum ConstraintMode {
71 #[prost(message, tag = "1")]
72 PrimaryKey(super::PrimaryKeyConstraint),
73 #[prost(message, tag = "2")]
74 Unique(super::UniqueConstraint),
75 }
76}
77#[derive(Clone, PartialEq, ::prost::Message)]
78pub struct Constraints {
79 #[prost(message, repeated, tag = "1")]
80 pub constraints: ::prost::alloc::vec::Vec<Constraint>,
81}
82#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
83pub struct AvroOptions {}
84#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
85pub struct ArrowOptions {}
86#[derive(Clone, PartialEq, ::prost::Message)]
87pub struct Schema {
88 #[prost(message, repeated, tag = "1")]
89 pub columns: ::prost::alloc::vec::Vec<Field>,
90 #[prost(map = "string, string", tag = "2")]
91 pub metadata: ::std::collections::HashMap<
92 ::prost::alloc::string::String,
93 ::prost::alloc::string::String,
94 >,
95}
96#[derive(Clone, PartialEq, ::prost::Message)]
97pub struct Field {
98 #[prost(string, tag = "1")]
100 pub name: ::prost::alloc::string::String,
101 #[prost(message, optional, boxed, tag = "2")]
102 pub arrow_type: ::core::option::Option<::prost::alloc::boxed::Box<ArrowType>>,
103 #[prost(bool, tag = "3")]
104 pub nullable: bool,
105 #[prost(message, repeated, tag = "4")]
107 pub children: ::prost::alloc::vec::Vec<Field>,
108 #[prost(map = "string, string", tag = "5")]
109 pub metadata: ::std::collections::HashMap<
110 ::prost::alloc::string::String,
111 ::prost::alloc::string::String,
112 >,
113}
114#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
115pub struct Timestamp {
116 #[prost(enumeration = "TimeUnit", tag = "1")]
117 pub time_unit: i32,
118 #[prost(string, tag = "2")]
119 pub timezone: ::prost::alloc::string::String,
120}
121#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
122pub struct Decimal32Type {
123 #[prost(uint32, tag = "3")]
124 pub precision: u32,
125 #[prost(int32, tag = "4")]
126 pub scale: i32,
127}
128#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
129pub struct Decimal64Type {
130 #[prost(uint32, tag = "3")]
131 pub precision: u32,
132 #[prost(int32, tag = "4")]
133 pub scale: i32,
134}
135#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
136pub struct Decimal128Type {
137 #[prost(uint32, tag = "3")]
138 pub precision: u32,
139 #[prost(int32, tag = "4")]
140 pub scale: i32,
141}
142#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
143pub struct Decimal256Type {
144 #[prost(uint32, tag = "3")]
145 pub precision: u32,
146 #[prost(int32, tag = "4")]
147 pub scale: i32,
148}
149#[derive(Clone, PartialEq, ::prost::Message)]
150pub struct List {
151 #[prost(message, optional, boxed, tag = "1")]
152 pub field_type: ::core::option::Option<::prost::alloc::boxed::Box<Field>>,
153}
154#[derive(Clone, PartialEq, ::prost::Message)]
155pub struct FixedSizeList {
156 #[prost(message, optional, boxed, tag = "1")]
157 pub field_type: ::core::option::Option<::prost::alloc::boxed::Box<Field>>,
158 #[prost(int32, tag = "2")]
159 pub list_size: i32,
160}
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct Dictionary {
163 #[prost(message, optional, boxed, tag = "1")]
164 pub key: ::core::option::Option<::prost::alloc::boxed::Box<ArrowType>>,
165 #[prost(message, optional, boxed, tag = "2")]
166 pub value: ::core::option::Option<::prost::alloc::boxed::Box<ArrowType>>,
167}
168#[derive(Clone, PartialEq, ::prost::Message)]
169pub struct Struct {
170 #[prost(message, repeated, tag = "1")]
171 pub sub_field_types: ::prost::alloc::vec::Vec<Field>,
172}
173#[derive(Clone, PartialEq, ::prost::Message)]
174pub struct Map {
175 #[prost(message, optional, boxed, tag = "1")]
176 pub field_type: ::core::option::Option<::prost::alloc::boxed::Box<Field>>,
177 #[prost(bool, tag = "2")]
178 pub keys_sorted: bool,
179}
180#[derive(Clone, PartialEq, ::prost::Message)]
181pub struct RunEndEncoded {
182 #[prost(message, optional, boxed, tag = "1")]
183 pub run_ends_field: ::core::option::Option<::prost::alloc::boxed::Box<Field>>,
184 #[prost(message, optional, boxed, tag = "2")]
185 pub values_field: ::core::option::Option<::prost::alloc::boxed::Box<Field>>,
186}
187#[derive(Clone, PartialEq, ::prost::Message)]
188pub struct Union {
189 #[prost(message, repeated, tag = "1")]
190 pub union_types: ::prost::alloc::vec::Vec<Field>,
191 #[prost(enumeration = "UnionMode", tag = "2")]
192 pub union_mode: i32,
193 #[prost(int32, repeated, tag = "3")]
194 pub type_ids: ::prost::alloc::vec::Vec<i32>,
195}
196#[derive(Clone, PartialEq, ::prost::Message)]
198pub struct ScalarNestedValue {
199 #[prost(bytes = "vec", tag = "1")]
200 pub ipc_message: ::prost::alloc::vec::Vec<u8>,
201 #[prost(bytes = "vec", tag = "2")]
202 pub arrow_data: ::prost::alloc::vec::Vec<u8>,
203 #[prost(message, optional, tag = "3")]
204 pub schema: ::core::option::Option<Schema>,
205 #[prost(message, repeated, tag = "4")]
206 pub dictionaries: ::prost::alloc::vec::Vec<scalar_nested_value::Dictionary>,
207}
208pub mod scalar_nested_value {
210 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
211 pub struct Dictionary {
212 #[prost(bytes = "vec", tag = "1")]
213 pub ipc_message: ::prost::alloc::vec::Vec<u8>,
214 #[prost(bytes = "vec", tag = "2")]
215 pub arrow_data: ::prost::alloc::vec::Vec<u8>,
216 }
217}
218#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
219pub struct ScalarTime32Value {
220 #[prost(oneof = "scalar_time32_value::Value", tags = "1, 2")]
221 pub value: ::core::option::Option<scalar_time32_value::Value>,
222}
223pub mod scalar_time32_value {
225 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
226 pub enum Value {
227 #[prost(int32, tag = "1")]
228 Time32SecondValue(i32),
229 #[prost(int32, tag = "2")]
230 Time32MillisecondValue(i32),
231 }
232}
233#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
234pub struct ScalarTime64Value {
235 #[prost(oneof = "scalar_time64_value::Value", tags = "1, 2")]
236 pub value: ::core::option::Option<scalar_time64_value::Value>,
237}
238pub mod scalar_time64_value {
240 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
241 pub enum Value {
242 #[prost(int64, tag = "1")]
243 Time64MicrosecondValue(i64),
244 #[prost(int64, tag = "2")]
245 Time64NanosecondValue(i64),
246 }
247}
248#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
249pub struct ScalarTimestampValue {
250 #[prost(string, tag = "5")]
251 pub timezone: ::prost::alloc::string::String,
252 #[prost(oneof = "scalar_timestamp_value::Value", tags = "1, 2, 3, 4")]
253 pub value: ::core::option::Option<scalar_timestamp_value::Value>,
254}
255pub mod scalar_timestamp_value {
257 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
258 pub enum Value {
259 #[prost(int64, tag = "1")]
260 TimeMicrosecondValue(i64),
261 #[prost(int64, tag = "2")]
262 TimeNanosecondValue(i64),
263 #[prost(int64, tag = "3")]
264 TimeSecondValue(i64),
265 #[prost(int64, tag = "4")]
266 TimeMillisecondValue(i64),
267 }
268}
269#[derive(Clone, PartialEq, ::prost::Message)]
270pub struct ScalarDictionaryValue {
271 #[prost(message, optional, tag = "1")]
272 pub index_type: ::core::option::Option<ArrowType>,
273 #[prost(message, optional, boxed, tag = "2")]
274 pub value: ::core::option::Option<::prost::alloc::boxed::Box<ScalarValue>>,
275}
276#[derive(Clone, PartialEq, ::prost::Message)]
277pub struct ScalarRunEndEncodedValue {
278 #[prost(message, optional, tag = "1")]
279 pub run_ends_field: ::core::option::Option<Field>,
280 #[prost(message, optional, tag = "2")]
281 pub values_field: ::core::option::Option<Field>,
282 #[prost(message, optional, boxed, tag = "3")]
283 pub value: ::core::option::Option<::prost::alloc::boxed::Box<ScalarValue>>,
284}
285#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
286pub struct IntervalDayTimeValue {
287 #[prost(int32, tag = "1")]
288 pub days: i32,
289 #[prost(int32, tag = "2")]
290 pub milliseconds: i32,
291}
292#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
293pub struct IntervalMonthDayNanoValue {
294 #[prost(int32, tag = "1")]
295 pub months: i32,
296 #[prost(int32, tag = "2")]
297 pub days: i32,
298 #[prost(int64, tag = "3")]
299 pub nanos: i64,
300}
301#[derive(Clone, PartialEq, ::prost::Message)]
302pub struct UnionField {
303 #[prost(int32, tag = "1")]
304 pub field_id: i32,
305 #[prost(message, optional, tag = "2")]
306 pub field: ::core::option::Option<Field>,
307}
308#[derive(Clone, PartialEq, ::prost::Message)]
309pub struct UnionValue {
310 #[prost(int32, tag = "1")]
313 pub value_id: i32,
314 #[prost(message, optional, boxed, tag = "2")]
315 pub value: ::core::option::Option<::prost::alloc::boxed::Box<ScalarValue>>,
316 #[prost(message, repeated, tag = "3")]
317 pub fields: ::prost::alloc::vec::Vec<UnionField>,
318 #[prost(enumeration = "UnionMode", tag = "4")]
319 pub mode: i32,
320}
321#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
322pub struct ScalarFixedSizeBinary {
323 #[prost(bytes = "vec", tag = "1")]
324 pub values: ::prost::alloc::vec::Vec<u8>,
325 #[prost(int32, tag = "2")]
326 pub length: i32,
327}
328#[derive(Clone, PartialEq, ::prost::Message)]
329pub struct ScalarValue {
330 #[prost(
331 oneof = "scalar_value::Value",
332 tags = "33, 1, 2, 3, 23, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 46, 47, 32, 41, 43, 44, 20, 39, 21, 24, 35, 36, 37, 38, 26, 27, 28, 29, 22, 30, 25, 31, 34, 42, 45"
333 )]
334 pub value: ::core::option::Option<scalar_value::Value>,
335}
336pub mod scalar_value {
338 #[derive(Clone, PartialEq, ::prost::Oneof)]
339 pub enum Value {
340 #[prost(message, tag = "33")]
343 NullValue(super::ArrowType),
344 #[prost(bool, tag = "1")]
345 BoolValue(bool),
346 #[prost(string, tag = "2")]
347 Utf8Value(::prost::alloc::string::String),
348 #[prost(string, tag = "3")]
349 LargeUtf8Value(::prost::alloc::string::String),
350 #[prost(string, tag = "23")]
351 Utf8ViewValue(::prost::alloc::string::String),
352 #[prost(int32, tag = "4")]
353 Int8Value(i32),
354 #[prost(int32, tag = "5")]
355 Int16Value(i32),
356 #[prost(int32, tag = "6")]
357 Int32Value(i32),
358 #[prost(int64, tag = "7")]
359 Int64Value(i64),
360 #[prost(uint32, tag = "8")]
361 Uint8Value(u32),
362 #[prost(uint32, tag = "9")]
363 Uint16Value(u32),
364 #[prost(uint32, tag = "10")]
365 Uint32Value(u32),
366 #[prost(uint64, tag = "11")]
367 Uint64Value(u64),
368 #[prost(float, tag = "12")]
369 Float32Value(f32),
370 #[prost(double, tag = "13")]
371 Float64Value(f64),
372 #[prost(int32, tag = "14")]
374 Date32Value(i32),
375 #[prost(message, tag = "15")]
376 Time32Value(super::ScalarTime32Value),
377 #[prost(message, tag = "16")]
378 LargeListValue(super::ScalarNestedValue),
379 #[prost(message, tag = "17")]
380 ListValue(super::ScalarNestedValue),
381 #[prost(message, tag = "18")]
382 FixedSizeListValue(super::ScalarNestedValue),
383 #[prost(message, tag = "46")]
384 ListViewValue(super::ScalarNestedValue),
385 #[prost(message, tag = "47")]
386 LargeListViewValue(super::ScalarNestedValue),
387 #[prost(message, tag = "32")]
388 StructValue(super::ScalarNestedValue),
389 #[prost(message, tag = "41")]
390 MapValue(super::ScalarNestedValue),
391 #[prost(message, tag = "43")]
392 Decimal32Value(super::Decimal32),
393 #[prost(message, tag = "44")]
394 Decimal64Value(super::Decimal64),
395 #[prost(message, tag = "20")]
396 Decimal128Value(super::Decimal128),
397 #[prost(message, tag = "39")]
398 Decimal256Value(super::Decimal256),
399 #[prost(int64, tag = "21")]
400 Date64Value(i64),
401 #[prost(int32, tag = "24")]
402 IntervalYearmonthValue(i32),
403 #[prost(int64, tag = "35")]
404 DurationSecondValue(i64),
405 #[prost(int64, tag = "36")]
406 DurationMillisecondValue(i64),
407 #[prost(int64, tag = "37")]
408 DurationMicrosecondValue(i64),
409 #[prost(int64, tag = "38")]
410 DurationNanosecondValue(i64),
411 #[prost(message, tag = "26")]
412 TimestampValue(super::ScalarTimestampValue),
413 #[prost(message, tag = "27")]
414 DictionaryValue(::prost::alloc::boxed::Box<super::ScalarDictionaryValue>),
415 #[prost(bytes, tag = "28")]
416 BinaryValue(::prost::alloc::vec::Vec<u8>),
417 #[prost(bytes, tag = "29")]
418 LargeBinaryValue(::prost::alloc::vec::Vec<u8>),
419 #[prost(bytes, tag = "22")]
420 BinaryViewValue(::prost::alloc::vec::Vec<u8>),
421 #[prost(message, tag = "30")]
422 Time64Value(super::ScalarTime64Value),
423 #[prost(message, tag = "25")]
424 IntervalDaytimeValue(super::IntervalDayTimeValue),
425 #[prost(message, tag = "31")]
426 IntervalMonthDayNano(super::IntervalMonthDayNanoValue),
427 #[prost(message, tag = "34")]
428 FixedSizeBinaryValue(super::ScalarFixedSizeBinary),
429 #[prost(message, tag = "42")]
430 UnionValue(::prost::alloc::boxed::Box<super::UnionValue>),
431 #[prost(message, tag = "45")]
432 RunEndEncodedValue(::prost::alloc::boxed::Box<super::ScalarRunEndEncodedValue>),
433 }
434}
435#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
436pub struct Decimal32 {
437 #[prost(bytes = "vec", tag = "1")]
438 pub value: ::prost::alloc::vec::Vec<u8>,
439 #[prost(int64, tag = "2")]
440 pub p: i64,
441 #[prost(int64, tag = "3")]
442 pub s: i64,
443}
444#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
445pub struct Decimal64 {
446 #[prost(bytes = "vec", tag = "1")]
447 pub value: ::prost::alloc::vec::Vec<u8>,
448 #[prost(int64, tag = "2")]
449 pub p: i64,
450 #[prost(int64, tag = "3")]
451 pub s: i64,
452}
453#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
454pub struct Decimal128 {
455 #[prost(bytes = "vec", tag = "1")]
456 pub value: ::prost::alloc::vec::Vec<u8>,
457 #[prost(int64, tag = "2")]
458 pub p: i64,
459 #[prost(int64, tag = "3")]
460 pub s: i64,
461}
462#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
463pub struct Decimal256 {
464 #[prost(bytes = "vec", tag = "1")]
465 pub value: ::prost::alloc::vec::Vec<u8>,
466 #[prost(int64, tag = "2")]
467 pub p: i64,
468 #[prost(int64, tag = "3")]
469 pub s: i64,
470}
471#[derive(Clone, PartialEq, ::prost::Message)]
473pub struct ArrowType {
474 #[prost(
475 oneof = "arrow_type::ArrowTypeEnum",
476 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 35, 32, 15, 34, 16, 31, 17, 18, 19, 20, 21, 22, 23, 40, 41, 24, 36, 25, 26, 27, 43, 44, 28, 29, 30, 33, 42"
477 )]
478 pub arrow_type_enum: ::core::option::Option<arrow_type::ArrowTypeEnum>,
479}
480pub mod arrow_type {
482 #[derive(Clone, PartialEq, ::prost::Oneof)]
483 pub enum ArrowTypeEnum {
484 #[prost(message, tag = "1")]
486 None(super::EmptyMessage),
487 #[prost(message, tag = "2")]
489 Bool(super::EmptyMessage),
490 #[prost(message, tag = "3")]
492 Uint8(super::EmptyMessage),
493 #[prost(message, tag = "4")]
495 Int8(super::EmptyMessage),
496 #[prost(message, tag = "5")]
498 Uint16(super::EmptyMessage),
499 #[prost(message, tag = "6")]
500 Int16(super::EmptyMessage),
501 #[prost(message, tag = "7")]
502 Uint32(super::EmptyMessage),
503 #[prost(message, tag = "8")]
504 Int32(super::EmptyMessage),
505 #[prost(message, tag = "9")]
506 Uint64(super::EmptyMessage),
507 #[prost(message, tag = "10")]
508 Int64(super::EmptyMessage),
509 #[prost(message, tag = "11")]
510 Float16(super::EmptyMessage),
511 #[prost(message, tag = "12")]
512 Float32(super::EmptyMessage),
513 #[prost(message, tag = "13")]
514 Float64(super::EmptyMessage),
515 #[prost(message, tag = "14")]
516 Utf8(super::EmptyMessage),
517 #[prost(message, tag = "35")]
518 Utf8View(super::EmptyMessage),
519 #[prost(message, tag = "32")]
520 LargeUtf8(super::EmptyMessage),
521 #[prost(message, tag = "15")]
522 Binary(super::EmptyMessage),
523 #[prost(message, tag = "34")]
524 BinaryView(super::EmptyMessage),
525 #[prost(int32, tag = "16")]
526 FixedSizeBinary(i32),
527 #[prost(message, tag = "31")]
528 LargeBinary(super::EmptyMessage),
529 #[prost(message, tag = "17")]
530 Date32(super::EmptyMessage),
531 #[prost(message, tag = "18")]
532 Date64(super::EmptyMessage),
533 #[prost(enumeration = "super::TimeUnit", tag = "19")]
534 Duration(i32),
535 #[prost(message, tag = "20")]
536 Timestamp(super::Timestamp),
537 #[prost(enumeration = "super::TimeUnit", tag = "21")]
538 Time32(i32),
539 #[prost(enumeration = "super::TimeUnit", tag = "22")]
540 Time64(i32),
541 #[prost(enumeration = "super::IntervalUnit", tag = "23")]
542 Interval(i32),
543 #[prost(message, tag = "40")]
544 Decimal32(super::Decimal32Type),
545 #[prost(message, tag = "41")]
546 Decimal64(super::Decimal64Type),
547 #[prost(message, tag = "24")]
548 Decimal128(super::Decimal128Type),
549 #[prost(message, tag = "36")]
550 Decimal256(super::Decimal256Type),
551 #[prost(message, tag = "25")]
552 List(::prost::alloc::boxed::Box<super::List>),
553 #[prost(message, tag = "26")]
554 LargeList(::prost::alloc::boxed::Box<super::List>),
555 #[prost(message, tag = "27")]
556 FixedSizeList(::prost::alloc::boxed::Box<super::FixedSizeList>),
557 #[prost(message, tag = "43")]
558 ListView(::prost::alloc::boxed::Box<super::List>),
559 #[prost(message, tag = "44")]
560 LargeListView(::prost::alloc::boxed::Box<super::List>),
561 #[prost(message, tag = "28")]
562 Struct(super::Struct),
563 #[prost(message, tag = "29")]
564 Union(super::Union),
565 #[prost(message, tag = "30")]
566 Dictionary(::prost::alloc::boxed::Box<super::Dictionary>),
567 #[prost(message, tag = "33")]
568 Map(::prost::alloc::boxed::Box<super::Map>),
569 #[prost(message, tag = "42")]
570 RunEndEncoded(::prost::alloc::boxed::Box<super::RunEndEncoded>),
571 }
572}
573#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
583pub struct EmptyMessage {}
584#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
585pub struct JsonWriterOptions {
586 #[prost(enumeration = "CompressionTypeVariant", tag = "1")]
587 pub compression: i32,
588 #[prost(uint32, optional, tag = "2")]
589 pub compression_level: ::core::option::Option<u32>,
590}
591#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
592pub struct CsvWriterOptions {
593 #[prost(enumeration = "CompressionTypeVariant", tag = "1")]
595 pub compression: i32,
596 #[prost(string, tag = "2")]
598 pub delimiter: ::prost::alloc::string::String,
599 #[prost(bool, tag = "3")]
601 pub has_header: bool,
602 #[prost(string, optional, tag = "4")]
604 pub date_format: ::core::option::Option<::prost::alloc::string::String>,
605 #[prost(string, optional, tag = "5")]
607 pub datetime_format: ::core::option::Option<::prost::alloc::string::String>,
608 #[prost(string, optional, tag = "6")]
610 pub timestamp_format: ::core::option::Option<::prost::alloc::string::String>,
611 #[prost(string, optional, tag = "7")]
613 pub time_format: ::core::option::Option<::prost::alloc::string::String>,
614 #[prost(string, tag = "8")]
616 pub null_value: ::prost::alloc::string::String,
617 #[prost(string, tag = "9")]
619 pub quote: ::prost::alloc::string::String,
620 #[prost(string, tag = "10")]
622 pub escape: ::prost::alloc::string::String,
623 #[prost(bool, tag = "11")]
625 pub double_quote: bool,
626 #[prost(enumeration = "CsvQuoteStyle", tag = "12")]
628 pub quote_style: i32,
629 #[prost(bool, tag = "13")]
631 pub ignore_leading_whitespace: bool,
632 #[prost(bool, tag = "14")]
634 pub ignore_trailing_whitespace: bool,
635 #[prost(uint32, optional, tag = "15")]
637 pub compression_level: ::core::option::Option<u32>,
638 #[prost(string, optional, tag = "16")]
640 pub timestamp_tz_format: ::core::option::Option<::prost::alloc::string::String>,
641 #[prost(bytes = "vec", tag = "17")]
643 pub terminator: ::prost::alloc::vec::Vec<u8>,
644}
645#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
647pub struct CsvOptions {
648 #[prost(bytes = "vec", tag = "1")]
650 pub has_header: ::prost::alloc::vec::Vec<u8>,
651 #[prost(bytes = "vec", tag = "2")]
653 pub delimiter: ::prost::alloc::vec::Vec<u8>,
654 #[prost(bytes = "vec", tag = "3")]
656 pub quote: ::prost::alloc::vec::Vec<u8>,
657 #[prost(bytes = "vec", tag = "4")]
659 pub escape: ::prost::alloc::vec::Vec<u8>,
660 #[prost(enumeration = "CompressionTypeVariant", tag = "5")]
662 pub compression: i32,
663 #[prost(uint64, optional, tag = "6")]
665 pub schema_infer_max_rec: ::core::option::Option<u64>,
666 #[prost(string, tag = "7")]
668 pub date_format: ::prost::alloc::string::String,
669 #[prost(string, tag = "8")]
671 pub datetime_format: ::prost::alloc::string::String,
672 #[prost(string, tag = "9")]
674 pub timestamp_format: ::prost::alloc::string::String,
675 #[prost(string, tag = "10")]
677 pub timestamp_tz_format: ::prost::alloc::string::String,
678 #[prost(string, tag = "11")]
680 pub time_format: ::prost::alloc::string::String,
681 #[prost(string, tag = "12")]
683 pub null_value: ::prost::alloc::string::String,
684 #[prost(string, tag = "13")]
686 pub null_regex: ::prost::alloc::string::String,
687 #[prost(bytes = "vec", tag = "14")]
689 pub comment: ::prost::alloc::vec::Vec<u8>,
690 #[prost(bytes = "vec", tag = "15")]
692 pub double_quote: ::prost::alloc::vec::Vec<u8>,
693 #[prost(bytes = "vec", tag = "16")]
695 pub newlines_in_values: ::prost::alloc::vec::Vec<u8>,
696 #[prost(bytes = "vec", tag = "17")]
698 pub terminator: ::prost::alloc::vec::Vec<u8>,
699 #[prost(bytes = "vec", tag = "18")]
701 pub truncated_rows: ::prost::alloc::vec::Vec<u8>,
702 #[prost(uint32, optional, tag = "19")]
704 pub compression_level: ::core::option::Option<u32>,
705 #[prost(enumeration = "CsvQuoteStyle", tag = "20")]
707 pub quote_style: i32,
708 #[prost(bytes = "vec", tag = "21")]
710 pub ignore_leading_whitespace: ::prost::alloc::vec::Vec<u8>,
711 #[prost(bytes = "vec", tag = "22")]
713 pub ignore_trailing_whitespace: ::prost::alloc::vec::Vec<u8>,
714}
715#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
717pub struct JsonOptions {
718 #[prost(enumeration = "CompressionTypeVariant", tag = "1")]
720 pub compression: i32,
721 #[prost(uint64, optional, tag = "2")]
723 pub schema_infer_max_rec: ::core::option::Option<u64>,
724 #[prost(uint32, optional, tag = "3")]
726 pub compression_level: ::core::option::Option<u32>,
727 #[prost(bool, optional, tag = "4")]
729 pub newline_delimited: ::core::option::Option<bool>,
730}
731#[derive(Clone, PartialEq, ::prost::Message)]
732pub struct TableParquetOptions {
733 #[prost(message, optional, tag = "1")]
734 pub global: ::core::option::Option<ParquetOptions>,
735 #[prost(message, repeated, tag = "2")]
736 pub column_specific_options: ::prost::alloc::vec::Vec<ParquetColumnSpecificOptions>,
737 #[prost(map = "string, string", tag = "3")]
738 pub key_value_metadata: ::std::collections::HashMap<
739 ::prost::alloc::string::String,
740 ::prost::alloc::string::String,
741 >,
742}
743#[derive(Clone, PartialEq, ::prost::Message)]
744pub struct ParquetColumnSpecificOptions {
745 #[prost(string, tag = "1")]
746 pub column_name: ::prost::alloc::string::String,
747 #[prost(message, optional, tag = "2")]
748 pub options: ::core::option::Option<ParquetColumnOptions>,
749}
750#[derive(Clone, PartialEq, ::prost::Message)]
751pub struct ParquetColumnOptions {
752 #[prost(oneof = "parquet_column_options::BloomFilterEnabledOpt", tags = "1")]
753 pub bloom_filter_enabled_opt: ::core::option::Option<
754 parquet_column_options::BloomFilterEnabledOpt,
755 >,
756 #[prost(oneof = "parquet_column_options::EncodingOpt", tags = "2")]
757 pub encoding_opt: ::core::option::Option<parquet_column_options::EncodingOpt>,
758 #[prost(oneof = "parquet_column_options::DictionaryEnabledOpt", tags = "3")]
759 pub dictionary_enabled_opt: ::core::option::Option<
760 parquet_column_options::DictionaryEnabledOpt,
761 >,
762 #[prost(oneof = "parquet_column_options::CompressionOpt", tags = "4")]
763 pub compression_opt: ::core::option::Option<parquet_column_options::CompressionOpt>,
764 #[prost(oneof = "parquet_column_options::StatisticsEnabledOpt", tags = "5")]
765 pub statistics_enabled_opt: ::core::option::Option<
766 parquet_column_options::StatisticsEnabledOpt,
767 >,
768 #[prost(oneof = "parquet_column_options::BloomFilterFppOpt", tags = "6")]
769 pub bloom_filter_fpp_opt: ::core::option::Option<
770 parquet_column_options::BloomFilterFppOpt,
771 >,
772 #[prost(oneof = "parquet_column_options::BloomFilterNdvOpt", tags = "7")]
773 pub bloom_filter_ndv_opt: ::core::option::Option<
774 parquet_column_options::BloomFilterNdvOpt,
775 >,
776}
777pub mod parquet_column_options {
779 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
780 pub enum BloomFilterEnabledOpt {
781 #[prost(bool, tag = "1")]
782 BloomFilterEnabled(bool),
783 }
784 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
785 pub enum EncodingOpt {
786 #[prost(string, tag = "2")]
787 Encoding(::prost::alloc::string::String),
788 }
789 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
790 pub enum DictionaryEnabledOpt {
791 #[prost(bool, tag = "3")]
792 DictionaryEnabled(bool),
793 }
794 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
795 pub enum CompressionOpt {
796 #[prost(string, tag = "4")]
797 Compression(::prost::alloc::string::String),
798 }
799 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
800 pub enum StatisticsEnabledOpt {
801 #[prost(string, tag = "5")]
802 StatisticsEnabled(::prost::alloc::string::String),
803 }
804 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
805 pub enum BloomFilterFppOpt {
806 #[prost(double, tag = "6")]
807 BloomFilterFpp(f64),
808 }
809 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
810 pub enum BloomFilterNdvOpt {
811 #[prost(uint64, tag = "7")]
812 BloomFilterNdv(u64),
813 }
814}
815#[derive(Clone, PartialEq, ::prost::Message)]
816pub struct ParquetOptions {
817 #[prost(bool, tag = "1")]
821 pub enable_page_index: bool,
822 #[prost(bool, tag = "2")]
824 pub pruning: bool,
825 #[prost(bool, tag = "3")]
827 pub skip_metadata: bool,
828 #[prost(bool, tag = "5")]
830 pub pushdown_filters: bool,
831 #[prost(bool, tag = "6")]
833 pub reorder_filters: bool,
834 #[prost(bool, tag = "34")]
836 pub force_filter_selections: bool,
837 #[prost(uint64, tag = "7")]
839 pub data_pagesize_limit: u64,
840 #[prost(uint64, tag = "8")]
842 pub write_batch_size: u64,
843 #[prost(string, tag = "9")]
845 pub writer_version: ::prost::alloc::string::String,
846 #[prost(bool, tag = "23")]
850 pub allow_single_file_parallelism: bool,
851 #[prost(uint64, tag = "24")]
853 pub maximum_parallel_row_group_writers: u64,
854 #[prost(uint64, tag = "25")]
856 pub maximum_buffered_record_batches_per_stream: u64,
857 #[prost(bool, tag = "26")]
859 pub bloom_filter_on_read: bool,
860 #[prost(bool, tag = "27")]
862 pub bloom_filter_on_write: bool,
863 #[prost(bool, tag = "28")]
865 pub schema_force_view_types: bool,
866 #[prost(bool, tag = "29")]
868 pub binary_as_string: bool,
869 #[prost(bool, tag = "30")]
871 pub skip_arrow_metadata: bool,
872 #[prost(bool, tag = "41")]
874 pub write_row_group_number_distinct_values: bool,
875 #[prost(uint64, tag = "12")]
876 pub dictionary_page_size_limit: u64,
877 #[prost(uint64, tag = "18")]
878 pub data_page_row_count_limit: u64,
879 #[prost(uint64, tag = "15")]
880 pub max_row_group_size: u64,
881 #[prost(uint64, tag = "38")]
882 pub max_in_list_size: u64,
883 #[prost(string, tag = "39")]
885 pub row_group_range_assignment: ::prost::alloc::string::String,
886 #[prost(bool, tag = "40")]
887 pub enable_rle_to_dictionary: bool,
888 #[prost(string, tag = "16")]
889 pub created_by: ::prost::alloc::string::String,
890 #[prost(message, optional, tag = "35")]
891 pub content_defined_chunking: ::core::option::Option<ParquetCdcOptions>,
892 #[prost(oneof = "parquet_options::MetadataSizeHintOpt", tags = "4")]
893 pub metadata_size_hint_opt: ::core::option::Option<
894 parquet_options::MetadataSizeHintOpt,
895 >,
896 #[prost(oneof = "parquet_options::CompressionOpt", tags = "10")]
897 pub compression_opt: ::core::option::Option<parquet_options::CompressionOpt>,
898 #[prost(oneof = "parquet_options::DictionaryEnabledOpt", tags = "11")]
899 pub dictionary_enabled_opt: ::core::option::Option<
900 parquet_options::DictionaryEnabledOpt,
901 >,
902 #[prost(oneof = "parquet_options::StatisticsEnabledOpt", tags = "13")]
903 pub statistics_enabled_opt: ::core::option::Option<
904 parquet_options::StatisticsEnabledOpt,
905 >,
906 #[prost(oneof = "parquet_options::ColumnIndexTruncateLengthOpt", tags = "17")]
907 pub column_index_truncate_length_opt: ::core::option::Option<
908 parquet_options::ColumnIndexTruncateLengthOpt,
909 >,
910 #[prost(oneof = "parquet_options::StatisticsTruncateLengthOpt", tags = "31")]
911 pub statistics_truncate_length_opt: ::core::option::Option<
912 parquet_options::StatisticsTruncateLengthOpt,
913 >,
914 #[prost(oneof = "parquet_options::EncodingOpt", tags = "19")]
915 pub encoding_opt: ::core::option::Option<parquet_options::EncodingOpt>,
916 #[prost(oneof = "parquet_options::BloomFilterFppOpt", tags = "21")]
917 pub bloom_filter_fpp_opt: ::core::option::Option<parquet_options::BloomFilterFppOpt>,
918 #[prost(oneof = "parquet_options::BloomFilterNdvOpt", tags = "22")]
919 pub bloom_filter_ndv_opt: ::core::option::Option<parquet_options::BloomFilterNdvOpt>,
920 #[prost(oneof = "parquet_options::CoerceInt96Opt", tags = "32")]
921 pub coerce_int96_opt: ::core::option::Option<parquet_options::CoerceInt96Opt>,
922 #[prost(oneof = "parquet_options::MaxPredicateCacheSizeOpt", tags = "33")]
923 pub max_predicate_cache_size_opt: ::core::option::Option<
924 parquet_options::MaxPredicateCacheSizeOpt,
925 >,
926 #[prost(oneof = "parquet_options::MaxRowGroupBytesOpt", tags = "37")]
927 pub max_row_group_bytes_opt: ::core::option::Option<
928 parquet_options::MaxRowGroupBytesOpt,
929 >,
930 #[prost(oneof = "parquet_options::CoerceInt96TzOpt", tags = "36")]
935 pub coerce_int96_tz_opt: ::core::option::Option<parquet_options::CoerceInt96TzOpt>,
936}
937pub mod parquet_options {
939 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
940 pub enum MetadataSizeHintOpt {
941 #[prost(uint64, tag = "4")]
942 MetadataSizeHint(u64),
943 }
944 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
945 pub enum CompressionOpt {
946 #[prost(string, tag = "10")]
947 Compression(::prost::alloc::string::String),
948 }
949 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
950 pub enum DictionaryEnabledOpt {
951 #[prost(bool, tag = "11")]
952 DictionaryEnabled(bool),
953 }
954 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
955 pub enum StatisticsEnabledOpt {
956 #[prost(string, tag = "13")]
957 StatisticsEnabled(::prost::alloc::string::String),
958 }
959 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
960 pub enum ColumnIndexTruncateLengthOpt {
961 #[prost(uint64, tag = "17")]
962 ColumnIndexTruncateLength(u64),
963 }
964 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
965 pub enum StatisticsTruncateLengthOpt {
966 #[prost(uint64, tag = "31")]
967 StatisticsTruncateLength(u64),
968 }
969 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
970 pub enum EncodingOpt {
971 #[prost(string, tag = "19")]
972 Encoding(::prost::alloc::string::String),
973 }
974 #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
975 pub enum BloomFilterFppOpt {
976 #[prost(double, tag = "21")]
977 BloomFilterFpp(f64),
978 }
979 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
980 pub enum BloomFilterNdvOpt {
981 #[prost(uint64, tag = "22")]
982 BloomFilterNdv(u64),
983 }
984 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
985 pub enum CoerceInt96Opt {
986 #[prost(string, tag = "32")]
987 CoerceInt96(::prost::alloc::string::String),
988 }
989 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
990 pub enum MaxPredicateCacheSizeOpt {
991 #[prost(uint64, tag = "33")]
992 MaxPredicateCacheSize(u64),
993 }
994 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
995 pub enum MaxRowGroupBytesOpt {
996 #[prost(uint64, tag = "37")]
997 MaxRowGroupBytes(u64),
998 }
999 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
1004 pub enum CoerceInt96TzOpt {
1005 #[prost(string, tag = "36")]
1006 CoerceInt96Tz(::prost::alloc::string::String),
1007 }
1008}
1009#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1011pub struct ParquetCdcOptions {
1012 #[prost(bool, tag = "1")]
1013 pub enabled: bool,
1014 #[prost(uint64, tag = "2")]
1015 pub min_chunk_size: u64,
1016 #[prost(uint64, tag = "3")]
1017 pub max_chunk_size: u64,
1018 #[prost(int32, tag = "4")]
1019 pub norm_level: i32,
1020}
1021#[derive(Clone, PartialEq, ::prost::Message)]
1022pub struct Precision {
1023 #[prost(enumeration = "PrecisionInfo", tag = "1")]
1024 pub precision_info: i32,
1025 #[prost(message, optional, tag = "2")]
1026 pub val: ::core::option::Option<ScalarValue>,
1027}
1028#[derive(Clone, PartialEq, ::prost::Message)]
1029pub struct Statistics {
1030 #[prost(message, optional, tag = "1")]
1031 pub num_rows: ::core::option::Option<Precision>,
1032 #[prost(message, optional, tag = "2")]
1033 pub total_byte_size: ::core::option::Option<Precision>,
1034 #[prost(message, repeated, tag = "3")]
1035 pub column_stats: ::prost::alloc::vec::Vec<ColumnStats>,
1036}
1037#[derive(Clone, PartialEq, ::prost::Message)]
1038pub struct ColumnStats {
1039 #[prost(message, optional, tag = "1")]
1040 pub min_value: ::core::option::Option<Precision>,
1041 #[prost(message, optional, tag = "2")]
1042 pub max_value: ::core::option::Option<Precision>,
1043 #[prost(message, optional, tag = "5")]
1044 pub sum_value: ::core::option::Option<Precision>,
1045 #[prost(message, optional, tag = "3")]
1046 pub null_count: ::core::option::Option<Precision>,
1047 #[prost(message, optional, tag = "4")]
1048 pub distinct_count: ::core::option::Option<Precision>,
1049 #[prost(message, optional, tag = "6")]
1050 pub byte_size: ::core::option::Option<Precision>,
1051}
1052#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1058pub struct ExplainAnalyzeCategoriesNode {
1059 #[prost(bool, tag = "1")]
1060 pub all: bool,
1061 #[prost(enumeration = "MetricCategory", repeated, tag = "2")]
1062 pub only: ::prost::alloc::vec::Vec<i32>,
1063}
1064#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1065#[repr(i32)]
1066pub enum JoinType {
1067 Inner = 0,
1068 Left = 1,
1069 Right = 2,
1070 Full = 3,
1071 Leftsemi = 4,
1072 Leftanti = 5,
1073 Rightsemi = 6,
1074 Rightanti = 7,
1075 Leftmark = 8,
1076 Rightmark = 9,
1077}
1078impl JoinType {
1079 pub fn as_str_name(&self) -> &'static str {
1084 match self {
1085 Self::Inner => "INNER",
1086 Self::Left => "LEFT",
1087 Self::Right => "RIGHT",
1088 Self::Full => "FULL",
1089 Self::Leftsemi => "LEFTSEMI",
1090 Self::Leftanti => "LEFTANTI",
1091 Self::Rightsemi => "RIGHTSEMI",
1092 Self::Rightanti => "RIGHTANTI",
1093 Self::Leftmark => "LEFTMARK",
1094 Self::Rightmark => "RIGHTMARK",
1095 }
1096 }
1097 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1099 match value {
1100 "INNER" => Some(Self::Inner),
1101 "LEFT" => Some(Self::Left),
1102 "RIGHT" => Some(Self::Right),
1103 "FULL" => Some(Self::Full),
1104 "LEFTSEMI" => Some(Self::Leftsemi),
1105 "LEFTANTI" => Some(Self::Leftanti),
1106 "RIGHTSEMI" => Some(Self::Rightsemi),
1107 "RIGHTANTI" => Some(Self::Rightanti),
1108 "LEFTMARK" => Some(Self::Leftmark),
1109 "RIGHTMARK" => Some(Self::Rightmark),
1110 _ => None,
1111 }
1112 }
1113}
1114#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1115#[repr(i32)]
1116pub enum JoinConstraint {
1117 On = 0,
1118 Using = 1,
1119}
1120impl JoinConstraint {
1121 pub fn as_str_name(&self) -> &'static str {
1126 match self {
1127 Self::On => "ON",
1128 Self::Using => "USING",
1129 }
1130 }
1131 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1133 match value {
1134 "ON" => Some(Self::On),
1135 "USING" => Some(Self::Using),
1136 _ => None,
1137 }
1138 }
1139}
1140#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1141#[repr(i32)]
1142pub enum NullEquality {
1143 NullEqualsNothing = 0,
1144 NullEqualsNull = 1,
1145}
1146impl NullEquality {
1147 pub fn as_str_name(&self) -> &'static str {
1152 match self {
1153 Self::NullEqualsNothing => "NULL_EQUALS_NOTHING",
1154 Self::NullEqualsNull => "NULL_EQUALS_NULL",
1155 }
1156 }
1157 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1159 match value {
1160 "NULL_EQUALS_NOTHING" => Some(Self::NullEqualsNothing),
1161 "NULL_EQUALS_NULL" => Some(Self::NullEqualsNull),
1162 _ => None,
1163 }
1164 }
1165}
1166#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1167#[repr(i32)]
1168pub enum TimeUnit {
1169 Second = 0,
1170 Millisecond = 1,
1171 Microsecond = 2,
1172 Nanosecond = 3,
1173}
1174impl TimeUnit {
1175 pub fn as_str_name(&self) -> &'static str {
1180 match self {
1181 Self::Second => "Second",
1182 Self::Millisecond => "Millisecond",
1183 Self::Microsecond => "Microsecond",
1184 Self::Nanosecond => "Nanosecond",
1185 }
1186 }
1187 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1189 match value {
1190 "Second" => Some(Self::Second),
1191 "Millisecond" => Some(Self::Millisecond),
1192 "Microsecond" => Some(Self::Microsecond),
1193 "Nanosecond" => Some(Self::Nanosecond),
1194 _ => None,
1195 }
1196 }
1197}
1198#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1199#[repr(i32)]
1200pub enum IntervalUnit {
1201 YearMonth = 0,
1202 DayTime = 1,
1203 MonthDayNano = 2,
1204}
1205impl IntervalUnit {
1206 pub fn as_str_name(&self) -> &'static str {
1211 match self {
1212 Self::YearMonth => "YearMonth",
1213 Self::DayTime => "DayTime",
1214 Self::MonthDayNano => "MonthDayNano",
1215 }
1216 }
1217 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1219 match value {
1220 "YearMonth" => Some(Self::YearMonth),
1221 "DayTime" => Some(Self::DayTime),
1222 "MonthDayNano" => Some(Self::MonthDayNano),
1223 _ => None,
1224 }
1225 }
1226}
1227#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1228#[repr(i32)]
1229pub enum UnionMode {
1230 Sparse = 0,
1231 Dense = 1,
1232}
1233impl UnionMode {
1234 pub fn as_str_name(&self) -> &'static str {
1239 match self {
1240 Self::Sparse => "sparse",
1241 Self::Dense => "dense",
1242 }
1243 }
1244 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1246 match value {
1247 "sparse" => Some(Self::Sparse),
1248 "dense" => Some(Self::Dense),
1249 _ => None,
1250 }
1251 }
1252}
1253#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1254#[repr(i32)]
1255pub enum CompressionTypeVariant {
1256 Gzip = 0,
1257 Bzip2 = 1,
1258 Xz = 2,
1259 Zstd = 3,
1260 Uncompressed = 4,
1261}
1262impl CompressionTypeVariant {
1263 pub fn as_str_name(&self) -> &'static str {
1268 match self {
1269 Self::Gzip => "GZIP",
1270 Self::Bzip2 => "BZIP2",
1271 Self::Xz => "XZ",
1272 Self::Zstd => "ZSTD",
1273 Self::Uncompressed => "UNCOMPRESSED",
1274 }
1275 }
1276 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1278 match value {
1279 "GZIP" => Some(Self::Gzip),
1280 "BZIP2" => Some(Self::Bzip2),
1281 "XZ" => Some(Self::Xz),
1282 "ZSTD" => Some(Self::Zstd),
1283 "UNCOMPRESSED" => Some(Self::Uncompressed),
1284 _ => None,
1285 }
1286 }
1287}
1288#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1289#[repr(i32)]
1290pub enum CsvQuoteStyle {
1291 Necessary = 0,
1292 Always = 1,
1293 NonNumeric = 2,
1294 Never = 3,
1295}
1296impl CsvQuoteStyle {
1297 pub fn as_str_name(&self) -> &'static str {
1302 match self {
1303 Self::Necessary => "NECESSARY",
1304 Self::Always => "ALWAYS",
1305 Self::NonNumeric => "NON_NUMERIC",
1306 Self::Never => "NEVER",
1307 }
1308 }
1309 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1311 match value {
1312 "NECESSARY" => Some(Self::Necessary),
1313 "ALWAYS" => Some(Self::Always),
1314 "NON_NUMERIC" => Some(Self::NonNumeric),
1315 "NEVER" => Some(Self::Never),
1316 _ => None,
1317 }
1318 }
1319}
1320#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1321#[repr(i32)]
1322pub enum JoinSide {
1323 LeftSide = 0,
1324 RightSide = 1,
1325 None = 2,
1326}
1327impl JoinSide {
1328 pub fn as_str_name(&self) -> &'static str {
1333 match self {
1334 Self::LeftSide => "LEFT_SIDE",
1335 Self::RightSide => "RIGHT_SIDE",
1336 Self::None => "NONE",
1337 }
1338 }
1339 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1341 match value {
1342 "LEFT_SIDE" => Some(Self::LeftSide),
1343 "RIGHT_SIDE" => Some(Self::RightSide),
1344 "NONE" => Some(Self::None),
1345 _ => None,
1346 }
1347 }
1348}
1349#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1350#[repr(i32)]
1351pub enum PrecisionInfo {
1352 Exact = 0,
1353 Inexact = 1,
1354 Absent = 2,
1355}
1356impl PrecisionInfo {
1357 pub fn as_str_name(&self) -> &'static str {
1362 match self {
1363 Self::Exact => "EXACT",
1364 Self::Inexact => "INEXACT",
1365 Self::Absent => "ABSENT",
1366 }
1367 }
1368 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1370 match value {
1371 "EXACT" => Some(Self::Exact),
1372 "INEXACT" => Some(Self::Inexact),
1373 "ABSENT" => Some(Self::Absent),
1374 _ => None,
1375 }
1376 }
1377}
1378#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1379#[repr(i32)]
1380pub enum ExplainFormat {
1381 Indent = 0,
1382 Tree = 1,
1383 Pgjson = 2,
1384 Graphviz = 3,
1385}
1386impl ExplainFormat {
1387 pub fn as_str_name(&self) -> &'static str {
1392 match self {
1393 Self::Indent => "EXPLAIN_FORMAT_INDENT",
1394 Self::Tree => "EXPLAIN_FORMAT_TREE",
1395 Self::Pgjson => "EXPLAIN_FORMAT_PGJSON",
1396 Self::Graphviz => "EXPLAIN_FORMAT_GRAPHVIZ",
1397 }
1398 }
1399 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1401 match value {
1402 "EXPLAIN_FORMAT_INDENT" => Some(Self::Indent),
1403 "EXPLAIN_FORMAT_TREE" => Some(Self::Tree),
1404 "EXPLAIN_FORMAT_PGJSON" => Some(Self::Pgjson),
1405 "EXPLAIN_FORMAT_GRAPHVIZ" => Some(Self::Graphviz),
1406 _ => None,
1407 }
1408 }
1409}
1410#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1413#[repr(i32)]
1414pub enum MetricType {
1415 Summary = 0,
1416 Dev = 1,
1417}
1418impl MetricType {
1419 pub fn as_str_name(&self) -> &'static str {
1424 match self {
1425 Self::Summary => "METRIC_TYPE_SUMMARY",
1426 Self::Dev => "METRIC_TYPE_DEV",
1427 }
1428 }
1429 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1431 match value {
1432 "METRIC_TYPE_SUMMARY" => Some(Self::Summary),
1433 "METRIC_TYPE_DEV" => Some(Self::Dev),
1434 _ => None,
1435 }
1436 }
1437}
1438#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1441#[repr(i32)]
1442pub enum MetricCategory {
1443 Rows = 0,
1444 Bytes = 1,
1445 Timing = 2,
1446 Uncategorized = 3,
1447}
1448impl MetricCategory {
1449 pub fn as_str_name(&self) -> &'static str {
1454 match self {
1455 Self::Rows => "METRIC_CATEGORY_ROWS",
1456 Self::Bytes => "METRIC_CATEGORY_BYTES",
1457 Self::Timing => "METRIC_CATEGORY_TIMING",
1458 Self::Uncategorized => "METRIC_CATEGORY_UNCATEGORIZED",
1459 }
1460 }
1461 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
1463 match value {
1464 "METRIC_CATEGORY_ROWS" => Some(Self::Rows),
1465 "METRIC_CATEGORY_BYTES" => Some(Self::Bytes),
1466 "METRIC_CATEGORY_TIMING" => Some(Self::Timing),
1467 "METRIC_CATEGORY_UNCATEGORIZED" => Some(Self::Uncategorized),
1468 _ => None,
1469 }
1470 }
1471}