Skip to content

Commit

Permalink
Minor: fix dict_length for ReadDictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Apr 23, 2024
1 parent 25bb627 commit 8710ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/parquet/column_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ class TypedRecordReader : public TypedColumnReaderImpl<DType>,

const void* ReadDictionary(int32_t* dictionary_length) override {
if (this->current_decoder_ == nullptr && !this->HasNextInternal()) {
dictionary_length = 0;
*dictionary_length = 0;
return nullptr;
}
// Verify the current data page is dictionary encoded. The current_encoding_ should
Expand Down

0 comments on commit 8710ba6

Please sign in to comment.