commit | 3dddfff84d793d69f3b7dddf387c9a755fc394f8 | [log] [tgz] |
---|---|---|
author | ZongtianHou <houzongtian@outlook.com> | Thu Nov 19 10:42:23 2020 +0800 |
committer | ZongtianHou <houzongtian@outlook.com> | Tue Nov 24 13:36:49 2020 +0800 |
tree | ad1a4efed4314fc747e9d1120e39d5595046300a | |
parent | daf1b87e8fa6112b776625fc5517858c795f0ad9 [diff] |
HAWQ-1774. fix coredump when insert nan to decimal
diff --git a/depends/storage/src/storage/format/orc/writer/decimal-column-writer.cc b/depends/storage/src/storage/format/orc/writer/decimal-column-writer.cc index df3775e..aa685f8 100644 --- a/depends/storage/src/storage/format/orc/writer/decimal-column-writer.cc +++ b/depends/storage/src/storage/format/orc/writer/decimal-column-writer.cc
@@ -203,6 +203,11 @@ } } + if (vector->hasNullValue()) { + buf = vector->getNullBuffer()->getReverseBools(); + notNull = const_cast<char *>(buf->data()); + } + ColumnWriter::writeVector(vector); std::vector<int64_t> scales(numValues, static_cast<int64_t>(scale));