Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit ba18ae6

Browse files
author
Deepak Majeti
committed
Review comments
1 parent f87bda6 commit ba18ae6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/parquet/column_writer.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,10 @@ int64_t ColumnWriter::Close() {
267267
FlushBufferedDataPages();
268268

269269
EncodedStatistics chunk_statistics = GetChunkStatistics();
270-
if (chunk_statistics.is_set())
270+
if (chunk_statistics.is_set()) {
271271
metadata_->SetStatistics(SortOrder::SIGNED == descr_->sort_order(),
272272
chunk_statistics);
273+
}
273274
pager_->Close(has_dictionary_, fallback_);
274275
}
275276

src/parquet/file/metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ApplicationVersion {
8282
bool VersionEq(const ApplicationVersion& other_version) const;
8383

8484
// Checks if the Version has the correct statistics for a given column
85-
bool HasCorrectStatistics(Type::type primitive, SortOrder::type sort_order) const;
85+
bool HasCorrectStatistics(Type::type primitive, SortOrder::type sort_order = SortOrder::SIGNED) const;
8686
};
8787

8888
class PARQUET_EXPORT ColumnChunkMetaData {

src/parquet/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ PARQUET_EXPORT std::string FormatStatValue(Type::type parquet_type, const char*
296296

297297
PARQUET_EXPORT int GetTypeByteSize(Type::type t);
298298

299-
SortOrder::type PARQUET_EXPORT DefaultSortOrder(Type::type primitive);
299+
PARQUET_EXPORT SortOrder::type DefaultSortOrder(Type::type primitive);
300300

301-
SortOrder::type PARQUET_EXPORT GetSortOrder(LogicalType::type converted,
301+
PARQUET_EXPORT SortOrder::type GetSortOrder(LogicalType::type converted,
302302
Type::type primitive);
303303

304304
} // namespace parquet

0 commit comments

Comments
 (0)