mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-14382: Fix Null Pointer Dereference
Fixes a potential null pointer dereference when log level >= 2. Adds 'build' as a valid EE test helper directory as VSCode creates this directory. Tested locally by running test_scanners from the query_test EE test suite using a release build of Impala and log level 2. Minidumps were not generated during this test run but were generated during the same test run without this fix applied. Generated-by: Github Copilot (Claude Sonnet 3.7) Change-Id: I91660aa84407c17ffb7cd3c721d4f3f0a844d61d Reviewed-on: http://gerrit.cloudera.org:8080/23365 Reviewed-by: Riza Suminto <riza.suminto@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
0b9e2b2cd1
commit
8d663765d7
@@ -122,7 +122,8 @@ Status BaseSequenceScanner::Open(ScannerContext* context) {
|
||||
|
||||
void BaseSequenceScanner::Close(RowBatch* row_batch) {
|
||||
DCHECK(!is_closed_);
|
||||
VLOG_FILE << "Bytes read past scan range: " << -stream_->bytes_left();
|
||||
VLOG_FILE << "Bytes read past scan range: " << (stream_ == nullptr ? 0 :
|
||||
-stream_->bytes_left());
|
||||
VLOG_FILE << "Average block size: "
|
||||
<< (num_syncs_ > 1 ? total_block_size_ / (num_syncs_ - 1) : 0);
|
||||
// Need to close the decompressor before releasing the resources at AddFinalRowBatch(),
|
||||
|
||||
Reference in New Issue
Block a user