File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
src/query/expression/src/converts/arrow Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -127,10 +127,7 @@ impl TryFrom<&Field> for TableField {
127
127
ArrowDataType :: Decimal128 ( precision, scale) if * scale >= 0 => {
128
128
let size = DecimalSize :: new ( * precision, * scale as _ ) ?;
129
129
match size. data_kind ( ) {
130
- DecimalDataKind :: Decimal64 => {
131
- TableDataType :: Decimal ( DecimalDataType :: Decimal64 ( size) )
132
- }
133
- DecimalDataKind :: Decimal128 => {
130
+ DecimalDataKind :: Decimal64 | DecimalDataKind :: Decimal128 => {
134
131
TableDataType :: Decimal ( DecimalDataType :: Decimal128 ( size) )
135
132
}
136
133
_ => unreachable ! ( ) ,
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ impl From<&TableField> for Field {
114
114
TableDataType :: Number ( ty) => with_number_type ! ( |TYPE | match ty {
115
115
NumberDataType :: TYPE => ArrowDataType :: TYPE ,
116
116
} ) ,
117
- // TODO Map DecimalDataType::Decimal64 to ArrowDataType::Decimal64?
118
117
TableDataType :: Decimal (
119
118
DecimalDataType :: Decimal64 ( size) | DecimalDataType :: Decimal128 ( size) ,
120
119
) => ArrowDataType :: Decimal128 ( size. precision ( ) , size. scale ( ) as i8 ) ,
You can’t perform that action at this time.
0 commit comments