Skip to content

Commit

Permalink
fix error processing on program apply (ydb-platform#10814)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored and zverevgeny committed Jan 5, 2025
1 parent e28ae26 commit bc6e2d7
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 bc6e2d7

Please sign in to comment.