Skip to content

Commit

Permalink
Fix compilation on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Jan 16, 2025
1 parent 05b1d62 commit 9716d74
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/ParquetReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ ParquetReader::ParquetReader(std::string filename, bool readwrite)

void ParquetReader::init_file_on_disk(bool readwrite) {
ByteBuffer buf;
pfile.open(
filename_,
std::ios::binary | std::ios_base::in | (readwrite ? std::ios_base::out : 0)
);
auto mode =
readwrite ? std::ios_base::out | std::ios_base::in : std::ios_base::in;
pfile.open(filename_, std::ios::binary | mode);
if (pfile.fail()) {
std::stringstream ss;
ss << "Can't open Parquet file at '" << filename_ << "' @ "
Expand Down

0 comments on commit 9716d74

Please sign in to comment.