parquet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jul...@apache.org
Subject parquet-mr git commit: PARQUET-772: Fix locale-specific test failures.
Date Thu, 26 Jan 2017 23:39:35 GMT
Repository: parquet-mr
Updated Branches:
  refs/heads/master 3634821fa -> 2fd62ee4d


PARQUET-772: Fix locale-specific test failures.

The statistics tests were failing in locales with a decimal mark other than "."

Author: Zoltan Ivanfi <zi@cloudera.com>

Closes #395 from zivanfi/PARQUET-772 and squashes the following commits:

acec99c [Zoltan Ivanfi] PARQUET-772: Fix locale-specific test failures.


Project: http://git-wip-us.apache.org/repos/asf/parquet-mr/repo
Commit: http://git-wip-us.apache.org/repos/asf/parquet-mr/commit/2fd62ee4
Tree: http://git-wip-us.apache.org/repos/asf/parquet-mr/tree/2fd62ee4
Diff: http://git-wip-us.apache.org/repos/asf/parquet-mr/diff/2fd62ee4

Branch: refs/heads/master
Commit: 2fd62ee4d524c270764e9b91dca72e5cf1a005b7
Parents: 3634821
Author: Zoltan Ivanfi <zi@cloudera.com>
Authored: Thu Jan 26 15:39:31 2017 -0800
Committer: Julien Le Dem <julien@dremio.com>
Committed: Thu Jan 26 15:39:31 2017 -0800

----------------------------------------------------------------------
 .../org/apache/parquet/column/statistics/TestStatistics.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/parquet-mr/blob/2fd62ee4/parquet-column/src/test/java/org/apache/parquet/column/statistics/TestStatistics.java
----------------------------------------------------------------------
diff --git a/parquet-column/src/test/java/org/apache/parquet/column/statistics/TestStatistics.java
b/parquet-column/src/test/java/org/apache/parquet/column/statistics/TestStatistics.java
index 128acb4..690c7e1 100644
--- a/parquet-column/src/test/java/org/apache/parquet/column/statistics/TestStatistics.java
+++ b/parquet-column/src/test/java/org/apache/parquet/column/statistics/TestStatistics.java
@@ -232,7 +232,7 @@ public class TestStatistics {
     assertEquals(statsFromBytesMinMax.getMin(), Float.MIN_VALUE, 1e-10);
 
     // Test print formatting
-    assertEquals(stats.toString(), "min: 0.00010, max: 553.59998, num_nulls: 0");
+    assertEquals(stats.toString(), String.format("min: %.5f, max: %.5f, num_nulls: %d", 0.00010,
553.59998, 0));
   }
 
   @Test
@@ -293,7 +293,7 @@ public class TestStatistics {
     assertEquals(statsFromBytesMinMax.getMin(), Double.MIN_VALUE, 1e-10);
 
     // Test print formatting
-    assertEquals(stats.toString(), "min: 0.00001, max: 944.50000, num_nulls: 0");
+    assertEquals(stats.toString(), String.format("min: %.5f, max: %.5f, num_nulls: %d", 0.00001,
944.50000, 0));
   }
 
   @Test


Mime
View raw message