Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/parquet/bloom_filter-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 1 addition & 5 deletions src/parquet/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down