You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2023/11/06 01:53:04 UTC
(arrow) branch main updated: MINOR: [C++] Fix typo in Decimal256::FromBigEndian error (#38587)
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 987975c9e0 MINOR: [C++] Fix typo in Decimal256::FromBigEndian error (#38587)
987975c9e0 is described below
commit 987975c9e072e6d7a9c2aac3473451c65197bf5d
Author: William Ayd <wi...@icloud.com>
AuthorDate: Sun Nov 5 20:52:57 2023 -0500
MINOR: [C++] Fix typo in Decimal256::FromBigEndian error (#38587)
Looks like a copy/paste error from the Decimal128 variant
Authored-by: Will Ayd <wi...@icloud.com>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
cpp/src/arrow/util/decimal.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/src/arrow/util/decimal.cc b/cpp/src/arrow/util/decimal.cc
index 704b6bb9d4..13709aa2f0 100644
--- a/cpp/src/arrow/util/decimal.cc
+++ b/cpp/src/arrow/util/decimal.cc
@@ -868,7 +868,7 @@ Result<Decimal256> Decimal256::FromBigEndian(const uint8_t* bytes, int32_t lengt
std::array<uint64_t, 4> little_endian_array;
if (ARROW_PREDICT_FALSE(length < kMinDecimalBytes || length > kMaxDecimalBytes)) {
- return Status::Invalid("Length of byte array passed to Decimal128::FromBigEndian ",
+ return Status::Invalid("Length of byte array passed to Decimal256::FromBigEndian ",
"was ", length, ", but must be between ", kMinDecimalBytes,
" and ", kMaxDecimalBytes);
}