Skip to content

Commit b8d34fa

Browse files
committed
Removing the non-supported opensearch data types from the sort comparision
Signed-off-by: Chaitanya KSR <ksrchai@amazon.com>
1 parent 4bed0a9 commit b8d34fa

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • sandbox/plugins/parquet-data-format/src/main/rust/src/merge

sandbox/plugins/parquet-data-format/src/main/rust/src/merge/heap.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use arrow::datatypes::{
1515
DurationMillisecondType, DurationNanosecondType, DurationSecondType, Float32Type, Float64Type,
1616
Int16Type, Int32Type, Int64Type, Int8Type, TimestampMicrosecondType,
1717
TimestampMillisecondType, TimestampNanosecondType, TimestampSecondType,
18-
UInt8Type, UInt16Type, UInt32Type, UInt64Type,
1918
};
2019

2120
use super::error::{MergeError, MergeResult};
@@ -139,10 +138,6 @@ pub fn get_sort_value(
139138
ArrowDataType::Int32 => SortKey::Int(col.as_primitive::<Int32Type>().value(row) as i64),
140139
ArrowDataType::Int16 => SortKey::Int(col.as_primitive::<Int16Type>().value(row) as i64),
141140
ArrowDataType::Int8 => SortKey::Int(col.as_primitive::<Int8Type>().value(row) as i64),
142-
ArrowDataType::UInt32 => SortKey::Int(col.as_primitive::<UInt32Type>().value(row) as i64),
143-
ArrowDataType::UInt16 => SortKey::Int(col.as_primitive::<UInt16Type>().value(row) as i64),
144-
ArrowDataType::UInt8 => SortKey::Int(col.as_primitive::<UInt8Type>().value(row) as i64),
145-
ArrowDataType::UInt64 => SortKey::Int(col.as_primitive::<UInt64Type>().value(row) as i64),
146141
ArrowDataType::Date32 => SortKey::Int(col.as_primitive::<Date32Type>().value(row) as i64),
147142
ArrowDataType::Date64 => SortKey::Int(col.as_primitive::<Date64Type>().value(row)),
148143
ArrowDataType::Timestamp(unit, _) => SortKey::Int(match unit {

0 commit comments

Comments
 (0)