Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
binwei committed Jul 3, 2024
1 parent 2b028ba commit b2fd591
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cpp/velox/compute/VeloxPlanConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ 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;
if (file.has_properties()) {
facebook::velox::FileProperties fileProps = {file.properties().filesize(), file.properties().modificationtime()};
splitInfo->properties.emplace_back(fileProps);
fileProps.fileSize = file.properties().filesize();
fileProps.modificationTime = 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 b2fd591

Please sign in to comment.