zzzzwj commented on issue #14748:
URL: https://github.com/apache/arrow/issues/14748#issuecomment-1333291500
Yeah, the exception type varies per run. Sometimes Access Violation and
Parquet Status Exception the other. I'm also confused about that.
```(C++)
int main() {
auto reader = parquet::ParquetFileReader::OpenFile("D:\\sample.parquet",
false);
std::cout << reader->metadata()->schema()->ToString() << std::endl;
auto rg_reader = reader->RowGroup(0);
for (int i = 0; i < rg_reader->metadata()->num_columns(); i++) {
std::cout << "Column " << i << std::endl <<
rg_reader->Column(i)->descr()->ToString() << std::endl << std::endl;
}
auto column_reader =
static_cast<parquet::FixedLenByteArrayReader*>(rg_reader->Column(10).get());
int64_t bytes_read = 0;
int16_t def_levels, rep_levels;
while (column_reader->HasNext()) {
parquet::FixedLenByteArray fl_byte_array;
column_reader->ReadBatch(1, &def_levels, &rep_levels,
&fl_byte_array, &bytes_read);
break;
}
return 0;
}
```
--
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]