From eeca88e7b243bd4018c58508dfdb82fc0a98a34c Mon Sep 17 00:00:00 2001 From: acezen Date: Mon, 26 Jun 2023 10:30:22 +0800 Subject: [PATCH] Fix Signed-off-by: acezen --- cpp/include/gar/reader/arrow_chunk_reader.h | 3 ++- cpp/include/gar/reader/chunk_info_reader.h | 3 ++- cpp/include/gar/utils/status.h | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cpp/include/gar/reader/arrow_chunk_reader.h b/cpp/include/gar/reader/arrow_chunk_reader.h index 7187c9f3d..59e6b4ef1 100644 --- a/cpp/include/gar/reader/arrow_chunk_reader.h +++ b/cpp/include/gar/reader/arrow_chunk_reader.h @@ -494,7 +494,8 @@ class AdjListPropertyArrowChunkReader { chunk_table_.reset(); } if (chunk_index_ >= chunk_num_) { - return Status::KeyError("The edge offset ", index, " is out of range [0,", + return Status::KeyError("The edge offset ", offset, + " is out of range [0,", edge_info_.GetChunkSize() * chunk_num_, "), edge label: ", edge_info_.GetEdgeLabel()); } diff --git a/cpp/include/gar/reader/chunk_info_reader.h b/cpp/include/gar/reader/chunk_info_reader.h index 807c4d33f..af9489325 100644 --- a/cpp/include/gar/reader/chunk_info_reader.h +++ b/cpp/include/gar/reader/chunk_info_reader.h @@ -280,7 +280,8 @@ class AdjListPropertyChunkInfoReader { Status seek(IdType offset) noexcept { chunk_index_ = offset / edge_info_.GetChunkSize(); if (chunk_index_ >= chunk_num_) { - return Status::KeyError("The edge offset ", index, " is out of range [0,", + return Status::KeyError("The edge offset ", offset, + " is out of range [0,", edge_info_.GetChunkSize() * chunk_num_, "), edge label: ", edge_info_.GetEdgeLabel()); } diff --git a/cpp/include/gar/utils/status.h b/cpp/include/gar/utils/status.h index beb89e6c0..ee093bddb 100644 --- a/cpp/include/gar/utils/status.h +++ b/cpp/include/gar/utils/status.h @@ -97,7 +97,6 @@ enum class StatusCode : unsigned char { kIOError, kYamlError, kArrowError, - kNotImplemented, kUnknownError, };