diff --git a/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb b/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb index 3660e8af3427..162f36fb68ce 100644 --- a/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb +++ b/ruby/red-arrow-format/lib/arrow-format/integration/json-reader.rb @@ -384,7 +384,8 @@ def read_array(column, type) when DictionaryType validity_buffer = read_bitmap(column["VALIDITY"]) indices_buffer = read_values(column["DATA"], type.index_type) - dictionary = read_dictionary(type.id, type.value_type) + dictionary_array = read_dictionary(type.id, type.value_type) + dictionary = Dictionary.new(type.id, dictionary_array) type.build_array(length, validity_buffer, indices_buffer,