Skip to content

Commit

Permalink
Get tail from splitFilename and set includedirs to false.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelv committed Oct 13, 2023
1 parent ab5c385 commit e4524f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/parquet/parquetembed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ arrow::Status ParquetHelper::openWriteFile()
{
StringBuffer filename;
StringBuffer path;
splitFilename(destination.c_str(), nullptr, &path, &filename, nullptr, false);
Owned<IDirectoryIterator> itr = createDirectoryIterator(path.str(), filename.append("*.parquet").str());
splitFilename(destination.c_str(), nullptr, &path, &filename, &filename, false);
Owned<IDirectoryIterator> itr = createDirectoryIterator(path.str(), filename.insert(filename.length() - 8, '*'), false, false); // We want to insert '*' before ".parquet"

ForEach(*itr)
{
Expand Down

0 comments on commit e4524f9

Please sign in to comment.