Skip to content

Commit

Permalink
Merge pull request apache#76 from zhouyuan/wip_optional_dictencode_da…
Browse files Browse the repository at this point in the history
…taset

[C++] allow to optionally disable dict encoding
  • Loading branch information
zhouyuan authored Jun 19, 2020
2 parents f8b201f + 7d75580 commit 0b4df23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/dataset/file_parquet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static parquet::ReaderProperties MakeReaderProperties(
void SetDictionaryColumns(const parquet::ParquetFileReader &reader,
parquet::ArrowReaderProperties &properties,
const std::unordered_set<std::string> &dict_columns) {
if (dict_columns.empty()) {
if (dict_columns.empty() && std::getenv("FORCE_ENCODE")) {
// default: dict-encode all columns
int num_columns = reader.metadata()->num_columns();
for (int i = 0; i < num_columns; i++) {
Expand Down

0 comments on commit 0b4df23

Please sign in to comment.