Skip to content

Commit

Permalink
quick bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
binwei committed Jul 2, 2024
1 parent 6b6444e commit 18874ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/velox/compute/VeloxPlanConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ std::shared_ptr<SplitInfo> parseScanSplitInfo(
splitInfo->paths.emplace_back(file.uri_file());
splitInfo->starts.emplace_back(file.start());
splitInfo->lengths.emplace_back(file.length());
facebook::velox::FileProperties fileProps = {file.properties().filesize(), file.properties().modificationtime()};
splitInfo->properties.emplace_back(fileProps);
if (file.has_properties()){
facebook::velox::FileProperties fileProps = {file.properties().filesize(), file.properties().modificationtime()};
splitInfo->properties.emplace_back(fileProps);
}
switch (file.file_format_case()) {
case SubstraitFileFormatCase::kOrc:
splitInfo->format = dwio::common::FileFormat::ORC;
Expand Down

0 comments on commit 18874ac

Please sign in to comment.