Skip to content

Commit 6b652f1

Browse files
committed
Darwin fixes for NFormats::NTestUtils (ydb-platform#26281)
1 parent dc8f3c3 commit 6b652f1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ydb/core/kqp/common/result_set_format/kqp_result_set_arrow.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,18 @@ NUdf::TUnboxedValue GetUnboxedValue(std::shared_ptr<arrow::Array> column, ui32 r
745745
return NUdf::TUnboxedValuePod(static_cast<typename TArrowType::c_type>(array->Value(row)));
746746
}
747747

748+
template <> // For darwin build
749+
NUdf::TUnboxedValue GetUnboxedValue<arrow::UInt64Type>(std::shared_ptr<arrow::Array> column, ui32 row) {
750+
auto array = std::static_pointer_cast<arrow::UInt64Array>(column);
751+
return NUdf::TUnboxedValuePod(static_cast<ui64>(array->Value(row)));
752+
}
753+
754+
template <> // For darwin build
755+
NUdf::TUnboxedValue GetUnboxedValue<arrow::Int64Type>(std::shared_ptr<arrow::Array> column, ui32 row) {
756+
auto array = std::static_pointer_cast<arrow::Int64Array>(column);
757+
return NUdf::TUnboxedValuePod(static_cast<i64>(array->Value(row)));
758+
}
759+
748760
template <>
749761
NUdf::TUnboxedValue GetUnboxedValue<arrow::StructType>(std::shared_ptr<arrow::Array> column, ui32 row) {
750762
auto array = std::static_pointer_cast<arrow::StructArray>(column);

0 commit comments

Comments
 (0)