loonpapa opened a new issue, #45124:
URL: https://github.com/apache/arrow/issues/45124

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   i just used cpp/parquet/example code, but i got error message when complie:
   
   ./src/fed.cpp:63:27: error: too few arguments to function call, expected 3, 
have 2; did you mean 'parquet::ParquetFileReader::OpenFile'?
                             parquet::arrow::OpenFile(infile, 
arrow::default_memory_pool()));
                             ^~~~~~~
                             parquet::ParquetFileReader::OpenFile
   /usr/local/include/parquet/exception.h:83:37: note: expanded from macro 
'PARQUET_ASSIGN_OR_THROW'
                                  lhs, rexpr);
                                       ^~~~~
   /usr/local/include/parquet/exception.h:77:23: note: expanded from macro 
'PARQUET_ASSIGN_OR_THROW_IMPL'
     auto status_name = (rexpr);                                 \
                         ^~~~~
   /usr/local/include/parquet/file_reader.h:140:45: note: 
'parquet::ParquetFileReader::OpenFile' declared here
     static std::unique_ptr<ParquetFileReader> OpenFile(
                                               ^
   
   the example code just copied from example/arrow-parquet:
   void read_whole_file() {
     std::cout << "Reading parquet-arrow-example.parquet at once" << std::endl;
     std::shared_ptr<arrow::io::ReadableFile> infile;
     PARQUET_ASSIGN_OR_THROW(infile,
                             
arrow::io::ReadableFile::Open("parquet-arrow-example.parquet",
                                                           
arrow::default_memory_pool()));
   
     std::unique_ptr<parquet::arrow::FileReader> reader;
     PARQUET_ASSIGN_OR_THROW(reader,
                             parquet::arrow::OpenFile(infile, 
arrow::default_memory_pool()));
     std::shared_ptr<arrow::Table> table;
     PARQUET_THROW_NOT_OK(reader->ReadTable(&table));
     std::cout << "Loaded " << table->num_rows() << " rows in " << 
table->num_columns()
               << " columns." << std::endl;
   }
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to