Skip to content

Commit

Permalink
Add comment to setInputFile explaining the filename format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelv committed Jan 25, 2024
1 parent 6d681c5 commit 3951079
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/thorhelper/thorread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,8 @@ bool ParquetDiskRowReader::setInputFile(const CLogicalFileSlice & slice, const F
StringBuffer localPath;
slice.getURL(localPath, copy);

// getURL returns a filename in the format ./file/127.0.0.1/path/to/file/data.parquet
// To use it with the ParquetReader constructor we need just the file path
// Skip leading .
const char * slash = strstr(localPath, "/");
// Skip file
Expand Down

0 comments on commit 3951079

Please sign in to comment.