Skip to content

Commit

Permalink
fix error processing on program apply (#10814)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored Oct 24, 2024
1 parent 1a715cd commit 0002ddc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ class TStatsIteratorBase: public TScanIteratorBase {

// Leave only requested columns
auto resultBatch = NArrow::TColumnOperator().Adapt(originalBatch, ResultSchema).DetachResult();
NArrow::TStatusValidator::Validate(ReadMetadata->GetProgram().ApplyProgram(resultBatch));
auto applyConclusion = ReadMetadata->GetProgram().ApplyProgram(resultBatch);
if (!applyConclusion.ok()) {
return TConclusionStatus::Fail(applyConclusion.ToString());
}
if (resultBatch->num_rows() == 0) {
continue;
}
Expand Down

0 comments on commit 0002ddc

Please sign in to comment.