From 18874acf4bc59a1930d94c0c2e024d9097178b70 Mon Sep 17 00:00:00 2001 From: binwei Date: Tue, 2 Jul 2024 21:48:07 +0000 Subject: [PATCH] quick bug fix --- cpp/velox/compute/VeloxPlanConverter.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/velox/compute/VeloxPlanConverter.cc b/cpp/velox/compute/VeloxPlanConverter.cc index bcd03b110afd..60cd824f30ae 100644 --- a/cpp/velox/compute/VeloxPlanConverter.cc +++ b/cpp/velox/compute/VeloxPlanConverter.cc @@ -81,8 +81,10 @@ std::shared_ptr 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;