File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ set(PARQUET_SRCS
159159 arrow/variant_internal.cc
160160 arrow/writer.cc
161161 bloom_filter.cc
162- bloom_filter_writer.cc
163162 bloom_filter_reader.cc
163+ bloom_filter_writer.cc
164164 chunker_internal.cc
165165 column_reader.cc
166166 column_scanner.cc
@@ -373,8 +373,8 @@ set_source_files_properties(public_api_test.cc PROPERTIES SKIP_UNITY_BUILD_INCLU
373373
374374add_parquet_test(internals-test
375375 SOURCES
376- bloom_filter_test.cc
377376 bloom_filter_reader_writer_test.cc
377+ bloom_filter_test.cc
378378 geospatial/statistics_test.cc
379379 geospatial/util_internal_test.cc
380380 metadata_test.cc
Original file line number Diff line number Diff line change @@ -872,7 +872,8 @@ class PageIndexBuilderTest : public ::testing::Test {
872872
873873 SchemaDescriptor schema_;
874874 std::shared_ptr<Buffer> buffer_;
875- IndexLocations column_index_location_, offset_index_location_;
875+ IndexLocations column_index_location_;
876+ IndexLocations offset_index_location_;
876877};
877878
878879TEST_F (PageIndexBuilderTest, SingleRowGroup) {
Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ void WriterProperties::Builder::CopyColumnSpecificProperties(
108108 if (col_props.encoding () != default_column_properties_.encoding ()) {
109109 this ->encoding (col_path, col_props.encoding ());
110110 }
111+
112+ if (col_props.bloom_filter_options ().has_value ()) {
113+ this ->enable_bloom_filter (col_props.bloom_filter_options ().value (), col_path);
114+ }
111115 }
112116}
113117
Original file line number Diff line number Diff line change @@ -722,7 +722,7 @@ class PARQUET_EXPORT WriterProperties {
722722 // /
723723 // / \note Bloom filter is not supported for boolean columns. ParquetException will
724724 // / be thrown during write if the column is of boolean type.
725- Builder* enable_bloom_filter (BloomFilterOptions bloom_filter_options,
725+ Builder* enable_bloom_filter (const BloomFilterOptions& bloom_filter_options,
726726 const std::string& path) {
727727 bloom_filter_options_[path] = bloom_filter_options;
728728 return this ;
@@ -734,7 +734,7 @@ class PARQUET_EXPORT WriterProperties {
734734 // /
735735 // / \note Bloom filter is not supported for boolean columns. ParquetException will
736736 // / be thrown during write if the column is of boolean type.
737- Builder* enable_bloom_filter (BloomFilterOptions bloom_filter_options,
737+ Builder* enable_bloom_filter (const BloomFilterOptions& bloom_filter_options,
738738 const std::shared_ptr<schema::ColumnPath>& path) {
739739 return this ->enable_bloom_filter (bloom_filter_options, path->ToDotString ());
740740 }
You can’t perform that action at this time.
0 commit comments