Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed May 27, 2024
1 parent 4d664b5 commit 36373f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cpp/src/parquet/properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -1180,10 +1180,4 @@ struct ArrowWriteContext {
PARQUET_EXPORT
std::shared_ptr<ArrowWriterProperties> default_arrow_writer_properties();

// PLAIN_DICTIONARY is deprecated but used to be used as a dictionary index
// encoding.
constexpr bool IsDictionaryIndexEncoding(Encoding::type e) {
return e == Encoding::RLE_DICTIONARY || e == Encoding::PLAIN_DICTIONARY;
}

} // namespace parquet
6 changes: 6 additions & 0 deletions cpp/src/parquet/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -811,4 +811,10 @@ PARQUET_EXPORT SortOrder::type GetSortOrder(ConvertedType::type converted,
PARQUET_EXPORT SortOrder::type GetSortOrder(
const std::shared_ptr<const LogicalType>& logical_type, Type::type primitive);

// PLAIN_DICTIONARY is deprecated but used to be used as a dictionary index
// encoding.
constexpr bool IsDictionaryIndexEncoding(Encoding::type e) {
return e == Encoding::RLE_DICTIONARY || e == Encoding::PLAIN_DICTIONARY;
}

} // namespace parquet

0 comments on commit 36373f7

Please sign in to comment.