You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
The problem raised from [1]. NumericArray<T> uses values_ as a cache of typed values[2]. This might not being set when calling the PrimitiveArray::PrimitiveArray constructor [3]. The code can be reproduced like:
TEST(TestPrettyPrintArray, TimestampArray) {
auto array = std::make_shared<TimestampArray>(
timestamp(TimeUnit::MICRO),
/*length=*/1, Buffer::FromVector(std::vector<int64_t>{0}));
auto v0 = array->GetView(0);
std::cout << v0 << std::endl;
}
Describe the bug, including details regarding any error messages, version, and platform.
The problem raised from [1].
NumericArray<T>
usesvalues_
as a cache of typed values[2]. This might not being set when calling thePrimitiveArray::PrimitiveArray
constructor [3]. The code can be reproduced like:This might be fixed with:
But I don't know would I missed something.
[1] #44190
[2]
arrow/cpp/src/arrow/array/array_primitive.h
Line 131 in a3c39ec
[3]
arrow/cpp/src/arrow/array/array_primitive.h
Line 122 in a3c39ec
Component(s)
C++
The text was updated successfully, but these errors were encountered: