Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 3, 2023
1 parent e917c90 commit 9e1ca8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/ipc/reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ class StreamDecoderInternal : public MessageDecoderListener {
&out_schema_, &field_inclusion_mask_,
&swap_endian_));

num_required_initial_dictionaries_ = dictionary_memo_.fields().num_fields();
num_required_initial_dictionaries_ = dictionary_memo_.fields().num_dicts();
num_read_initial_dictionaries_ = 0;
if (num_required_initial_dictionaries_ == 0) {
state_ = State::RECORD_BATCHES;
Expand All @@ -930,7 +930,7 @@ class StreamDecoderInternal : public MessageDecoderListener {
Status OnInitialDictionaryMessageDecoded(std::unique_ptr<Message> message) {
if (message->type() != MessageType::DICTIONARY_BATCH) {
return Status::Invalid("IPC stream did not have the expected number (",
dictionary_memo_.fields().num_fields(),
num_required_initial_dictionaries_,
") of dictionaries at the start of the stream");
}
RETURN_NOT_OK(ReadDictionary(*message));
Expand Down

0 comments on commit 9e1ca8d

Please sign in to comment.