From 9866d2727ef24696084f1e644d25b811777fa805 Mon Sep 17 00:00:00 2001 From: taiyang-li <654010905@qq.com> Date: Sat, 19 Aug 2023 17:31:19 +0800 Subject: [PATCH] change as request --- src/Processors/Formats/Impl/NativeORCBlockInputFormat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Processors/Formats/Impl/NativeORCBlockInputFormat.cpp b/src/Processors/Formats/Impl/NativeORCBlockInputFormat.cpp index d46df4c511c..cfb2332d6c4 100644 --- a/src/Processors/Formats/Impl/NativeORCBlockInputFormat.cpp +++ b/src/Processors/Formats/Impl/NativeORCBlockInputFormat.cpp @@ -242,7 +242,7 @@ bool ORCBlockInputFormat::prepareStripeReader() current_stripe_info = file_reader->getStripe(current_stripe); if (!current_stripe_info->getNumberOfRows()) - return false; + throw Exception(ErrorCodes::INCORRECT_DATA, "ORC stripe {} has no rows", current_stripe); orc::RowReaderOptions row_reader_options; row_reader_options.include(include_indices); @@ -363,7 +363,7 @@ void ORCColumnToCHColumn::orcTableToCHChunk( orcColumnsToCHChunk(res, name_to_column_ptr, num_rows, block_missing_values); } -/// Creates a null bytemap from arrow's null bitmap +/// Creates a null bytemap from ORC's not-null bytemap static ColumnPtr readByteMapFromORCColumn(const orc::ColumnVectorBatch * orc_column) { if (!orc_column->hasNulls)