Skip to content

Commit

Permalink
[BugFix] Fix DCHECK failed in hdfs_scanner_orc (StarRocks#52933)
Browse files Browse the repository at this point in the history
Signed-off-by: Smith Cruise <chendingchao1@126.com>
  • Loading branch information
Smith-Cruise authored Nov 15, 2024
1 parent a100d57 commit d85f58c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions be/src/exec/hdfs_scanner_orc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,12 @@ Status HdfsOrcScanner::do_get_next(RuntimeState* runtime_state, ChunkPtr* chunk)
ASSIGN_OR_RETURN(rows_read, _do_get_next(chunk));
}

DCHECK_EQ(rows_read, chunk->get()->num_rows());

_scanner_ctx.append_or_update_partition_column_to_chunk(chunk, rows_read);
_scanner_ctx.append_or_update_extended_column_to_chunk(chunk, rows_read);

// check after partition/extended column added
DCHECK_EQ(rows_read, chunk->get()->num_rows());

return Status::OK();
}

Expand Down

0 comments on commit d85f58c

Please sign in to comment.