parquet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject parquet-cpp git commit: PARQUET-914: Rewording exception message in column writer.
Date Fri, 05 May 2017 06:15:51 GMT
Repository: parquet-cpp
Updated Branches:
  refs/heads/master ecacbc9df -> 8a0ae8856


PARQUET-914: Rewording exception message in column writer.

Author: Xianjin YE <advancedxy@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 <advancedxy@gmail.com>
Authored: Fri May 5 08:15:45 2017 +0200
Committer: Uwe L. Korn <uwe@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_;


Mime
View raw message