You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@parquet.apache.org by uw...@apache.org on 2017/05/05 06:15:51 UTC
parquet-cpp git commit: PARQUET-914: Rewording exception message in
column writer.
Repository: parquet-cpp
Updated Branches:
refs/heads/master ecacbc9df -> 8a0ae8856
PARQUET-914: Rewording exception message in column writer.
Author: Xianjin YE <ad...@gmail.com>
Closes #317 from advancedxy/PARQUET-914 and squashes the following commits:
25e2079 [Xianjin YE] PARQUET-914: Rewording exception message in column writer.
Project: http://git-wip-us.apache.org/repos/asf/parquet-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/parquet-cpp/commit/8a0ae885
Tree: http://git-wip-us.apache.org/repos/asf/parquet-cpp/tree/8a0ae885
Diff: http://git-wip-us.apache.org/repos/asf/parquet-cpp/diff/8a0ae885
Branch: refs/heads/master
Commit: 8a0ae885628718d454ab077275497d652e52b594
Parents: ecacbc9
Author: Xianjin YE <ad...@gmail.com>
Authored: Fri May 5 08:15:45 2017 +0200
Committer: Uwe L. Korn <uw...@apache.org>
Committed: Fri May 5 08:15:45 2017 +0200
----------------------------------------------------------------------
src/parquet/column/writer.cc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/parquet-cpp/blob/8a0ae885/src/parquet/column/writer.cc
----------------------------------------------------------------------
diff --git a/src/parquet/column/writer.cc b/src/parquet/column/writer.cc
index eb74147..bd23b06 100644
--- a/src/parquet/column/writer.cc
+++ b/src/parquet/column/writer.cc
@@ -187,9 +187,10 @@ int64_t ColumnWriter::Close() {
}
if (num_rows_ != expected_rows_) {
- throw ParquetException(
- "Less than the number of expected rows written in"
- " the current column chunk");
+ std::stringstream ss;
+ ss << "Written rows: " << num_rows_ << " != expected rows: " << expected_rows_
+ << "in the current column chunk";
+ throw ParquetException(ss.str());
}
return total_bytes_written_;