From 73c17bf52ecbd7796314a0a68fc010e070577b21 Mon Sep 17 00:00:00 2001 From: Wes McKinney Date: Fri, 17 Aug 2018 02:12:16 -0400 Subject: [PATCH] Do not run TestBloomFilter.FPPTest when valgrind is in use --- src/parquet/bloom_filter-test.cc | 7 +++++++ src/parquet/types.h | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/parquet/bloom_filter-test.cc b/src/parquet/bloom_filter-test.cc index dbef8c8b..dfdac12b 100644 --- a/src/parquet/bloom_filter-test.cc +++ b/src/parquet/bloom_filter-test.cc @@ -99,6 +99,11 @@ std::string GetRandomString(uint32_t length) { return ret; } +#ifndef PARQUET_VALGRIND + +// PARQUET-1385(wesm): This test is very slow under valgrind; we omit it in +// test runs for the sake of Travis CI + TEST(FPPTest, TestBloomFilter) { // It counts the number of times FindHash returns true. int exist = 0; @@ -137,6 +142,8 @@ TEST(FPPTest, TestBloomFilter) { EXPECT_TRUE(exist < total_count * fpp); } +#endif // PLASMA_VALGRIND + // The CompatibilityTest is used to test cross compatibility with parquet-mr, it reads // the Bloom filter binary generated by the Bloom filter class in the parquet-mr project // and tests whether the values inserted before could be filtered or not. diff --git a/src/parquet/types.h b/src/parquet/types.h index aec99656..10789cbf 100644 --- a/src/parquet/types.h +++ b/src/parquet/types.h @@ -114,13 +114,9 @@ struct Compression { }; struct Encryption { - enum type { - AES_GCM_V1 = 0, - AES_GCM_CTR_V1 = 1 - }; + enum type { AES_GCM_V1 = 0, AES_GCM_CTR_V1 = 1 }; }; - // parquet::PageType struct PageType { enum type { DATA_PAGE, INDEX_PAGE, DICTIONARY_PAGE, DATA_PAGE_V2 };