This is an automated email from the ASF dual-hosted git repository.

weibin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-graphar.git


The following commit(s) were added to refs/heads/main by this push:
     new 8d5111f5 fix(c++): Add REQUIRE to check maybe_reader status  (#524)
8d5111f5 is described below

commit 8d5111f5d7685f64b2fd7d4abb96ae97b2896875
Author: Haoran Yu <[email protected]>
AuthorDate: Tue Jun 18 11:21:18 2024 +0800

    fix(c++): Add REQUIRE to check maybe_reader status  (#524)
    
    
    
    Add a REQUIRE to make sure maybe_reader status is ok
    
    ---------
    
    Signed-off-by: Haoran Yu <[email protected]>
    Co-authored-by: Haoran Yu <[email protected]>
---
 cpp/test/test_arrow_chunk_reader.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpp/test/test_arrow_chunk_reader.cc 
b/cpp/test/test_arrow_chunk_reader.cc
index 74d8041d..36608d64 100644
--- a/cpp/test/test_arrow_chunk_reader.cc
+++ b/cpp/test/test_arrow_chunk_reader.cc
@@ -291,6 +291,7 @@ TEST_CASE_METHOD(GlobalFixture, "ArrowChunkReader") {
       auto maybe_reader = AdjListArrowChunkReader::Make(
           graph_info, src_label, edge_label, dst_label,
           AdjListType::ordered_by_source);
+      REQUIRE(maybe_reader.status().ok());
       auto reader = maybe_reader.value();
       // check reader start from vertex chunk 0
       auto result = reader->GetChunk();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to