@@ -115,7 +115,21 @@ pub struct Timestamp {
115
115
pub timezone : :: prost:: alloc:: string:: String ,
116
116
}
117
117
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
118
- pub struct Decimal {
118
+ pub struct Decimal32Type {
119
+ #[ prost( uint32, tag = "3" ) ]
120
+ pub precision : u32 ,
121
+ #[ prost( int32, tag = "4" ) ]
122
+ pub scale : i32 ,
123
+ }
124
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
125
+ pub struct Decimal64Type {
126
+ #[ prost( uint32, tag = "3" ) ]
127
+ pub precision : u32 ,
128
+ #[ prost( int32, tag = "4" ) ]
129
+ pub scale : i32 ,
130
+ }
131
+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
132
+ pub struct Decimal128Type {
119
133
#[ prost( uint32, tag = "3" ) ]
120
134
pub precision : u32 ,
121
135
#[ prost( int32, tag = "4" ) ]
@@ -295,7 +309,7 @@ pub struct ScalarFixedSizeBinary {
295
309
pub struct ScalarValue {
296
310
#[ prost(
297
311
oneof = "scalar_value::Value" ,
298
- tags = "33, 1, 2, 3, 23, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 32, 41, 20, 39, 21, 24, 35, 36, 37, 38, 26, 27, 28, 29, 22, 30, 25, 31, 34, 42"
312
+ tags = "33, 1, 2, 3, 23, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 32, 41, 43, 44, 20, 39, 21, 24, 35, 36, 37, 38, 26, 27, 28, 29, 22, 30, 25, 31, 34, 42"
299
313
) ]
300
314
pub value : :: core:: option:: Option < scalar_value:: Value > ,
301
315
}
@@ -350,6 +364,10 @@ pub mod scalar_value {
350
364
StructValue ( super :: ScalarNestedValue ) ,
351
365
#[ prost( message, tag = "41" ) ]
352
366
MapValue ( super :: ScalarNestedValue ) ,
367
+ #[ prost( message, tag = "43" ) ]
368
+ Decimal32Value ( super :: Decimal32 ) ,
369
+ #[ prost( message, tag = "44" ) ]
370
+ Decimal64Value ( super :: Decimal64 ) ,
353
371
#[ prost( message, tag = "20" ) ]
354
372
Decimal128Value ( super :: Decimal128 ) ,
355
373
#[ prost( message, tag = "39" ) ]
@@ -389,6 +407,24 @@ pub mod scalar_value {
389
407
}
390
408
}
391
409
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
410
+ pub struct Decimal32 {
411
+ #[ prost( bytes = "vec" , tag = "1" ) ]
412
+ pub value : :: prost:: alloc:: vec:: Vec < u8 > ,
413
+ #[ prost( int64, tag = "2" ) ]
414
+ pub p : i64 ,
415
+ #[ prost( int64, tag = "3" ) ]
416
+ pub s : i64 ,
417
+ }
418
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
419
+ pub struct Decimal64 {
420
+ #[ prost( bytes = "vec" , tag = "1" ) ]
421
+ pub value : :: prost:: alloc:: vec:: Vec < u8 > ,
422
+ #[ prost( int64, tag = "2" ) ]
423
+ pub p : i64 ,
424
+ #[ prost( int64, tag = "3" ) ]
425
+ pub s : i64 ,
426
+ }
427
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
392
428
pub struct Decimal128 {
393
429
#[ prost( bytes = "vec" , tag = "1" ) ]
394
430
pub value : :: prost:: alloc:: vec:: Vec < u8 > ,
@@ -411,7 +447,7 @@ pub struct Decimal256 {
411
447
pub struct ArrowType {
412
448
#[ prost(
413
449
oneof = "arrow_type::ArrowTypeEnum" ,
414
- 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, 24, 36, 25, 26, 27, 28, 29, 30, 33"
450
+ 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, 28, 29, 30, 33"
415
451
) ]
416
452
pub arrow_type_enum : :: core:: option:: Option < arrow_type:: ArrowTypeEnum > ,
417
453
}
@@ -478,8 +514,12 @@ pub mod arrow_type {
478
514
Time64 ( i32 ) ,
479
515
#[ prost( enumeration = "super::IntervalUnit" , tag = "23" ) ]
480
516
Interval ( i32 ) ,
517
+ #[ prost( message, tag = "40" ) ]
518
+ Decimal32 ( super :: Decimal32Type ) ,
519
+ #[ prost( message, tag = "41" ) ]
520
+ Decimal64 ( super :: Decimal64Type ) ,
481
521
#[ prost( message, tag = "24" ) ]
482
- Decimal ( super :: Decimal ) ,
522
+ Decimal128 ( super :: Decimal128Type ) ,
483
523
#[ prost( message, tag = "36" ) ]
484
524
Decimal256 ( super :: Decimal256Type ) ,
485
525
#[ prost( message, tag = "25" ) ]
0 commit comments