Tim Armstrong has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/4171

Change subject: IMPALA-4019: initialize member variables in HdfsTableSink
......................................................................

IMPALA-4019: initialize member variables in HdfsTableSink

This fixes a bug that could potentially lead to the IMPALA-4019 crash.
default_partition_ should be initialized to NULL so that we can check
if the HdfsTableSink was correctly initialized with a default
partition in Open().

After this change the query will fail with an error status instead of
potentially crashing if table_desc_->partition_descriptors() is missing
the default partition.

Change-Id: If62def81f7d06b42ffbd0dc2dcb0e777421a1edf
---
M be/src/exec/hdfs-table-sink.cc
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/71/4171/1
-- 
To view, visit http://gerrit.cloudera.org:8080/4171
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If62def81f7d06b42ffbd0dc2dcb0e777421a1edf
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <[email protected]>

Reply via email to