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

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   Interface `::arrow::Status ReadRowGroups` in file 
src/parquet/arrow/reader.h(https://github.com/apache/arrow/blob/main/cpp/src/parquet/arrow/reader.cc#L1219)
 has an input param named `const std::vector<int>& column_indices`, here are my 
questions:
   1.I read the code and thought that column_indices should be leaf's column 
index, is that right? And If it is right, how can i get leaf's column index? I 
didn't find any interface about it.
   2.line 1254 in file 
src/parquet/arrow/reader.cc(https://github.com/apache/arrow/blob/main/cpp/src/parquet/arrow/reader.cc#L1254),`RETURN_NOT_OK(ReadColumn(static_cast<int>(i),
 row_groups, reader.get(), &column));`, i think the first param 
`static_cast<int>(i)` should be index of `std::vector<SchemaField> 
schema_fields` in struct 
`SchemaManifest`(https://github.com/apache/arrow/blob/main/cpp/src/parquet/arrow/schema.h#L115),
 am i right? If so, i believe current passed value is not as expected.
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to